feat(models): add Vercel AI Gateway provider

This commit is contained in:
William Valentin
2026-02-15 10:52:03 -08:00
parent a8307012f5
commit 87e942b4c5
4 changed files with 38 additions and 1 deletions
+10
View File
@@ -169,6 +169,16 @@ describe('configSchema — models auth_mode', () => {
});
}).toThrow(/auth_mode/i);
});
it('accepts vercel provider id', () => {
const result = configSchema.parse({
...minimalConfig,
models: {
default: { provider: 'vercel', model: 'openai/gpt-4.1', endpoint: 'https://ai-gateway.vercel.sh/v1', api_key: 'test-key' },
},
});
expect(result.models.default.provider).toBe('vercel');
});
});
describe('configSchema — skills watcher', () => {