Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -165,8 +165,8 @@ def chat_with_model(prompt, document_section, model_choice='gpt-3.5-turbo'):
|
|
165 |
api_key= os.getenv('OPENAI_API_KEY')
|
166 |
)
|
167 |
stream = client.chat.completions.create(
|
168 |
-
|
169 |
-
messages=
|
170 |
stream=True,
|
171 |
)
|
172 |
for part in stream:
|
|
|
165 |
api_key= os.getenv('OPENAI_API_KEY')
|
166 |
)
|
167 |
stream = client.chat.completions.create(
|
168 |
+
model='gpt-3.5-turbo',
|
169 |
+
messages=conversation,
|
170 |
stream=True,
|
171 |
)
|
172 |
for part in stream:
|