Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
vivi committed Oct 26, 2023
1 parent 35c9e6e commit 4998022
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions memgpt/openai_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ async def acreate_embedding_with_backoff(**kwargs):
if azure_openai_deployment is not None:
kwargs["deployment_id"] = azure_openai_deployment
else:
kwargs["engine"] = "text-embedding-ada-002"
kwargs["engine"] = kwargs["model"]
kwargs.pop("model")
return await openai.Embedding.acreate(**kwargs)

Expand Down Expand Up @@ -183,7 +183,6 @@ def configure_azure_support():
azure_openai_key,
azure_openai_endpoint,
azure_openai_version,
# azure_openai_deployment,
]:
print(
f"Error: missing Azure OpenAI environment variables. Please see README section on Azure."
Expand Down

0 comments on commit 4998022

Please sign in to comment.