feat: Remove redundant settigns + rearrange
This commit is contained in:
parent
33356f36e4
commit
c680083cce
|
|
@ -79,19 +79,14 @@
|
||||||
title: 'Display',
|
title: 'Display',
|
||||||
icon: Monitor,
|
icon: Monitor,
|
||||||
fields: [
|
fields: [
|
||||||
{
|
|
||||||
key: 'showThoughtInProgress',
|
|
||||||
label: 'Show thought in progress',
|
|
||||||
type: 'checkbox'
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
key: 'showMessageStats',
|
key: 'showMessageStats',
|
||||||
label: 'Show message generation statistics',
|
label: 'Show message generation statistics',
|
||||||
type: 'checkbox'
|
type: 'checkbox'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 'showTokensPerSecond',
|
key: 'showThoughtInProgress',
|
||||||
label: 'Show tokens per second',
|
label: 'Show thought in progress',
|
||||||
type: 'checkbox'
|
type: 'checkbox'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
@ -99,11 +94,6 @@
|
||||||
label: 'Keep stats visible after generation',
|
label: 'Keep stats visible after generation',
|
||||||
type: 'checkbox'
|
type: 'checkbox'
|
||||||
},
|
},
|
||||||
{
|
|
||||||
key: 'disableAutoScroll',
|
|
||||||
label: 'Disable automatic scroll',
|
|
||||||
type: 'checkbox'
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
key: 'autoMicOnEmpty',
|
key: 'autoMicOnEmpty',
|
||||||
label: 'Show microphone on empty input',
|
label: 'Show microphone on empty input',
|
||||||
|
|
@ -114,6 +104,11 @@
|
||||||
key: 'renderUserContentAsMarkdown',
|
key: 'renderUserContentAsMarkdown',
|
||||||
label: 'Render user content as Markdown',
|
label: 'Render user content as Markdown',
|
||||||
type: 'checkbox'
|
type: 'checkbox'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
key: 'disableAutoScroll',
|
||||||
|
label: 'Disable automatic scroll',
|
||||||
|
type: 'checkbox'
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,6 @@ export const SETTING_CONFIG_DEFAULT: Record<string, string | number | boolean> =
|
||||||
apiKey: '',
|
apiKey: '',
|
||||||
systemMessage: '',
|
systemMessage: '',
|
||||||
theme: 'system',
|
theme: 'system',
|
||||||
showTokensPerSecond: false,
|
|
||||||
showThoughtInProgress: false,
|
showThoughtInProgress: false,
|
||||||
showToolCalls: false,
|
showToolCalls: false,
|
||||||
disableReasoningFormat: false,
|
disableReasoningFormat: false,
|
||||||
|
|
@ -80,7 +79,6 @@ export const SETTING_CONFIG_INFO: Record<string, string> = {
|
||||||
'DRY sampling reduces repetition in generated text even across long contexts. This parameter sets DRY penalty for the last n tokens.',
|
'DRY sampling reduces repetition in generated text even across long contexts. This parameter sets DRY penalty for the last n tokens.',
|
||||||
max_tokens: 'The maximum number of token per output. Use -1 for infinite (no limit).',
|
max_tokens: 'The maximum number of token per output. Use -1 for infinite (no limit).',
|
||||||
custom: 'Custom JSON parameters to send to the API. Must be valid JSON format.',
|
custom: 'Custom JSON parameters to send to the API. Must be valid JSON format.',
|
||||||
showTokensPerSecond: 'Display generation speed in tokens per second during streaming.',
|
|
||||||
showThoughtInProgress: 'Expand thought process by default when generating messages.',
|
showThoughtInProgress: 'Expand thought process by default when generating messages.',
|
||||||
showToolCalls:
|
showToolCalls:
|
||||||
'Display tool call labels and payloads from Harmony-compatible delta.tool_calls data below assistant messages.',
|
'Display tool call labels and payloads from Harmony-compatible delta.tool_calls data below assistant messages.',
|
||||||
|
|
|
||||||
|
|
@ -120,7 +120,6 @@ export function useProcessingState(): UseProcessingStateReturn {
|
||||||
}
|
}
|
||||||
|
|
||||||
const details: string[] = [];
|
const details: string[] = [];
|
||||||
const currentConfig = config(); // Get fresh config each time
|
|
||||||
|
|
||||||
// Always show context info when we have valid data
|
// Always show context info when we have valid data
|
||||||
if (stateToUse.contextUsed >= 0 && stateToUse.contextTotal > 0) {
|
if (stateToUse.contextUsed >= 0 && stateToUse.contextTotal > 0) {
|
||||||
|
|
@ -146,11 +145,7 @@ export function useProcessingState(): UseProcessingStateReturn {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (
|
if (stateToUse.tokensPerSecond && stateToUse.tokensPerSecond > 0) {
|
||||||
currentConfig.showTokensPerSecond &&
|
|
||||||
stateToUse.tokensPerSecond &&
|
|
||||||
stateToUse.tokensPerSecond > 0
|
|
||||||
) {
|
|
||||||
details.push(`${stateToUse.tokensPerSecond.toFixed(1)} tokens/sec`);
|
details.push(`${stateToUse.tokensPerSecond.toFixed(1)} tokens/sec`);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue