建立一个项目后,第一次批量导入文件成功,后面再导入文件就会报错。
建立一个项目后,第一次批量导入文件成功,后面再导入文件就会报错。错误如下:
日志为: openai API 调用出错: E [AI_APICallError]: This model's maximum context length is 40960 tokens. However, you requested 8192 output tokens and your prompt contains at least 32769 input tokens, for a total of at least 40961 tokens. Please reduce the length of the input prompt or the number of requested output tokens. (parameter=input_tokens, value=32769) at /app/.next/server/chunks/2608.js:1:9850 at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async Q (/app/.next/server/chunks/2608.js:1:8545) at async v.doGenerate (/app/.next/server/chunks/9458.js:1:5816) at async fn (/app/.next/server/chunks/2608.js:9:31238) at async /app/.next/server/chunks/2608.js:5:18816 at async B (/app/.next/server/chunks/2608.js:5:16646) at async fn (/app/.next/server/chunks/2608.js:9:30361) at async /app/.next/server/chunks/2608.js:5:18816 at async s.chat (/app/.next/server/chunks/937.js:1:835) at async h._callClientMethod (/app/.next/server/chunks/9816.js:1:5269) at async h.getResponse (/app/.next/server/chunks/9816.js:1:6202) at async m (/app/.next/server/chunks/9169.js:397:1053) at async Z (/app/.next/server/chunks/7233.js:245:14744) at async eM (/app/.next/server/chunks/7233.js:245:47750) { cause: undefined,
Source: ConardLi/easy-dataset