Update Nous provider model preset (#896)

This commit is contained in:
ekko
2026-05-21 13:20:26 +08:00
committed by GitHub
parent dd3320d1ce
commit 3b4e0cec74
2 changed files with 21 additions and 15 deletions
+12 -15
View File
@@ -395,39 +395,36 @@ export const PROVIDER_PRESETS: ProviderPreset[] = [
value: 'nous',
builtin: true,
base_url: 'https://inference-api.nousresearch.com/v1',
// Synced from:
// - https://hermes-agent.nousresearch.com/docs/api/model-catalog.json
// - https://portal.nousresearch.com/api/nous/recommended-models
models: [
'moonshotai/kimi-k2.6',
'xiaomi/mimo-v2.5-pro',
'xiaomi/mimo-v2.5',
'tencent/hy3-preview',
'anthropic/claude-opus-4.7',
'anthropic/claude-opus-4.6',
'anthropic/claude-sonnet-4.6',
'anthropic/claude-sonnet-4.5',
'moonshotai/kimi-k2.6',
'qwen/qwen3.6-plus',
'anthropic/claude-haiku-4.5',
'openai/gpt-5.5',
'openai/gpt-5.5-pro',
'openai/gpt-5.4-mini',
'openai/gpt-5.4-nano',
'openai/gpt-5.3-codex',
'xiaomi/mimo-v2.5-pro',
'xiaomi/mimo-v2.5',
'tencent/hy3-preview',
'google/gemini-3-pro-preview',
'google/gemini-3-flash-preview',
'google/gemini-3.1-pro-preview',
'google/gemini-3.1-flash-lite-preview',
'qwen/qwen3.5-plus-02-15',
'qwen/qwen3.5-35b-a3b',
'qwen/qwen3.6-35b-a3b',
'stepfun/step-3.5-flash',
'minimax/minimax-m2.7',
'minimax/minimax-m2.5',
'minimax/minimax-m2.5:free',
'z-ai/glm-5.1',
'z-ai/glm-5v-turbo',
'z-ai/glm-5-turbo',
'x-ai/grok-4.20-beta',
'x-ai/grok-4.3',
'nvidia/nemotron-3-super-120b-a12b',
'arcee-ai/trinity-large-thinking',
'openai/gpt-5.5-pro',
'openai/gpt-5.4-nano',
'deepseek/deepseek-v4-pro',
'deepseek/deepseek-v4-flash',
],
},
{
+9
View File
@@ -7,6 +7,7 @@ import {
const OPENAI_CODEX_PROVIDER = 'openai-codex'
const FUN_CODEX_PROVIDER = 'fun-codex'
const NOUS_PROVIDER = 'nous'
const GPT_5_5_MODEL = 'gpt-5.5'
function modelsForProvider(providerPresets: Array<{ value: string; models: string[] }>, provider: string): string[] {
@@ -28,4 +29,12 @@ describe('provider presets', () => {
it('exposes GPT-5.5 through provider model maps', () => {
expect(buildServerProviderModelMap()[OPENAI_CODEX_PROVIDER]).toContain(GPT_5_5_MODEL)
})
it('hardcodes current Nous catalog and recommended models', () => {
const models = modelsForProvider(SERVER_PROVIDER_PRESETS, NOUS_PROVIDER)
expect(models).toContain('qwen/qwen3.6-plus')
expect(models).toContain('qwen/qwen3.6-35b-a3b')
expect(models).toContain('deepseek/deepseek-v4-flash')
expect(buildServerProviderModelMap()[NOUS_PROVIDER]).toContain('deepseek/deepseek-v4-flash')
})
})