Skip to content

Commit 67c5546

Browse files
authored
Support for QWEN3's enable_thinking can be turned off
1 parent e7b514b commit 67c5546

File tree

1 file changed

+14
-11
lines changed

1 file changed

+14
-11
lines changed

index.html

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -559,9 +559,6 @@
559559
<v-row no-gutters class="hidden">
560560
<span v-if="expanded">{{ $t('$vuetify.dataIterator.i.advanced') }}</span>
561561
<span v-else>
562-
<v-chip label color="primary" class="ma-1">
563-
{{ chatbotStore.method }}
564-
</v-chip>
565562
<v-chip label color="primary" class="ma-1">
566563
{{ chatbotStore.stream ? "Stream" : "Stream: off" }}
567564
</v-chip>
@@ -594,20 +591,19 @@
594591
</v-expansion-panel-title>
595592

596593
<v-expansion-panel-text>
597-
<v-row class="px-2 mr-2">
598-
<v-col>
599-
<v-combobox density='compact' :label="$t('$vuetify.dataIterator.i.method')"
600-
v-model="chatbotStore.method" variant="outlined">
601-
</v-combobox>
602-
</v-col>
594+
<v-row class="px-3 mr-2">
595+
<v-checkbox v-model="chatbotStore.thinking" true-icon='$checkboxIndeterminate'
596+
:label="$t('$vuetify.dataIterator.i.thinking')" color="error">
597+
</v-checkbox>
603598
<v-checkbox v-model="chatbotStore.stream"
604599
:label="$t('$vuetify.dataIterator.i.stream')" color="primary">
605600
</v-checkbox>
606-
<v-checkbox v-model="chatbotStore.mcp"
601+
<v-checkbox v-if="mcpStore.getServers" v-model="chatbotStore.mcp"
607602
:label="$t('$vuetify.dataIterator.i.mcp')" color="primary">
608603
</v-checkbox>
609604
</v-row>
610-
<v-row class="px-3 mt-0 mb-0">
605+
<v-divider></v-divider>
606+
<v-row class="px-3 mt-6 mb-0">
611607
<v-combobox class="px-2" density='compact'
612608
:label="$t('$vuetify.dataIterator.i.maxTokensPrefix')"
613609
:items="defaultChoiceStore.max_tokens_type"
@@ -1978,6 +1974,7 @@ <h5 class="font-weight-bold mb-4">MCP</h5>
19781974
top_p: "",
19791975
method: "POST",
19801976
stream: true,
1977+
thinking: true,
19811978
mcp: false
19821979
}),
19831980

@@ -2041,6 +2038,10 @@ <h5 class="font-weight-bold mb-4">MCP</h5>
20412038
body[chatbotStore.max_tokens_type] = parseInt(chatbotStore.max_tokens_value)
20422039
}
20432040

2041+
if (chatbotStore.thinking === true) {
2042+
body['enable_thinking'] = false
2043+
}
2044+
20442045
if (chatbotStore.temperature) {
20452046
body["temperature"] = parseFloat(chatbotStore.temperature)
20462047
}
@@ -2459,6 +2460,7 @@ <h5 class="font-weight-bold mb-4">MCP</h5>
24592460
i: {
24602461
title: 'Interface Configuration',
24612462
apikey: 'API Key',
2463+
thinking: 'Thinking',
24622464
endpoint: 'Endpoint',
24632465
url: 'URL',
24642466
path: 'Path',
@@ -2598,6 +2600,7 @@ <h5 class="font-weight-bold mb-4">MCP</h5>
25982600
title: '接口配置',
25992601
apikey: 'API 密钥',
26002602
endpoint: '端口',
2603+
thinking: '思考模式',
26012604
url: '网址',
26022605
path: '路径',
26032606
model: '模型',

0 commit comments

Comments
 (0)