修复图片地址获取失败问题

This commit is contained in:
zcr
2026-03-23 18:02:12 +08:00
parent 0ec38e2623
commit 7a4426bc5d
2 changed files with 4 additions and 3 deletions

View File

@@ -177,7 +177,8 @@ async def chat_stream(request: DeepAgentChatRequest):
if current_image_path:
bucket, object_name = current_image_path.split('/', 1)
image_url = get_presigned_url(oss_client=minio_client, bucket=bucket, object_name=object_name)
content.append({"type": "image_url", "image_url": {"url": image_url}})
if image_url is not None:
content.append({"type": "image_url", "image_url": {"url": image_url}})
final_messages = {
"messages": [