ShishirPatil / gorilla

Gorilla: Training and Evaluating LLMs for Function Calls (Tool Calls)
https://gorilla.cs.berkeley.edu/
Apache License 2.0
11.18k stars 922 forks source link

[feature] functions is deprecated, use tools instead #553

Open chris-aeviator opened 1 month ago

chris-aeviator commented 1 month ago

Is the feature request related to a problem? OpenAI's modern client has deprecated the functions syntax. When using the recent 'tools' syntax, gorilla will only reply with generic text, e.g. "as a LM I'm unable to zoom the map" instead of the function call "zoom_map()"

Describe the solution you'd like Make gorilla endpoints compatible with 'tool' schema

Additional context For me this is relevant too for self-hosting gorilla as tooling expects to follow OAIs spec.

ShishirPatil commented 1 month ago

Thanks for trying it out @chris-aeviator ! Yeah, this is something we do want to migrate to, for now we are compatible with openai==0.28 which uses functions. Once we move to openai>=1.0 we will start supporting tools.