feat(grok): 回滚对 Grok 4.1 系列模型的支持

添加 grok-4.1-mini、grok-4.1-thinking 及其 nsfw 变体到可用模型列表,并更新核心映射以支持这些新模型。
同时将项目版本号更新至 2.12.9。
This commit is contained in:
hex2077 2026-04-07 12:03:15 +08:00
parent 2af64f5fad
commit 9d87e54837
3 changed files with 7 additions and 1 deletions

View file

@ -1 +1 @@
2.12.8
2.12.9

View file

@ -35,6 +35,8 @@ const httpsAgent = new https.Agent({
});
const CORE_MODEL_MAPPING = {
'grok-4.1-mini': { name: 'grok-4-1-thinking-1129', mode: 'MODEL_MODE_GROK_4_1_MINI_THINKING', modeId: 'grok-4-1-mini' },
'grok-4.1-thinking': { name: 'grok-4-1-thinking-1129', mode: 'MODEL_MODE_GROK_4_1_THINKING', modeId: 'grok-4-1-thinking' },
'grok-4.20': { name: 'grok-420', mode: 'MODEL_MODE_AUTO', modeId: 'auto' },
'grok-4.20-auto': { name: 'grok-420', mode: 'MODEL_MODE_AUTO', modeId: 'auto' },
'grok-4.20-fast': { name: 'grok-420', mode: 'MODEL_MODE_FAST', modeId: 'fast' },

View file

@ -94,6 +94,8 @@ export const PROVIDER_MODELS = {
],
'forward-api': [],
'grok-custom': [
'grok-4.1-mini',
'grok-4.1-thinking',
'grok-4.20',
'grok-4.20-auto',
'grok-4.20-fast',
@ -101,6 +103,8 @@ export const PROVIDER_MODELS = {
'grok-4.20-heavy',
'grok-imagine-1.0',
'grok-imagine-1.0-edit',
'grok-4.1-mini-nsfw',
'grok-4.1-thinking-nsfw',
'grok-4.20-nsfw',
'grok-4.20-auto-nsfw',
'grok-4.20-fast-nsfw',