mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-11-29 05:09:46 +01:00
11 lines
367 B
Python
11 lines
367 B
Python
import json
|
|
from config.logger import setup_logging
|
|
|
|
logger = setup_logging()
|
|
|
|
async def handleVLMessage(conn, text):
|
|
messages = [
|
|
{"type": "image_url","image_url": {"url": f"data:image/png;base64,{text}"},},
|
|
{"type": "text", "text": "图中描绘的是什么景象,请细致查看并描述"},
|
|
]
|
|
conn.executor.submit(conn.chat, messages)
|