mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-26 03:31:24 +08:00
feat(OpenAI): 添加priority服务层级选项
在OpenAIServiceTiers类型和设置选项中新增priority服务层级
This commit is contained in:
parent
75dc168092
commit
66ea594077
@ -64,7 +64,7 @@ const OpenAISettingsGroup: FC<Props> = ({
|
||||
]
|
||||
|
||||
const serviceTierOptions = useMemo(() => {
|
||||
const baseOptions = [
|
||||
const baseOptions: { value: OpenAIServiceTier; label: string }[] = [
|
||||
{
|
||||
value: 'auto',
|
||||
label: t('settings.openai.service_tier.auto')
|
||||
@ -76,6 +76,10 @@ const OpenAISettingsGroup: FC<Props> = ({
|
||||
{
|
||||
value: 'flex',
|
||||
label: t('settings.openai.service_tier.flex')
|
||||
},
|
||||
{
|
||||
value: 'priority',
|
||||
label: t('settings.openai.service_tier.priority')
|
||||
}
|
||||
]
|
||||
return baseOptions.filter((option) => {
|
||||
|
||||
@ -907,7 +907,8 @@ export type OpenAISummaryText = 'auto' | 'concise' | 'detailed' | 'off'
|
||||
export const OpenAIServiceTiers = {
|
||||
AUTO: 'auto',
|
||||
DEFAULT: 'default',
|
||||
FLEX: 'flex'
|
||||
FLEX: 'flex',
|
||||
PRIORITY: 'priority'
|
||||
} as const
|
||||
|
||||
export type OpenAIServiceTier = (typeof OpenAIServiceTiers)[keyof typeof OpenAIServiceTiers]
|
||||
|
||||
Loading…
Reference in New Issue
Block a user