Compare commits
2 Commits
3ec89714f8
...
9ad13f7036
| Author | SHA1 | Date |
|---|---|---|
|
|
9ad13f7036 | |
|
|
182bff1bd8 |
|
|
@ -21,6 +21,8 @@ while True:
|
|||
extra_body={"chat_template_kwargs": {"open_thinking": True}, "reasoning_effort": "medium"} # 思考开关
|
||||
)
|
||||
if not stream:
|
||||
if not response.choices or response.choices[0].message is None:
|
||||
raise ValueError("LLM returned empty or filtered response")
|
||||
assistant_res = response.choices[0].message.content
|
||||
print('[A]: ', assistant_res)
|
||||
else:
|
||||
|
|
|
|||
Loading…
Reference in New Issue