How to force function calling for Gorilla OpenFunctions-v2 #561
Replies: 4 comments
-
Hey @jiayini1119 I think the response is accurate? Since the user's prompt was "hi" and the only function available to the model is "get_current_weather" which cannot respond to the user's query - the LLM responds without a function call. |
Beta Was this translation helpful? Give feedback.
-
Hi @ShishirPatil , thank you for the response! I think the function_call="auto" is used in the older openai function calling version to force the LLM to respond with at least one tool, but this functionality is depreciated. The latest openai function calling uses the |
Beta Was this translation helpful? Give feedback.
-
Ah, @jiayini1119 do you have specific use cases in mind? If you think that's valuable feature we'll definitely try to prioritize it. Would love to learn more! In-fact I just started this discussion so other's can weigh in as well. |
Beta Was this translation helpful? Give feedback.
-
@ShishirPatil yes, I think the most specific use case is to ensure robustness when calling the model. From what I saw right now, Gorilla model will sometimes not output function message but the content of the message is like "I want to call the function get_current_weather with parameters xxx" instead of actually doing function call. Forcing function calling would help to resolve this issue. |
Beta Was this translation helpful? Give feedback.
-
Hi, I was wondering how could we force to call at least one function for OpenFunctions-v2? For example, here we specified function_call="auto", which is supposed to make the model call at least one function. However, it still did not do function calling.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions