refly icon indicating copy to clipboard operation
refly copied to clipboard

Can not response when Self-deploy Refly-0.5.0 with Deepseek R1 openai compatitable api

Open zhangshuiyong opened this issue 6 months ago • 2 comments

Describe the bug

Error: 400 deepseek-reasoner does not support successive user or assistant messages (messages[1] and messages[2] in your input). You should interleave the user/assistant messages in the message sequence. at APIError.generate (/app/node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/openai/error.js:45:20) at OpenAI.makeStatusError (/app/node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/openai/core.js:299:33) at OpenAI.makeRequest (/app/node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/openai/core.js:343:30) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async /app/node_modules/.pnpm/@[email protected]_@[email protected][email protected]/node_modules/@langchain/openai/dist/chat_models.cjs:1519:29 at async RetryOperation._fn (/app/node_modules/.pnpm/[email protected]/node_modules/p-retry/index.js:50:12)

To Reproduce

Image

Image

zhangshuiyong avatar Apr 21 '25 14:04 zhangshuiyong