wylum commited on
Commit
2e90f33
·
verified ·
1 Parent(s): 924e29a

Update app-llama.py

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