Skip to content

Commit c124579

Browse files
author
xusenlin
committed
Update qwen
1 parent 7e4b60d commit c124579

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

api/generation/qwen.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -240,9 +240,7 @@ def process_qwen_messages(
240240
content = f"Thought: 我可以使用 {f_name} API。"
241241
else:
242242
content = f"Thought: I can use {f_name}."
243-
244-
if func_call:
245-
content = f"\n{content}\nAction: {f_name}\nAction Input: {f_args}"
243+
246244
if messages[-1]["role"] == Role.USER:
247245
messages.append(
248246
ChatCompletionAssistantMessageParam(role="assistant", content=content.lstrip("\n").rstrip())

0 commit comments

Comments
 (0)