Update app.py
Browse files
app.py
CHANGED
@@ -83,8 +83,9 @@ def respond(
|
|
83 |
|
84 |
# Generate response incrementally and yield each token
|
85 |
accumulated_response = ""
|
86 |
-
|
87 |
-
|
|
|
88 |
max_tokens=max_tokens,
|
89 |
stream=True,
|
90 |
temperature=temperature,
|
|
|
83 |
|
84 |
# Generate response incrementally and yield each token
|
85 |
accumulated_response = ""
|
86 |
+
# Corrected the chat completions method call
|
87 |
+
for chunk in qwen_client.chat.completions.create(
|
88 |
+
messages=messages,
|
89 |
max_tokens=max_tokens,
|
90 |
stream=True,
|
91 |
temperature=temperature,
|