ollama接口设置增加<think>块忽略参数

This commit is contained in:
mcz
2025-05-01 23:41:08 +08:00
parent 7a772d2459
commit 471dc05897
4 changed files with 21 additions and 1 deletions

View File

@@ -117,6 +117,7 @@ function ApiFields({ translator }) {
model = "",
systemPrompt = "",
userPrompt = "",
thinkIgnore = "",
fetchLimit = DEFAULT_FETCH_LIMIT,
fetchInterval = DEFAULT_FETCH_INTERVAL,
dictNo = "",
@@ -246,6 +247,18 @@ function ApiFields({ translator }) {
</>
)}
{(translator.startsWith(OPT_TRANS_OLLAMA)) && (
<>
<TextField
size="small"
label={i18n("think_ignore")}
name="thinkIgnore"
value={thinkIgnore}
onChange={handleChange}
/>
</>
)}
{(translator.startsWith(OPT_TRANS_OPENAI) ||
translator === OPT_TRANS_CLAUDE) && (
<>