Update app.py
Browse files
app.py
CHANGED
|
@@ -35,6 +35,7 @@ def call_openai_api(user_prompt):
|
|
| 35 |
for attempt in range(max_retries):
|
| 36 |
try:
|
| 37 |
response = openai.ChatCompletion.create(
|
|
|
|
| 38 |
model="gpt-3.5-turbo",
|
| 39 |
messages=[
|
| 40 |
{"role": "system", "content": "You are a research assistant. Provide factual short answers to your prompts."},
|
|
|
|
| 35 |
for attempt in range(max_retries):
|
| 36 |
try:
|
| 37 |
response = openai.ChatCompletion.create(
|
| 38 |
+
stream="true"
|
| 39 |
model="gpt-3.5-turbo",
|
| 40 |
messages=[
|
| 41 |
{"role": "system", "content": "You are a research assistant. Provide factual short answers to your prompts."},
|