补充:在生成回答时不添加思考内容
This commit is contained in:
@ -163,9 +163,6 @@ async def call_api_streaming(
|
|||||||
content = delta.get("content")
|
content = delta.get("content")
|
||||||
if content:
|
if content:
|
||||||
full_content.append(content)
|
full_content.append(content)
|
||||||
reasoning = delta.get("reasoning_content")
|
|
||||||
if reasoning:
|
|
||||||
full_content.append(reasoning)
|
|
||||||
except json.JSONDecodeError:
|
except json.JSONDecodeError:
|
||||||
continue
|
continue
|
||||||
except IndexError:
|
except IndexError:
|
||||||
|
|||||||
Reference in New Issue
Block a user