Commit 6bb2303
committed
feat(anthropic): accept base_url for OpenAI-compat proxies
Forward base_url through to anthropic.AsyncAnthropic so downstream
consumers can route to Anthropic-compat gateways (e.g. DeepSeek's
/anthropic surface) without monkey-patching the SDK client.
Discovered while diagnosing why cubebox's prompt-cache E2E failed
against DeepSeek: the provider silently connected to api.anthropic.com
with a DeepSeek key. With base_url forwarded, the cache test passes
(cache_read 1900+/2000 on turn 2).1 parent 42269cd commit 6bb2303
1 file changed
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| 65 | + | |
65 | 66 | | |
66 | 67 | | |
67 | 68 | | |
68 | 69 | | |
69 | 70 | | |
70 | | - | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
71 | 75 | | |
72 | 76 | | |
73 | 77 | | |
| |||
0 commit comments