wylum commited on
Commit
5dad8ea
·
verified ·
1 Parent(s): 2e90f33

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -187,7 +187,7 @@ def build_qa_chain(collection_name, vector_db, file: str):
187
  embeddings = AzureOpenAIEmbeddings(
188
  model="text-embedding-ada-002",
189
  # dimensions: Optional[int] = None, # Can specify dimensions with new text-embedding-3 models
190
- azure_endpoint=, # If not provided, will read env variable AZURE_OPENAI_ENDPOINT
191
  openai_api_key=api_key, # Can provide an API key directly. If missing read env variable AZURE_OPENAI_API_KEY
192
  #openai_api_version="2023-05-15", # If not provided, will read env variable AZURE_OPENAI_API_VERSION
193
  openai_api_version="2023-05-15", # If not provided, will read env variable AZURE_OPENAI_API_VERSION
 
187
  embeddings = AzureOpenAIEmbeddings(
188
  model="text-embedding-ada-002",
189
  # dimensions: Optional[int] = None, # Can specify dimensions with new text-embedding-3 models
190
+ azure_endpoint=azure_endpt , # If not provided, will read env variable AZURE_OPENAI_ENDPOINT
191
  openai_api_key=api_key, # Can provide an API key directly. If missing read env variable AZURE_OPENAI_API_KEY
192
  #openai_api_version="2023-05-15", # If not provided, will read env variable AZURE_OPENAI_API_VERSION
193
  openai_api_version="2023-05-15", # If not provided, will read env variable AZURE_OPENAI_API_VERSION