Update app.py
Browse files
app.py
CHANGED
|
@@ -68,7 +68,7 @@ system_template = {
|
|
| 68 |
openai.api_type = "azure"
|
| 69 |
openai.api_key = os.environ["api_key"]
|
| 70 |
openai.api_base = os.environ["ressource_endpoint"]
|
| 71 |
-
openai.api_version = "
|
| 72 |
|
| 73 |
retriever = EmbeddingRetriever(
|
| 74 |
document_store=FAISSDocumentStore.load(
|
|
@@ -195,7 +195,7 @@ def chat(
|
|
| 195 |
# raise Exception("report_type arg should be in (All available, IPCC only)")
|
| 196 |
|
| 197 |
reformulated_query = openai.Completion.create(
|
| 198 |
-
engine="
|
| 199 |
prompt=get_reformulation_prompt(query),
|
| 200 |
temperature=0,
|
| 201 |
max_tokens=128,
|
|
|
|
| 68 |
openai.api_type = "azure"
|
| 69 |
openai.api_key = os.environ["api_key"]
|
| 70 |
openai.api_base = os.environ["ressource_endpoint"]
|
| 71 |
+
openai.api_version = "2023-06-01-preview"
|
| 72 |
|
| 73 |
retriever = EmbeddingRetriever(
|
| 74 |
document_store=FAISSDocumentStore.load(
|
|
|
|
| 195 |
# raise Exception("report_type arg should be in (All available, IPCC only)")
|
| 196 |
|
| 197 |
reformulated_query = openai.Completion.create(
|
| 198 |
+
engine="EkiGPT",
|
| 199 |
prompt=get_reformulation_prompt(query),
|
| 200 |
temperature=0,
|
| 201 |
max_tokens=128,
|