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

lsm / neokai / 25967464488 / 15
81%
dev: 81%

Build:
DEFAULT BRANCH: dev
Ran 16 May 2026 04:50PM UTC
Files 147
Run time 4s
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

16 May 2026 04:47PM UTC coverage: 43.573% (-0.009%) from 43.582%
25967464488.15

push

github

web-flow
fix(providers): stop tagging foreign SDK model IDs as anthropic (#1925)

* fix(providers): stop tagging foreign SDK model IDs as anthropic

When ANTHROPIC_BASE_URL is overridden (e.g. user routes Anthropic SDK
traffic to GLM's Anthropic-compatible endpoint, or a previous GLM session
leaked the env var into process.env), the Claude Agent SDK returns foreign
model IDs such as `glm-5`. `AnthropicProvider.convertSdkModels` previously
tagged every returned model as `provider: 'anthropic'`, so GLM models
surfaced in the UI under the Anthropic group.

Filter SDK results to keep only canonical Claude IDs (`sonnet`/`opus`/
`haiku`/`default`/`sonnet[1m]`) and full `claude-*` IDs before conversion.

Also add a defensive FE fallback: when `models.list` omits the `provider`
field on a non-Anthropic ID, `mapRawModelsToModelInfos` now infers the
provider from the family/id instead of blanket-defaulting to `'anthropic'`.

Adds regression tests covering both layers.

* fix(web): align FE provider inference with daemon routing rules

Review feedback on PR #1925 — the family-first FE fallback misclassified
several edge cases:
  - `openai/gpt-*` lumped under anthropic-codex (should be openrouter)
  - `gpt-oss:*` Ollama models lumped under anthropic-codex
  - `kimi-k2:latest` lumped under kimi (colon tag should be Ollama)
  - `claude-*/preview` lumped under openrouter (should stay anthropic)

Reorder inference to prefer ID-based routing (now mirrors the daemon's
`inferProviderForModel` rules) before falling back to the family map,
and tighten `inferProviderFromModelId` accordingly. Add regression tests
for each edge case.

Also drop placeholder URL comment in anthropic-provider.ts and use the
real `MiniMax-M2.5` ID in tests instead of synthetic `minimax-m2`.

* fix(web): route OpenRouter slash refs before colon→ollama fallback

Review feedback on PR #1925 — `google/gemma-4-31b:free` and similar
OpenRouter IDs that carry tier suffixes (`:free`, `:nitro`, etc.) were
caught ... (continued)

15609 of 35823 relevant lines covered (43.57%)

24.61 hits per line

Source Files on job daemon-5-space-runtime - 25967464488.15
  • Tree
  • List 147
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 25967464488
  • 49a79e5a on github
  • Prev Job for on dev (#25967340249.2)
  • Delete
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