ソースを参照

fix: correct response hint for generated image to avoid illusion of regernerated image link (#2962)

tags/0.5.11
Bowen Liang 1年前
コミット
129a9850eb
コミッターのメールアドレスに関連付けられたアカウントが存在しません
2個のファイルの変更2行の追加2行の削除
  1. 1
    1
      api/core/features/assistant_base_runner.py
  2. 1
    1
      api/core/tools/tool/tool.py

+ 1
- 1
api/core/features/assistant_base_runner.py ファイルの表示

@@ -145,7 +145,7 @@ class BaseAssistantApplicationRunner(AppRunner):
result += f"result link: {response.message}. please tell user to check it."
elif response.type == ToolInvokeMessage.MessageType.IMAGE_LINK or \
response.type == ToolInvokeMessage.MessageType.IMAGE:
result += "image has been created and sent to user already, you should tell user to check it now."
result += "image has been created and sent to user already, you do not need to create it, just tell the user to check it now."
else:
result += f"tool response: {response.message}."


+ 1
- 1
api/core/tools/tool/tool.py ファイルの表示

@@ -232,7 +232,7 @@ class Tool(BaseModel, ABC):
result += f"result link: {response.message}. please tell user to check it."
elif response.type == ToolInvokeMessage.MessageType.IMAGE_LINK or \
response.type == ToolInvokeMessage.MessageType.IMAGE:
result += "image has been created and sent to user already, you should tell user to check it now."
result += "image has been created and sent to user already, you do not need to create it, just tell the user to check it now."
elif response.type == ToolInvokeMessage.MessageType.BLOB:
if len(response.message) > 114:
result += str(response.message[:114]) + '...'

読み込み中…
キャンセル
保存