Skip to content

Commit d5be4c7

Browse files
authored
🐛 llm incorrectly regard no_think as a tool/assistant
2 parents 9a0072c + f82e6b8 commit d5be4c7

File tree

2 files changed

+18
-3
lines changed

2 files changed

+18
-3
lines changed

backend/prompts/utils/prompt_generate.yaml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -234,8 +234,15 @@ USER_PROMPT: |-
234234
{{task_description}}
235235
236236
### 可用工具列表:
237+
{% if tool_description %}
237238
{{tool_description}}
238-
239+
{% else %}
240+
你没有可用的工具
241+
{% endif %}
242+
239243
### 可用助手列表:
244+
{% if assistant_description %}
240245
{{assistant_description}}
241-
246+
{% else %}
247+
你没有可用的助手
248+
{% endif %}

backend/prompts/utils/prompt_generate_en.yaml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,15 @@ USER_PROMPT: |-
238238
{{task_description}}
239239
240240
### Available Tools List:
241+
{% if tool_description %}
241242
{{tool_description}}
243+
{% else %}
244+
You have no available tools.
245+
{% endif %}
242246
243247
### Available Assistants List:
244-
{{assistant_description}}
248+
{% if assistant_description %}
249+
{{assistant_description}}
250+
{% else %}
251+
You have no available assistants
252+
{% endif %}

0 commit comments

Comments
 (0)