Merge pull request #13919 from dongfangzan/main

feat: add switching thinking/non-thinking modes to models
This commit is contained in:
Tim Jaeryang Baek
2025-05-16 22:08:04 +04:00
committed by GitHub
8 changed files with 74 additions and 4 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 = [];