Skip to content

Commit

Permalink
remove typo
Browse files Browse the repository at this point in the history
  • Loading branch information
devxpy committed Nov 17, 2023
1 parent 650abb0 commit a540c05
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/azure_openai_fallback.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ def chad_gpt4(messages, max_tokens=4000):
response = try_all(
# first try with azure
lambda: azure_client.chat.completions.create(
model="openai-gpt-4-prod-ca-1-x", # replace with your deployment name
model="openai-gpt-4-prod-ca-1", # replace with your deployment name
messages=messages,
max_tokens=max_tokens,
),
# if that fails (for whatever reason), try with openai
lambda: openai_client.chat.completions.create(
model="gpt-4-x",
model="gpt-4",
messages=messages,
max_tokens=max_tokens,
),
Expand Down

0 comments on commit a540c05

Please sign in to comment.