mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 18:54:30 +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
|
@ -4,7 +4,7 @@ openai.api_key = "this can be anything"
|
|||
print("making request")
|
||||
|
||||
api_key = ""
|
||||
response = openai.ChatCompletion.create(
|
||||
response = openai.chat.completions.create(
|
||||
model = "openrouter/google/palm-2-chat-bison",
|
||||
messages = [
|
||||
{
|
||||
|
@ -20,7 +20,7 @@ response = openai.ChatCompletion.create(
|
|||
print(response)
|
||||
|
||||
|
||||
response = openai.ChatCompletion.create(
|
||||
response = openai.chat.completions.create(
|
||||
model = "openrouter/google/palm-2-chat-bison",
|
||||
messages = [
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue