mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-07-16 09:26:07 +00:00
fix: 在设置model为非视觉模型时,非local-agent的runner无法获得图片消息 (#948)
This commit is contained in:
@@ -105,10 +105,6 @@ class AsyncDifyServiceClient:
|
||||
timeout: float = 30.0,
|
||||
) -> str:
|
||||
"""上传文件"""
|
||||
# curl -X POST 'http://dify.rockchin.top/v1/files/upload' \
|
||||
# --header 'Authorization: Bearer {api_key}' \
|
||||
# --form 'file=@localfile;type=image/[png|jpeg|jpg|webp|gif] \
|
||||
# --form 'user=abc-123'
|
||||
async with httpx.AsyncClient(
|
||||
base_url=self.base_url,
|
||||
trust_env=True,
|
||||
|
||||
Reference in New Issue
Block a user