mirror of
https://github.com/clucraft/PriceGhost.git
synced 2026-06-08 15:05:16 +02:00
These models output <think>...</think> blocks before their actual JSON response when in "thinking mode". This fix: 1. Adds /nothink prefix to all AI prompts (EXTRACTION_PROMPT, VERIFICATION_PROMPT, STOCK_STATUS_PROMPT, ARBITRATION_PROMPT) to request models disable thinking mode 2. Adds stripThinkingTags() helper function that removes <think> blocks from responses as a fallback if models ignore /nothink 3. Applies stripping in all parse functions before JSON extraction Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| src | ||
| .dockerignore | ||
| .env.example | ||
| Dockerfile | ||
| package-lock.json | ||
| package.json | ||
| tsconfig.json | ||