解决历史上下文中图片 url 过期问题

This commit is contained in:
zcr
2026-04-09 14:23:22 +08:00
parent e1419676fb
commit 85e75cd43f

View File

@@ -147,7 +147,7 @@ async def edit_furniture(runtime: ToolRuntime, config: RunnableConfig, input_ima
if len(input_image_paths): if len(input_image_paths):
for i in range(len(input_image_paths)): for i in range(len(input_image_paths)):
bucket_name = "fida-public-bucket" bucket_name = "fida-public-bucket"
object_name = f"furniture/sketches/{uuid.uuid4()}.png" object_name = f"furniture/sketches/{uuid.uuid4()}"
image_url = await generate_or_edit_image(input_path=[input_image_paths[i]], prompt=prompts[i], bucket_name=bucket_name, object_name=f"{object_name}-{i}.png") image_url = await generate_or_edit_image(input_path=[input_image_paths[i]], prompt=prompts[i], bucket_name=bucket_name, object_name=f"{object_name}-{i}.png")
result.append(image_url) result.append(image_url)
return result return result