接口设置ollama新增是否禁用深度思考参数

This commit is contained in:
mcz
2025-06-03 23:07:10 +08:00
parent 0621957592
commit 8636fadc72
4 changed files with 29 additions and 2 deletions

View File

@@ -314,7 +314,7 @@ const genClaude = ({
return [url, init];
};
const genOllama = ({ text, from, to, url, key, systemPrompt, userPrompt, model }) => {
const genOllama = ({ text, from, to, think,url, key, systemPrompt, userPrompt,model }) => {
systemPrompt = systemPrompt
.replaceAll(INPUT_PLACE_FROM, from)
.replaceAll(INPUT_PLACE_TO, to)
@@ -328,6 +328,7 @@ const genOllama = ({ text, from, to, url, key, systemPrompt, userPrompt, model }
model,
system: systemPrompt,
prompt: userPrompt,
think: think,
stream: false,
};