mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 10:44:24 +00:00
(fix) proxy + docs: use openai.chat.completions.create instead of openai.ChatCompletions
This commit is contained in:
parent
60770e1eec
commit
cf0ab7155e
10 changed files with 20 additions and 21 deletions
|
@ -5,7 +5,7 @@ openai.api_key = "this can be anything"
|
|||
print("making request")
|
||||
|
||||
api_key = ""
|
||||
response = openai.ChatCompletion.create(
|
||||
response = openai.chat.completions.create(
|
||||
model = "gpt-3.5-turbo",
|
||||
messages = [
|
||||
{
|
||||
|
@ -21,7 +21,7 @@ response = openai.ChatCompletion.create(
|
|||
print(response)
|
||||
|
||||
|
||||
response = openai.ChatCompletion.create(
|
||||
response = openai.chat.completions.create(
|
||||
model = "gpt-3.5-turbo",
|
||||
messages = [
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue