ShishirPatil / gorilla

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

[bug] Hosted Gorilla: <Issue> #527

Open francoisdevigne opened 3 months ago

francoisdevigne commented 3 months ago

Exception:

You tried to access openai.ChatCompletion, but this is no longer supported in openai>=1.0.0 - see the README at https://github.com/openai/openai-python for the API.

You can run openai migrate to automatically upgrade your codebase to use the 1.0.0 interface.

Alternatively, you can pin your installation to the old version, e.g. pip install openai==0.28

A detailed migration guide is available here: https://github.com/openai/openai-python/discussions/742

Failed model: gorilla-7b-hf-v1, for prompt: I would like to transform text to speech

ShishirPatil commented 3 months ago

Thanks for raising, this is a known issues. Please install openai with pip install openai==0.28.1

jiayini1119 commented 3 months ago

Hi @ShishirPatil , is there any recent plan of migrating support of Gorilla openfunction to the latest openai version? It would be really nice if we can use something like bind_tools for Gorilla openfunction as well.