mirror of
https://github.com/arc53/DocsGPT.git
synced 2025-11-29 16:43:16 +00:00
Changed environment variable names OPENAI_API_BASE and OPENAI_API_VERSION to AZURE_OPENAI_API_BASE and AZURE_OPENAI_API_VERSION
This commit is contained in:
@@ -46,8 +46,8 @@ def call_openai_api(docs, folder_name):
|
||||
# )
|
||||
# index_name = "pandas"
|
||||
if ( # azure
|
||||
os.environ.get("OPENAI_API_BASE")
|
||||
and os.environ.get("OPENAI_API_VERSION")
|
||||
os.environ.get("AZURE_OPENAI_API_BASE")
|
||||
and os.environ.get("AZURE_OPENAI_API_VERSION")
|
||||
and os.environ.get("AZURE_DEPLOYMENT_NAME")
|
||||
and os.environ.get("AZURE_EMBEDDINGS_DEPLOYMENT_NAME")
|
||||
):
|
||||
|
||||
Reference in New Issue
Block a user