-
Notifications
You must be signed in to change notification settings - Fork 843
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
Add function_call on Google provider #144
base: rcp/ToolCalling-P1
Are you sure you want to change the base?
Add function_call on Google provider #144
Conversation
Just realize that when the tool_call history is passed in the second call to the model we have an error raised. I`m working to fix it. |
nice! any update on that? |
I have solved the problem @themrzmaster , i just need to fix the tests and i'll commit the changes. I pretend to do it today !! |
6e2d78d
to
1e2533e
Compare
…ssage handling in chat completions
history.append(Content(role=role, parts=parts)) | ||
|
||
return history | ||
|
||
def transform_roles(self, messages): | ||
"""Transform the roles in the messages based on the provided transformations.""" | ||
openai_roles_to_google_roles = { | ||
"system": "user", |
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.
It make sense map system message as user content ?
Fixes #141