-
Notifications
You must be signed in to change notification settings - Fork 32
I encountered an Error: 400 status code (no body) when using the creatReactAgent method #51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi @loverara - I think we're going to need more details on this. The error log and message you posted isn't familiar to me at all, and I don't think it comes this or any other langchain library, though I could be mistaken! If you'd like help troubleshooting this could you please include a minimum reproducible example? |
Please provide code examples or change the model |
Hi team, I am getting the below error during the createReactAgent function call with gpt-4o model. Can you please check and let me know what are the possible issues
|
Closing this as the original poster has not replied. @AyushNaptick you are experiencing a different problem to the original poster. Please do not post comments on issues unrelated to your problem. Instead, open new issues. In your case I believe your problem is very likely resolved with the latest versions of |
library version
The tools used are from the MCP server converted by @ langchain/mcp adapters
error messages
[NEST] 2025-03-31 16:26:46 error [AIFaucet.rootOutput] Error: 400 status code (no body) at Function.generate (/Users/loverara/Documents/code_workspace/vscode_workspace/ifuncun/agent_template/node_modules/openai/src/error.ts:72:14) at OpenAI.makeStatusError (/Users/loverara/Documents/code_workspace/vscode_workspace/ifuncun/agent_template/node_modules/openai/src/core.ts:443:21) at OpenAI.makeRequest (/Users/loverara/Documents/code_workspace/vscode_workspace/ifuncun/agent_template/node_modules/openai/src/core.ts:507:24) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async /Users/loverara/Documents/code_workspace/vscode_workspace/ifuncun/agent_template/node_modules/@langchain/openai/dist/chat_models.cjs:1528:29
The error message I received when debugging to method completionWithRetry is
'{"object":"error","message":"\\"auto\\" tool choice requires --enable-auto-tool-choice and --tool-call-parser to be set","type":"BadRequestError","param":null,"code":400}'
The text was updated successfully, but these errors were encountered: