Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -89,7 +89,7 @@ def predict(message, model_type):
|
|
| 89 |
if (model_type==1):
|
| 90 |
llm = ChatOpenAI(temperature = 0.1, model_name="gpt-3.5-turbo-16k", streaming=True, callbacks=[QueueCallback(q)])
|
| 91 |
else:
|
| 92 |
-
llm = ChatOpenAI(temperature = 0.1, model_name="gpt-4-
|
| 93 |
|
| 94 |
# This is needed for both the memory and the prompt
|
| 95 |
memory_key = "history"
|
|
|
|
| 89 |
if (model_type==1):
|
| 90 |
llm = ChatOpenAI(temperature = 0.1, model_name="gpt-3.5-turbo-16k", streaming=True, callbacks=[QueueCallback(q)])
|
| 91 |
else:
|
| 92 |
+
llm = ChatOpenAI(temperature = 0.1, model_name="gpt-4-turbo-preview", streaming=True, callbacks=[QueueCallback(q)])
|
| 93 |
|
| 94 |
# This is needed for both the memory and the prompt
|
| 95 |
memory_key = "history"
|