Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -31,7 +31,7 @@ def chatbot_mistral(messages:list,systemt_prompt=""):
|
|
31 |
}
|
32 |
|
33 |
# create a chat completion
|
34 |
-
for chunk in
|
35 |
if hasattr(chunk.choices[0].delta, "content"):
|
36 |
response = chunk.choices[0].delta.content
|
37 |
yield response
|
|
|
31 |
}
|
32 |
|
33 |
# create a chat completion
|
34 |
+
for chunk in client.chat.completions.create(model="dewu-chat",messages=messages,extra_body=call_args):
|
35 |
if hasattr(chunk.choices[0].delta, "content"):
|
36 |
response = chunk.choices[0].delta.content
|
37 |
yield response
|