Commit 1a11811
committed
docs(ai-bridge): fix Anthropic base URL - remove /v1 suffix
Corrected Anthropic base URL configuration based on official dogfood
template (commit 61fba2d):
- Anthropic SDK appends /v1/messages to base URL
- Therefore base URL should NOT include /v1
- Verified from dogfood/coder/main.tf which uses:
ANTHROPIC_BASE_URL: "https://dev.coder.com/api/experimental/aibridge/anthropic"
Final correct URLs:
- OpenAI: .../openai/v1 (SDK appends /chat/completions)
- Anthropic: .../anthropic (SDK appends /v1/messages)
This ensures compatibility with official Anthropic Python SDK and
tools like Claude Code that follow the same pattern.1 parent 6dc050a commit 1a11811
1 file changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
93 | | - | |
| 93 | + | |
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
| |||
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
117 | | - | |
| 117 | + | |
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
| |||
164 | 164 | | |
165 | 165 | | |
166 | 166 | | |
167 | | - | |
| 167 | + | |
168 | 168 | | |
169 | 169 | | |
170 | 170 | | |
| |||
0 commit comments