mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2026-01-07 13:59:28 +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 serviceTierOptions = useMemo(() => {
|
||||||
const baseOptions = [
|
const baseOptions: { value: OpenAIServiceTier; label: string }[] = [
|
||||||
{
|
{
|
||||||
value: 'auto',
|
value: 'auto',
|
||||||
label: t('settings.openai.service_tier.auto')
|
label: t('settings.openai.service_tier.auto')
|
||||||
@ -76,6 +76,10 @@ const OpenAISettingsGroup: FC<Props> = ({
|
|||||||
{
|
{
|
||||||
value: 'flex',
|
value: 'flex',
|
||||||
label: t('settings.openai.service_tier.flex')
|
label: t('settings.openai.service_tier.flex')
|
||||||
|
},
|
||||||
|
{
|
||||||
|
value: 'priority',
|
||||||
|
label: t('settings.openai.service_tier.priority')
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
return baseOptions.filter((option) => {
|
return baseOptions.filter((option) => {
|
||||||
|
|||||||
@ -907,7 +907,8 @@ export type OpenAISummaryText = 'auto' | 'concise' | 'detailed' | 'off'
|
|||||||
export const OpenAIServiceTiers = {
|
export const OpenAIServiceTiers = {
|
||||||
AUTO: 'auto',
|
AUTO: 'auto',
|
||||||
DEFAULT: 'default',
|
DEFAULT: 'default',
|
||||||
FLEX: 'flex'
|
FLEX: 'flex',
|
||||||
|
PRIORITY: 'priority'
|
||||||
} as const
|
} as const
|
||||||
|
|
||||||
export type OpenAIServiceTier = (typeof OpenAIServiceTiers)[keyof typeof OpenAIServiceTiers]
|
export type OpenAIServiceTier = (typeof OpenAIServiceTiers)[keyof typeof OpenAIServiceTiers]
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user