|
559 | 559 | <v-row no-gutters class="hidden"> |
560 | 560 | <span v-if="expanded">{{ $t('$vuetify.dataIterator.i.advanced') }}</span> |
561 | 561 | <span v-else> |
562 | | - <v-chip label color="primary" class="ma-1"> |
563 | | - {{ chatbotStore.method }} |
564 | | - </v-chip> |
565 | 562 | <v-chip label color="primary" class="ma-1"> |
566 | 563 | {{ chatbotStore.stream ? "Stream" : "Stream: off" }} |
567 | 564 | </v-chip> |
|
594 | 591 | </v-expansion-panel-title> |
595 | 592 |
|
596 | 593 | <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> |
603 | 598 | <v-checkbox v-model="chatbotStore.stream" |
604 | 599 | :label="$t('$vuetify.dataIterator.i.stream')" color="primary"> |
605 | 600 | </v-checkbox> |
606 | | - <v-checkbox v-model="chatbotStore.mcp" |
| 601 | + <v-checkbox v-if="mcpStore.getServers" v-model="chatbotStore.mcp" |
607 | 602 | :label="$t('$vuetify.dataIterator.i.mcp')" color="primary"> |
608 | 603 | </v-checkbox> |
609 | 604 | </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"> |
611 | 607 | <v-combobox class="px-2" density='compact' |
612 | 608 | :label="$t('$vuetify.dataIterator.i.maxTokensPrefix')" |
613 | 609 | :items="defaultChoiceStore.max_tokens_type" |
@@ -1978,6 +1974,7 @@ <h5 class="font-weight-bold mb-4">MCP</h5> |
1978 | 1974 | top_p: "", |
1979 | 1975 | method: "POST", |
1980 | 1976 | stream: true, |
| 1977 | + thinking: true, |
1981 | 1978 | mcp: false |
1982 | 1979 | }), |
1983 | 1980 |
|
@@ -2041,6 +2038,10 @@ <h5 class="font-weight-bold mb-4">MCP</h5> |
2041 | 2038 | body[chatbotStore.max_tokens_type] = parseInt(chatbotStore.max_tokens_value) |
2042 | 2039 | } |
2043 | 2040 |
|
| 2041 | + if (chatbotStore.thinking === true) { |
| 2042 | + body['enable_thinking'] = false |
| 2043 | + } |
| 2044 | + |
2044 | 2045 | if (chatbotStore.temperature) { |
2045 | 2046 | body["temperature"] = parseFloat(chatbotStore.temperature) |
2046 | 2047 | } |
@@ -2459,6 +2460,7 @@ <h5 class="font-weight-bold mb-4">MCP</h5> |
2459 | 2460 | i: { |
2460 | 2461 | title: 'Interface Configuration', |
2461 | 2462 | apikey: 'API Key', |
| 2463 | + thinking: 'Thinking', |
2462 | 2464 | endpoint: 'Endpoint', |
2463 | 2465 | url: 'URL', |
2464 | 2466 | path: 'Path', |
@@ -2598,6 +2600,7 @@ <h5 class="font-weight-bold mb-4">MCP</h5> |
2598 | 2600 | title: '接口配置', |
2599 | 2601 | apikey: 'API 密钥', |
2600 | 2602 | endpoint: '端口', |
| 2603 | + thinking: '思考模式', |
2601 | 2604 | url: '网址', |
2602 | 2605 | path: '路径', |
2603 | 2606 | model: '模型', |
|
0 commit comments