Skip to content
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

fix: invalid request on qianwen multi tool-calls #993

Merged
merged 1 commit into from
Nov 13, 2024
Merged

fix: invalid request on qianwen multi tool-calls #993

merged 1 commit into from
Nov 13, 2024

Conversation

sigoden
Copy link
Owner

@sigoden sigoden commented Nov 13, 2024

$ aichat -S -m qianwen:qwen-turbo-latest -r %functions% what is the weather in Pairs and Berlin?
Call get_current_weather {"location":"Paris"}
Call get_current_weather {"location":"Berlin"}
Error: Failed to call chat-completions api

Caused by:
    <400> InternalError.Algo.InvalidParameter: messages with role "tool" must be a response to a preceeding message with "tool_calls". (type: invalid_request_error)

@sigoden sigoden merged commit ff0ea19 into main Nov 13, 2024
3 checks passed
@sigoden sigoden deleted the fix branch November 13, 2024 10:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant