Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -27,8 +27,8 @@ warnings.filterwarnings("ignore")
|
|
27 |
# Initialize embedding model
|
28 |
embeddings = AzureOpenAIEmbeddings(
|
29 |
azure_deployment=AZURE_OPENAI_DEPLOYMENT_NAME,
|
30 |
-
openai_api_key=AZURE_OPENAI_API_KEY,
|
31 |
azure_endpoint=AZURE_OPENAI_ENDPOINT,
|
|
|
32 |
openai_api_version="2024-08-01-preview",
|
33 |
chunk_size=1000
|
34 |
#validate_base_url=False
|
@@ -42,8 +42,8 @@ vectorstore = FAISS.load_local(
|
|
42 |
# Initialize LLM
|
43 |
llm = AzureChatOpenAI(
|
44 |
deployment_name=AZURE_OPENAI_DEPLOYMENT_NAME,
|
|
|
45 |
openai_api_key=AZURE_OPENAI_API_KEY,
|
46 |
-
openai_api_base=AZURE_OPENAI_ENDPOINT,
|
47 |
openai_api_version="2024-08-01-preview",
|
48 |
temperature=0.5
|
49 |
)
|
|
|
27 |
# Initialize embedding model
|
28 |
embeddings = AzureOpenAIEmbeddings(
|
29 |
azure_deployment=AZURE_OPENAI_DEPLOYMENT_NAME,
|
|
|
30 |
azure_endpoint=AZURE_OPENAI_ENDPOINT,
|
31 |
+
openai_api_key=AZURE_OPENAI_API_KEY,
|
32 |
openai_api_version="2024-08-01-preview",
|
33 |
chunk_size=1000
|
34 |
#validate_base_url=False
|
|
|
42 |
# Initialize LLM
|
43 |
llm = AzureChatOpenAI(
|
44 |
deployment_name=AZURE_OPENAI_DEPLOYMENT_NAME,
|
45 |
+
azure_endpoint=AZURE_OPENAI_ENDPOINT,
|
46 |
openai_api_key=AZURE_OPENAI_API_KEY,
|
|
|
47 |
openai_api_version="2024-08-01-preview",
|
48 |
temperature=0.5
|
49 |
)
|