-
Notifications
You must be signed in to change notification settings - Fork 162
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
Function calling with a response mime type: 'application/json' is unsupported #195
Comments
Hi @skoru01, this error is specifically for
If you'd like to use JSON format responses in some cases, and function calling in others, you could create a separate instance of the model / generation config for the two use cases. Does that answer your question? |
Hi @andrewheard Thanks for the suggestion. i will try it. Is it not possible to use i am using |
@skoru01 Would it be possible for you to describe your use case of function calling in more detail? Potentially you could add an additional function for your final response and use the function calling mode
|
@andrewheard Thanks you, i will check this and get back to you if its not working. |
Hi! I'm looking an issue over in genkit and I think it's related/the same problem, but in Node.js. We're setting responseMimeType as 'application/json' and also adding tools in a chat request. Is this not possible then? |
Marking this issue as stale since it has been open for 14 days with no activity. This issue will be closed if no further activity occurs. |
Hi @andrewheard Sorry for the late response. GenerationConfig working good. but below code causing issue
Response
FYI, if send .auto over FunctionCallingConfig, its working fine. |
Marking this issue as stale since it has been open for 14 days with no activity. This issue will be closed if no further activity occurs. |
This issue was closed because it has been inactive for 28 days. Please post a new issue if you need further assistance. Thanks! |
Description of the bug:
Hi,
i am using Function calling along with generationConfig and then i am getting below error message.
How can we use function calling tools along with GenerationConfig in this SDK, since i want to add temperature, topK and topP to function calling for more accuracy response.
Request:
Actual vs expected behavior:
No response
Any other information you'd like to share?
No response
The text was updated successfully, but these errors were encountered: