mirror of
https://gh-proxy.org/https://github.com/klinsmaya/SQLBot.git
synced 2026-11-08 01:06:59 +08:00
feat: mcp chat generate picture
This commit is contained in:
@@ -643,7 +643,7 @@ def run_task(llm_service: LLMService, session: SessionDep, in_chat: bool = True)
|
||||
else:
|
||||
# todo generate picture
|
||||
if chart['type'] != 'table':
|
||||
yield '# generated chart picture'
|
||||
yield '### generated chart picture\n\n'
|
||||
image_url = request_picture(llm_service.record.chat_id, llm_service.record.id, chart, result)
|
||||
print(image_url)
|
||||
yield f'![{chart["type"]}]({image_url})'
|
||||
|
||||
Reference in New Issue
Block a user