mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-06 07:56:52 +08:00
refactor: convert _stream_agent_tokens to a static method
This commit is contained in:
@@ -1177,8 +1177,9 @@ class MoviePilotAgent:
|
|||||||
)
|
)
|
||||||
return attachments
|
return attachments
|
||||||
|
|
||||||
|
@staticmethod
|
||||||
async def _stream_agent_tokens(
|
async def _stream_agent_tokens(
|
||||||
self, agent, messages: dict, config: dict, on_token: Callable[[str], None]
|
agent, messages: dict, config: dict, on_token: Callable[[str], None]
|
||||||
):
|
):
|
||||||
"""
|
"""
|
||||||
流式运行智能体,过滤工具调用token和思考内容,将模型生成的内容通过回调输出。
|
流式运行智能体,过滤工具调用token和思考内容,将模型生成的内容通过回调输出。
|
||||||
|
|||||||
Reference in New Issue
Block a user