将生成图片或图片路径写入上下文中 放弃自控图片上下文
This commit is contained in:
@@ -51,7 +51,7 @@ async def generate_furniture(runtime: ToolRuntime, prompts: list[str] = None, nu
|
||||
num_images = 4
|
||||
# current_checkpoint_id = runtime.store.get(namespace=("image_history",), key="checkpoint_id", ).value.get("current_checkpoint_id")
|
||||
|
||||
logger.info(f"\n[系统日志] 正在调用 generate_furniture ...当前checkpoint_id={current_checkpoint_id}")
|
||||
logger.info(f"\n[系统日志] 正在调用 generate_furniture ")
|
||||
|
||||
try:
|
||||
bucket_name = "fida-public-bucket"
|
||||
@@ -88,6 +88,7 @@ async def edit_furniture(runtime: ToolRuntime, config: RunnableConfig, input_ima
|
||||
注意:路径必须是有效的 MinIO 对象路径,工具会自动下载对应图片。
|
||||
|
||||
- prompts (list[str]):
|
||||
必须是列表,即使只有一个提示词也要用 ["你的提示词"] 格式。
|
||||
与图片一一对应的详细英文提示词列表。
|
||||
每个提示词描述对对应图片的具体修改要求(风格、颜色、材质、形状、添加/删除元素等)。
|
||||
示例:["Change the sofa to a modern minimalist style with dark gray fabric and metal legs, add a matching coffee table.",
|
||||
|
||||
Reference in New Issue
Block a user