fix: 在设置model为非视觉模型时,非local-agent的runner无法获得图片消息 (#948)

This commit is contained in:
Junyan Qin
2024-12-17 01:17:57 +08:00
parent 793d64303e
commit 3314a7a9e9
2 changed files with 3 additions and 7 deletions
-4
View File
@@ -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,