Replies: 5 comments
-
This is what I get as a response body: {
"candidates": [
{
"content": {
"parts": [
{
"functionCall": {
"name": "get_weather",
"args": {
"location": "unknown"
}
}
}
],
"role": "model"
},
"finishReason": "STOP",
"avgLogprobs": -2.3844768293201922e-08
}
],
"usageMetadata": {
"promptTokenCount": 297,
"candidatesTokenCount": 5,
"totalTokenCount": 302
},
"modelVersion": "gemini-1.5-pro-002"
} |
Beta Was this translation helpful? Give feedback.
-
Thanks for letting us know. I'm also seeing a similar type of failure in the final example shown in the function calling data structures sample notebook. I opened a bug at https://issuetracker.google.com/issues/376170319, so you can track updates and information there. |
Beta Was this translation helpful? Give feedback.
-
Thank you for taking a look. I just ran the same request agains 1.5 pro and I received the same error so if this code worked historically I think it's an API rather than model issue.
Produces the response:
|
Beta Was this translation helpful? Give feedback.
-
Sorry to spam here but I've done some additional tests and it seems like Gemini 1.5 Flash correctly handles the object while, Gemini Flash 1.5 002, Gemini 1.5 Pro and 1.5 Pro 002 do not provide a correct response and just return 'unknown'. Reliably repeatable with the above request at T0 |
Beta Was this translation helpful? Give feedback.
-
Thanks for the additional info. I recommend posting additional info and context to the bug report https://issuetracker.google.com/issues/376170319 so that the engineering team can see the info there. In my testing, Gemini 1.0 Pro 002 worked as well, in addition to Gemini 1.5 Flash like you mentioned. And keep in mind that |
Beta Was this translation helpful? Give feedback.
-
I am able to define tool and have the model call tools that have simple parameters like strings but when I specify an object the response for the whole parameter becomes 'unknown' This is the full request ( which is part of test harness ). I believe I am following the notebook by @koverholt @holtskinner though that does not actually include an object ( would be helpful ).
Beta Was this translation helpful? Give feedback.
All reactions