Revert "Changed environment variable names OPENAI_API_BASE and OPENAI_API_VERSION to AZURE_OPENAI_API_BASE and AZURE_OPENAI_API_VERSION"

This reverts commit ce8b29e9d0.
This commit is contained in:
Anton Larin
2023-08-05 14:08:51 +02:00
parent 1687e6682a
commit ac5ac3e9f1
7 changed files with 20 additions and 20 deletions

View File

@@ -46,8 +46,8 @@ def call_openai_api(docs, folder_name):
# )
# index_name = "pandas"
if ( # azure
os.environ.get("AZURE_OPENAI_API_BASE")
and os.environ.get("AZURE_OPENAI_API_VERSION")
os.environ.get("OPENAI_API_BASE")
and os.environ.get("OPENAI_API_VERSION")
and os.environ.get("AZURE_DEPLOYMENT_NAME")
and os.environ.get("AZURE_EMBEDDINGS_DEPLOYMENT_NAME")
):