-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
An assistant message with 'tool_calls' must be followed by tool messages responding to each 'tool_call_id' #1784
Comments
同样的代码运行有时会出现这个错误,有时却不会,求助 |
Hello @touful ! Please share your Agent configuration so that I can help debug. |
this is my main.py ,but as I said before ,the same codes run return error or return normally.And now ,it works .I don't no why,please and thanks . @ysolanky
|
@touful it looks like it is an issue with Can you please:
|
here is my stack traceback, as you said that I will try OpenAIChat after I get opanai_api_key(in my area ,I can't pay for it directly):
|
And more,I want to gain that whether I can use proxy for LanceDb.Because if I want use OpenAIChat,I must use proxy,but with proxy ,my LanceDb knowledge_base returns with code 500 like that. By reading LanceDb Class or its parent Class ,I don't find proxy args. Sincere thanks for you! @ysolanky
|
@touful can you please share the debug logs when you are using the model: With lancedb, can you please try reading a local file? For example, in this example: https://github.com/phidatahq/phidata/blob/main/cookbook/vectordb/lance_db.py, use |
mydeepseekdebug.txt
By using this lancedb code with my system proxy,it will query with return 500 as I said above.All data are in my local machine. |
@ysolanky At this time every day, in my UTC+8 region, around 10 o'clock, my code will encounter the above error. Today, I carefully reviewed the official documentation of DeepSeek, which states: |
@ysolanky I don't know if I understand correctly, thank you again |
I have encountered this error, but it is intermittent. How should I seek help to resolve it
openai.BadRequestError: Error code: 400 - {'error': {'message': "An assistant message with 'tool_calls' must be followed by tool messages responding to each 'tool_call_id'. (insufficient tool messages following tool_calls message)", 'type': 'invalid_request_error', 'param': None, 'code': 'invalid_request_error'}}
The text was updated successfully, but these errors were encountered: