-
Notifications
You must be signed in to change notification settings - Fork 792
fix tool_calls serialization for Scaleway Mistral (OpenAI Chat Completions) #2880
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
base: main
Are you sure you want to change the base?
Conversation
lua/avante/providers/openai.lua
Outdated
| function M.is_openrouter(url) return url:match("^https://openrouter%.ai/") end | ||
|
|
||
| function M.is_mistral(url) return url:match("^https://api%.mistral%.ai/") end | ||
| function M.is_mistral(url) return url:match("^https://api%.mistral%.ai/") or url:match("^https://api%.scaleway%.ai/") end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@silenceforest The behavior does not match the function name. Can it be optimized?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sure, is the new name (is_mistral_like) better?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you create a new function such as is_scaleway? And separate the processing of mistral and scaleway instead of sharing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Implemented: added M.is_scaleway, keep M.is_mistral separate, and adjusted the tool-acknowledgement/streaming logic so Scaleway and Mistral each follow their own flow.
|
This PR is stale because it has been open 14 days with no activity. Remove stale label or comment or this will be closed in 10 days. |
Uh oh!
There was an error while loading. Please reload this page.