-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
.Net: Bug: gemini-1.5-flash function calling is not working getting 400 bad request error. #10223
Comments
I am also facing the same issue with gemini-1.5-flash, it doesn't interact with the kernel function. |
change GeminiPromptExecutionSettings to this
|
@thevivekm I changed to gemini-2.0-flash-exp model and then adding message to history if content is available. Otherwise next time onward LLM is giving 400 bad request. ` if (!string.IsNullOrEmpty(result?.Content)) Now i am facing a different problem, prompts are calling native function but some how LLM is not recognizing them. I don't want to create separate native function. I was hoping when LLM executed native function it will understand the output. here is my skprompt.txt and config.json This is a list of songs {{Songs.get_list_of_songs}} and add them into chat history if not already available. You are an AI assistant. The assistant is helpful, creative, clever, and very friendly. { I am new in Microsoft Semantic kernel and learning concepts. |
Describe the bug
kernel function call is not working properly with gemini-1.5-flash for below code
To Reproduce
Steps to reproduce the behavior:
Execute the above code its failing when ToolCallBehavior = GeminiToolCallBehavior.EnableKernelFunctions or ToolCallBehavior = GeminiToolCallBehavior.AutoInvokeKernelFunctions is set. if i don't set it does not recognize kernel functions.
Expected behavior
It should recognize kernel functions and return the result back from my plugin
Screenshots
Platform
Additional context
The text was updated successfully, but these errors were encountered: