Skip to content

Conversation

stu00608
Copy link

In the newer version of OpenAI Python package, openai.ChatCompletion has been deprecated.
The problem also has mentioned in Issue #24 and #30.

Changes

  1. openai.ChatCompletion.create() -> openai.chat.completions.create()
  2. The parameter headers -> extra_headers. Notice that I haven't tested with Portkey but when HEADERS is an empty dictionary it works.

Let me know if anything incorrect or missing.
Btw this is a very useful tool, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant