mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-06 07:56:52 +08:00
Merge remote-tracking branch 'origin/v3' into v3
# Conflicts: # app/api/endpoints/agent.py # app/api/endpoints/anthropic.py # app/api/endpoints/openai.py # app/chain/__init__.py # app/chain/message.py # app/chain/site.py # app/chain/subscribe.py # app/chain/transfer.py # app/modules/discord/__init__.py # app/modules/qqbot/__init__.py # app/modules/slack/__init__.py # app/modules/telegram/__init__.py # app/modules/wechat/__init__.py # app/runtime/extensions/module_manager.py # app/runtime/extensions/service_registry.py # tests/test_agent_interaction.py # tests/test_slash_command_interactions.py # tests/test_web_agent_stream.py
This commit is contained in:
@@ -12,7 +12,7 @@ from app.agent.callback import StreamingHandler
|
||||
from app.agent.middleware.subagents import is_subagent_stream_metadata
|
||||
from app.agent.tools.base import MoviePilotTool
|
||||
from app.agent.tools.impl.send_voice_message import SendVoiceMessageTool
|
||||
from app.api.endpoints.openai import _OpenAIStreamingHandler
|
||||
from app.api.endpoints.openai import _get_openai_streaming_handler_type
|
||||
from app.runtime.config import settings
|
||||
from app.schemas.message import MessageResponse
|
||||
from app.schemas.types import NotificationChannel, MessageType
|
||||
@@ -321,7 +321,7 @@ class TestAgentToolStreaming:
|
||||
def test_openai_streaming_handler_flushes_pending_summary_to_queue(self):
|
||||
"""校验 OpenAI 流式处理器将待发送摘要推入队列。"""
|
||||
async def _run():
|
||||
handler = _OpenAIStreamingHandler()
|
||||
handler = _get_openai_streaming_handler_type()()
|
||||
queue: asyncio.Queue = asyncio.Queue()
|
||||
handler.bind_queue(queue)
|
||||
await handler.start_streaming()
|
||||
|
||||
Reference in New Issue
Block a user