Merge pull request #296 from larinam/revert_breaking_renaming_azure_change

Revert "Changed environment variable names OPENAI_API_BASE and OPENAI…
This commit is contained in:
Alex
2023-08-08 18:15:45 +01:00
committed by GitHub
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")
):