feat: add switching thinking/non-thinking modes to models

This commit is contained in:
dongfangzan
2025-05-15 19:56:10 +08:00
parent a7c90925ef
commit 9b93b81f84
8 changed files with 74 additions and 5 deletions
@@ -11,13 +11,15 @@
usage: $i18n.t(
'Sends `stream_options: { include_usage: true }` in the request.\nSupported providers will return token usage information in the response when set.'
),
citations: $i18n.t('Displays citations in the response')
citations: $i18n.t('Displays citations in the response'),
switch_thinking: $i18n.t('Sends `enable_thinking: true` in the request. \nSupported toggle providers will return thinking content')
};
export let capabilities: {
vision?: boolean;
usage?: boolean;
citations?: boolean;
switch_thinking?: boolean;
} = {};
</script>
@@ -78,7 +78,8 @@
let capabilities = {
vision: true,
usage: undefined,
citations: true
citations: true,
switch_thinking: false,
};
let knowledge = [];