Spaces:
Sleeping
Sleeping
pgurazada1
commited on
Commit
•
bf63641
1
Parent(s):
2233db8
Update chat_interface.py
Browse files- chat_interface.py +3 -3
chat_interface.py
CHANGED
@@ -49,9 +49,9 @@ Here are some documents that are relevant to the question mentioned below.
|
|
49 |
"""
|
50 |
|
51 |
client = AzureOpenAI(
|
52 |
-
api_key
|
53 |
-
azure_endpoint
|
54 |
-
api_version
|
55 |
)
|
56 |
|
57 |
embedding_model = HuggingFaceEmbeddings(model_name='thenlper/gte-large')
|
|
|
49 |
"""
|
50 |
|
51 |
client = AzureOpenAI(
|
52 |
+
api_key=os.environ["AZURE_OPENAI_KEY"],
|
53 |
+
azure_endpoint=os.environ["AZURE_OPENAI_ENDPOINT"],
|
54 |
+
api_version="2024-02-01"
|
55 |
)
|
56 |
|
57 |
embedding_model = HuggingFaceEmbeddings(model_name='thenlper/gte-large')
|