fix: refine auth message to give explicit tip

This commit is contained in:
mingholy.lmh 2026-01-07 22:56:57 +08:00
parent ded1ebcdff
commit 5ea841dd02
9 changed files with 148 additions and 71 deletions

View file

@ -149,7 +149,7 @@ describe('validateAuthMethod', () => {
process.env['CUSTOM_ANTHROPIC_KEY'] = 'custom-key';
const result = validateAuthMethod(AuthType.USE_ANTHROPIC);
expect(result).toContain('ANTHROPIC_BASE_URL');
expect(result).toContain('modelProviders[].baseUrl');
});
it('should return null for USE_VERTEX_AI with custom envKey', () => {