jina-ai / jina-ai/node-DeepResearch
Reached model's maximum context length
- Dominant language
- TypeScript
- Stars
- 5.2k
- Forks
- 461
- PR merge metrics
- No merged PRs in 30d
Description
I'm using deepseek official api
```
Error reading URL: Error: Request timed out
at ClientRequest. (/app/dist/tools/read.js:84:20)
at Object.onceWrapper (node:events:638:28)
at ClientRequest.emit (node:events:524:28)
at TLSSocket.emitRequestTimeout (node:_http_client:849:9)
at Object.onceWrapper (node:events:638:28)
at TLSSocket.emit (node:events:536:35)
at Socket._onTimeout (node:net:595:8)
at listOnTimeout (node:internal/timers:581:17)
at process.processTimers (node:internal/timers:519:7)
Waiting 0s...
Step 5 / Budget used 26.58%
Gaps: []
[chat/completions] Error: {
message: "This model's maximum context length is 65536 tokens. However, you requested 74426 tokens (72426 in the messages, 2000 in the completion). Please reduce the length of the messages or completion.",
stack: "AI_APICallError: This model's maximum context length is 65536 tokens. However, you requested 74426 tokens (72426 in the messages, 2000 in the completion). Please reduce the length of the messages or completion.\n" +
' at /app/node_modules/@ai-sdk/provider-utils/dist/index.js:598:14\n' +
' at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n' +
' at async postToApi (/app/node_modules/@ai-sdk/provider-utils/dist/index.js:497:28)\n' +
' at async OpenAIChatLanguageModel.doGenerate (/app/node_modules/@ai-sdk/openai/dist/index.js:611:50)\n' +
' at async fn (/app/node_modules/ai/dist/index.js:2667:33)\n' +
' at async /app/node_modules/ai/dist/index.js:545:22\n' +
' at async _retryWithExponentialBackoff (/app/node_modules/ai/dist/index.js:346:12)\n' +
' at async fn (/app/node_modules/ai/dist/index.js:2635:34)\n' +
' at async /app/node_modules/ai/dist/index.js:545:22\n' +
' at async ObjectGeneratorSafe.generateObject (/app/dist/utils/safe-generator.js:15:28)',
type: 'APICallError',
requestId: '1742521474151'
}
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.