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