diff --git a/src/biz/Settings.tsx b/src/biz/Settings.tsx index a22bfda..d21cd4b 100644 --- a/src/biz/Settings.tsx +++ b/src/biz/Settings.tsx @@ -11,6 +11,7 @@ import { LANGUAGES, MODEL_DEFAULT, MODEL_MAP, + MODEL_TIP, MODELS, PAGE_MAIN, PROMPT_DEFAULTS, @@ -257,13 +258,18 @@ const Settings = () => { {MODELS.map(model => )} +
+ {MODEL_TIP} +
{modelValue === 'custom' && } {modelValue === 'custom' && - setCustomModelTokensValue(e.target.value?parseInt(e.target.value):undefined)}/> + setCustomModelTokensValue(e.target.value ? parseInt(e.target.value) : undefined)}/> } } @@ -274,10 +280,12 @@ const Settings = () => {
-
官方网址:Google AI Studio (目前免费) +
官方网址:Google AI Studio (目前免费) +
+
谷歌模型安全要求比较高,有些视频可能无法生成总结!
-
谷歌模型安全要求比较高,有些视频可能无法生成总结!
} diff --git a/src/const.tsx b/src/const.tsx index c3964d5..e97242b 100644 --- a/src/const.tsx +++ b/src/const.tsx @@ -222,24 +222,21 @@ export const ASK_ENABLED_DEFAULT = true export const DEFAULT_SERVER_URL_OPENAI = 'https://api.openai.com' export const CUSTOM_MODEL_TOKENS = 16385 +export const MODEL_TIP = '推荐gpt-4o-mini,能力强,价格低,token上限大' export const MODELS = [{ - code: 'gpt-3.5-turbo', - name: 'gpt-3.5-turbo', - tokens: 4096, + code: 'gpt-4o-mini', + name: 'gpt-4o-mini', + tokens: 128000, }, { code: 'gpt-3.5-turbo-0125', name: 'gpt-3.5-turbo-0125', tokens: 16385, -}, { - code: 'gpt-3.5-turbo-1106', - name: 'gpt-3.5-turbo-1106', - tokens: 16385, }, { code: 'custom', name: '自定义', }] export const GEMINI_TOKENS = 32768 -export const MODEL_DEFAULT = MODELS[1].code +export const MODEL_DEFAULT = MODELS[0].code export const MODEL_MAP: {[key: string]: typeof MODELS[number]} = {} for (const model of MODELS) { MODEL_MAP[model.code] = model