beyoru commited on
Commit
4a53428
·
verified ·
1 Parent(s): 8e933e2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -83,8 +83,9 @@ def respond(
83
 
84
  # Generate response incrementally and yield each token
85
  accumulated_response = ""
86
- for chunk in qwen_client.chat_completion(
87
- messages,
 
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,