xiaozhi-esp32-server/main/xiaozhi-server/core
google-labs-jules[bot] fbdedcd4c5 feat: Add integrated image recognition and feedback
This feature enables xiaozhi-server to process images you upload via the
/mcp/vision/explain HTTP endpoint and provide spoken feedback based on
the image content.

Key changes:
- Introduced an internal event system (`core/events/vision_events.py`)
  using asyncio.Queue to decouple image processing from dialogue handling.
- Modified `VisionHandler` (`core/api/vision_handler.py`) to publish the
  textual output from the VLLM to this event system, instead of
  returning it directly in the HTTP response. The HTTP response now
  serves as an acknowledgment.
- Enhanced `ConnectionHandler` (`core/connection.py`):
    - It now listens for visual context events relevant to its device_id.
    - Stores the received visual text.
    - Uses an asyncio.Event (`visual_context_ready_event`) to signal
      the arrival of visual context.
    - Integrates the visual context into the prompt sent to the main LLM
      provider, allowing the LLM to generate responses informed by the
      image content.
    - Implements a timeout mechanism to wait for visual context if a
      vision-related query is made before the context is available.
- The spoken feedback is delivered through the existing TTS pipeline,
  processing the LLM's now visually-informed response.

This provides a more integrated way for you to interact with the
system regarding visual information.
2025-06-07 13:14:47 +00:00
..
api feat: Add integrated image recognition and feedback 2025-06-07 13:14:47 +00:00
events feat: Add integrated image recognition and feedback 2025-06-07 13:14:47 +00:00
handle update:替换描述里涉及到的原始方法名称 2025-06-08 15:51:57 +08:00
mcp fix: sanitize MCP tool names for OpenAI 2025-06-07 13:46:35 +08:00
providers update:单流式tts聊天记录上报优化 2025-06-08 11:59:06 +08:00
utils fix: sanitize MCP tool names for OpenAI 2025-06-07 13:46:35 +08:00
auth.py 重新划分目录 (#214) 2025-03-05 23:13:24 +08:00
connection.py feat: Add integrated image recognition and feedback 2025-06-07 13:14:47 +00:00
http_server.py update:智控台,完成mcp拍照识图 2025-06-01 13:34:32 +08:00
websocket_server.py update:兼容豆包流式ASR 2025-05-29 23:56:34 +08:00