You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running the example "chat_with_your_documents", an error occurs due to openapi.ChatCompletion being deprecated.
Versions
chroma latest, python 3.10
Relevant log output
Traceback (most recent call last):
File "/Users/nicolas/Projects/chroma/examples/chat_with_your_documents/main.py", line 139, in<module>
main(
File "/Users/nicolas/Projects/chroma/examples/chat_with_your_documents/main.py", line 109, in main
response = get_chatGPT_response(query, results["documents"][0], model_name) # type: ignore
File "/Users/nicolas/Projects/chroma/examples/chat_with_your_documents/main.py", line 55, in get_chatGPT_response
response = openai.ChatCompletion.create(
File "/Users/nicolas/.pyenv/versions/3.10.13/lib/python3.10/site-packages/openai/lib/_old_api.py", line 39, in __call__
raise APIRemovedInV1(symbol=self._symbol)
openai.lib._old_api.APIRemovedInV1:
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
The text was updated successfully, but these errors were encountered:
What happened?
When running the example "chat_with_your_documents", an error occurs due to openapi.ChatCompletion being deprecated.
Versions
chroma latest, python 3.10
Relevant log output
The text was updated successfully, but these errors were encountered: