Skip to content

fix(agent): preserve dots in custom provider model IDs (#13061)#13068

Open
EurFelux wants to merge 2 commits into
NousResearch:mainfrom
EurFelux:fix/13061-custom-provider-preserve-dots
Open

fix(agent): preserve dots in custom provider model IDs (#13061)#13068
EurFelux wants to merge 2 commits into
NousResearch:mainfrom
EurFelux:fix/13061-custom-provider-preserve-dots

Conversation

@EurFelux

Copy link
Copy Markdown

Summary

Test plan

  • New TestCustomProviderPreserveDots in tests/agent/test_minimax_provider.py covers bare custom, named custom:zenmux, and unknown URLs.
  • Updated test_non_bedrock_aws_url_does_not_preserve_dots to use an empty provider so it continues to test URL-heuristic scoping in isolation.
  • uv run python -m pytest tests/agent/test_anthropic_adapter.py tests/agent/test_bedrock_integration.py tests/agent/test_minimax_provider.py tests/test_ctx_halving_fix.py — 232 passed.

🤖 Generated with Claude Code

…arch#13061)

Custom providers (`custom` / `custom:<name>`) now bypass the
dots-to-hyphens rewrite in `normalize_model_name()`. The user has
already configured the exact model ID the upstream expects, and
Hermes cannot second-guess an arbitrary third-party API. Fixes
zenmux's `z-ai/glm-5.1` being mangled to `z-ai/glm-5-1` and
rejected with HTTP 404.
@alt-glitch alt-glitch added type/bug Something isn't working P2 Medium — degraded but workaround exists comp/agent Core agent loop, run_agent.py, prompt builder labels Apr 22, 2026
@alt-glitch

Copy link
Copy Markdown
Collaborator

Fixes #13061. Related to #11464 (same symptom via proxy) and #13890 (preserve_dots config override approach).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp/agent Core agent loop, run_agent.py, prompt builder P2 Medium — degraded but workaround exists type/bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] normalize_model_name rewrites custom provider model IDs, breaking models with dots (e.g. z-ai/glm-5.1 via zenmux)

2 participants