We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 638cd11 commit 01f9a86Copy full SHA for 01f9a86
1 file changed
cmd/hpphub/main.go
@@ -300,7 +300,9 @@ func launchClaude(model string, hubURL string) error {
300
fmt.Printf(" ✓ Model: %s\n", model)
301
302
// Step 4: Derive Anthropic base URL
303
- anthropicBaseURL := strings.Replace(cfg.BaseURL, "/llm/v1", "/v1", 1)
+ // Claude Code appends /v1/messages itself, so base URL should not include /v1
304
+ // e.g., "https://router.hpp.io/llm/v1" → "https://router.hpp.io"
305
+ anthropicBaseURL := strings.Replace(cfg.BaseURL, "/llm/v1", "", 1)
306
307
// Step 5: Launch Claude Code with HPP environment
308
fmt.Println()
0 commit comments