feat(models): add minimax and moonshot providers
This commit is contained in:
@@ -179,6 +179,24 @@ describe('configSchema — models auth_mode', () => {
|
||||
});
|
||||
expect(result.models.default.provider).toBe('vercel');
|
||||
});
|
||||
|
||||
it('accepts minimax and moonshot provider ids', () => {
|
||||
const minimax = configSchema.parse({
|
||||
...minimalConfig,
|
||||
models: {
|
||||
default: { provider: 'minimax', model: 'MiniMax-M1', api_key: 'test-key' },
|
||||
},
|
||||
});
|
||||
expect(minimax.models.default.provider).toBe('minimax');
|
||||
|
||||
const moonshot = configSchema.parse({
|
||||
...minimalConfig,
|
||||
models: {
|
||||
default: { provider: 'moonshot', model: 'moonshot-v1-8k', api_key: 'test-key' },
|
||||
},
|
||||
});
|
||||
expect(moonshot.models.default.provider).toBe('moonshot');
|
||||
});
|
||||
});
|
||||
|
||||
describe('configSchema — matrix', () => {
|
||||
|
||||
Reference in New Issue
Block a user