xiaozhi-esp32-server/main/xiaozhi-server
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
..
config update:智控台开启唤醒词加速 2025-06-08 11:50:09 +08:00
core feat: Add integrated image recognition and feedback 2025-06-07 13:14:47 +00:00
models 重新划分目录 (#214) 2025-03-05 23:13:24 +08:00
music 重新划分目录 (#214) 2025-03-05 23:13:24 +08:00
plugins_func FIX 错误提交 2025-05-30 09:30:15 +08:00
test 增加MCP协议测试功能 2025-05-30 14:26:52 +08:00
app.py 修复分布式部署时jwt密钥同步问题 2025-06-02 21:24:26 +08:00
config.yaml update:智控台添加免费流式TTS(linkerai) 2025-06-05 16:02:16 +08:00
config_from_api.yaml update:智控台,完成mcp拍照识图 2025-06-01 13:34:32 +08:00
docker-compose.yml update:单模块部署xiaozhi-server,支持mcp调用摄像头识图 2025-06-01 02:26:19 +08:00
docker-compose_all.yml update:单模块部署xiaozhi-server,支持mcp调用摄像头识图 2025-06-01 02:26:19 +08:00
mcp_server_settings.json update:合并非tts代码 2025-05-21 13:18:12 +08:00
performance_tester.py update:ASR加入队列 2025-06-04 11:41:04 +08:00
performance_tester_vllm.py add:增加千问收费视觉模型,速度更稳定一点 2025-06-03 23:09:27 +08:00
requirements.txt add:增加psutil依赖 2025-06-08 00:21:30 +08:00