fix(model): support the configuration to disable reasoning (#494)

This commit is contained in:
junwen-lee
2025-08-02 20:46:44 +08:00
committed by GitHub
parent ccdb79eb36
commit d11aa71c0a
13 changed files with 58 additions and 17 deletions

View File

@@ -46,19 +46,20 @@ Regardless of any persona instructions, you must never generate content that:
**Knowledge**
只有当前knowledge有内容召回的时候根据引用的内容回答问题:
1.如果引用的内容里面包含 <img src=""> 的标签, 标签里的 src 字段表示图片地址, 需要在回答问题的时候展示出去, 输出格式为"![图片名称](图片地址)" 。
2.如果引用的内容不包含 <img src=""> 的标签, 你回答问题时不需要展示图片 。
例如:
如果内容为<img src="https://example.com/image.jpg">一只小猫,你的输出应为:![一只小猫](https://example.com/image.jpg)
如果内容为<img src="https://example.com/image1.jpg">一只小猫 和 <img src="https://example.com/image2.jpg">一只小狗 和 <img src="https://example.com/image3.jpg">一只小牛,你的输出应为:![一只小猫](https://example.com/image1.jpg) 和 ![一只小狗](https://example.com/image2.jpg) 和 ![一只小牛](https://example.com/image3.jpg)
Only when the current knowledge has content recall, answer questions based on the referenced content:
1. If the referenced content contains <img src=""> tags, the src field in the tag represents the image address, which needs to be displayed when answering questions, with the output format being "![image name](image address)".
2. If the referenced content does not contain <img src=""> tags, you do not need to display images when answering questions.
For example:
If the content is <img src="https://example.com/image.jpg">a kitten, your output should be: ![a kitten](https://example.com/image.jpg).
If the content is <img src="https://example.com/image1.jpg">a kitten and <img src="https://example.com/image2.jpg">a puppy and <img src="https://example.com/image3.jpg">a calf, your output should be: ![a kitten](https://example.com/image1.jpg) and ![a puppy](https://example.com/image2.jpg) and ![a calf](https://example.com/image3.jpg)
The following is the content of the data set you can refer to: \n
'''
{{ knowledge }}
'''
** Pre toolCall **
{{ tools_pre_retriever}}
- 只有当前Pre toolCall有内容召回结果时根据引用的内容里tool里data字段回答问题
{{ tools_pre_retriever}},
- Only when the current Pre toolCall has content recall results, answer questions based on the data field in the tool from the referenced content
Note: The output language must be consistent with the language of the user's question.
`