mirror of
https://github.com/tiennm99/ccs.git
synced 2026-10-13 20:14:34 +00:00
fix(api): complete anthropic direct profile support
This commit is contained in:
1 parent
fedb4d4cde
commit
1f29fa0b6a
11 files changed
+270
-33
No files matched your search
@@ -134,6 +134,18 @@ describe('env-command', () => {
|
||||
expect(result).toEqual({});
|
||||
});
|
||||
|
||||
it('maps native Anthropic API key to OpenAI format', () => {
|
||||
const result = transformToOpenAI({
|
||||
ANTHROPIC_API_KEY: 'sk-ant-api03-test',
|
||||
ANTHROPIC_MODEL: 'claude-sonnet-4-5-20250929',
|
||||
});
|
||||
|
||||
expect(result).toEqual({
|
||||
OPENAI_API_KEY: 'sk-ant-api03-test',
|
||||
OPENAI_MODEL: 'claude-sonnet-4-5-20250929',
|
||||
});
|
||||
});
|
||||
|
||||
it('only extracts relevant vars', () => {
|
||||
const result = transformToOpenAI({
|
||||
ANTHROPIC_BASE_URL: 'http://localhost:8317',
|
||||
|
||||
Reference in new issue
Block a user