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
+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')
})
})