Open stu00608 opened 8 months ago
In the newer version of OpenAI Python package, openai.ChatCompletion has been deprecated. The problem also has mentioned in Issue #24 and #30.
openai.ChatCompletion
openai.ChatCompletion.create()
openai.chat.completions.create()
headers
extra_headers
Let me know if anything incorrect or missing. Btw this is a very useful tool, thanks!
In the newer version of OpenAI Python package,
openai.ChatCompletion
has been deprecated. The problem also has mentioned in Issue #24 and #30.Changes
openai.ChatCompletion.create()
->openai.chat.completions.create()
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!