• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

stacklok / toolhive / 25362313240
65%

Build:
DEFAULT BRANCH: main
Ran 05 May 2026 07:02AM UTC
Jobs 1
Files 712
Run time 2min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

05 May 2026 06:56AM UTC coverage: 64.516% (-0.02%) from 64.538%
25362313240

push

github

web-flow
Add --anthropic-path-prefix flag and auto-probe for Envoy AI Gateway (#5174)

Some gateways (e.g. Envoy AI Gateway) serve native-Anthropic traffic at
/anthropic/v1/messages rather than /v1/messages, causing Claude Code to
receive 404s and report "model not found" errors.

- Add --anthropic-path-prefix flag to `thv llm setup` (default empty).
  When set, the prefix is appended to the gateway URL when writing
  ANTHROPIC_BASE_URL in direct-mode tool configs (Claude Code, Codex).
- Auto-probe: if the flag is omitted, issue a HEAD request to
  <gateway>/anthropic/v1/messages; a 401 response (auth-reachable path)
  triggers automatic prefix selection. 404 or any error means no prefix.
- Proxy-mode tools (Cursor, VS Code) are unaffected — they route through
  `thv llm proxy` and don't use ANTHROPIC_BASE_URL.

Closes #5158

Co-authored-by: taskbot <taskbot@users.noreply.github.com>

74 of 105 new or added lines in 3 files covered. (70.48%)

33 existing lines in 4 files now uncovered.

61926 of 95986 relevant lines covered (64.52%)

58.89 hits per line

Uncovered Changes

Lines Coverage ∆ File
20
80.36
0.46% pkg/llm/setup.go
9
17.96
0.68% cmd/thv/app/llm.go
2
75.3
-0.11% pkg/client/llm_gateway.go

Coverage Regressions

Lines Coverage ∆ File
12
75.09
-4.33% pkg/client/config.go
12
67.9
-14.81% pkg/client/discovery.go
8
23.56
-4.6% pkg/client/manager.go
1
17.96
0.68% cmd/thv/app/llm.go
Jobs
ID Job ID Ran Files Coverage
1 25362313240.1 05 May 2026 07:02AM UTC 712
64.52
GitHub Action Run
Source Files on build 25362313240
  • Tree
  • List 712
  • Changed 7
  • Source Changed 5
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #25362313240
  • 655de227 on github
  • Prev Build on main (#25325051529)
  • Next Build on main (#25363821716)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc