Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import { describe, expect, it } from 'bun:test'
import { getModelsForProvider } from './models'

describe('getModelsForProvider', () => {
describe('qwen-code', () => {
it('includes supported models', () => {
const models = getModelsForProvider('qwen-code')
const ids = models.map((m) => m.modelId)
expect(ids).toContain('coder-model')
expect(ids).toContain('qwen3-coder-plus')
expect(ids).toContain('qwen3-coder-flash')
})

it('does not include qwen3.5-plus which is unsupported', () => {
const models = getModelsForProvider('qwen-code')
const ids = models.map((m) => m.modelId)
expect(ids).not.toContain('qwen3.5-plus')
})
})
})
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ const CUSTOM_PROVIDER_MODELS: Partial<Record<ProviderType, ModelInfo[]>> = {
{ modelId: 'coder-model', contextLength: 1000000 },
{ modelId: 'qwen3-coder-plus', contextLength: 1000000 },
{ modelId: 'qwen3-coder-flash', contextLength: 1000000 },
{ modelId: 'qwen3.5-plus', contextLength: 1000000 },
],
}

Expand Down
Loading