-
Notifications
You must be signed in to change notification settings - Fork 22
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
Bug: SK runs his self-made function by ignoring the auto-invoke function config #281
Comments
Which model are you using? |
I'm using GPT-4o as the model. |
All method metadata and user intents are assembled in the prompt(in userInput and metadata variables). |
I have run a sample based on the original code, and it appears to execute as expected: Are you able to share more context/a failing sample of the code that is failing? |
@johnoliver Sorry for some mistake description before. My prompt is:
My metadata looks like:
|
Describe the bug
I set the toolcallbehavior of
allowOnlyKernelFunctions
astrue
, and passed the functions to the kernelbut the kernel make a functiontoolcall by himself and just invoke it.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Only invoke the passed functions.
Screenshots
Maven
Platform
Additional context
Excption: com.azure.core.exception.HttpResponseException: Status code 400, "{"error":{"message":"Invalid 'messages[1].tool_calls[1].function.name': string does not match pattern. Expected a string that matches the pattern '^[a-zA-Z0-9_-]+$'.","type":"invalid_request_error","code":"invalid_value","param":"messages[1].tool_calls[1].function.name"}}"
The text was updated successfully, but these errors were encountered: