修复图片地址获取失败问题
This commit is contained in:
@@ -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": [
|
||||
|
||||
Reference in New Issue
Block a user