1.新增视觉能力 2.新增对上次图片 或 上传图片 引用图片做编辑能力.
This commit is contained in:
@@ -148,7 +148,7 @@ async def chat_stream(request: DeepAgentChatRequest):
|
||||
files["input_image"].append(path)
|
||||
|
||||
# 用户引用图片
|
||||
if len(request.quote_image_path):
|
||||
if request.quote_image_path:
|
||||
bucket, object_name = request.quote_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}})
|
||||
|
||||
Reference in New Issue
Block a user