Skip to content

fix(agent): preserve dotted ZAI models on custom anthropic proxies#11480

Open
LeonSGP43 wants to merge 1 commit into
NousResearch:mainfrom
LeonSGP43:fix/custom-anthropic-zai-dot-preservation
Open

fix(agent): preserve dotted ZAI models on custom anthropic proxies#11480
LeonSGP43 wants to merge 1 commit into
NousResearch:mainfrom
LeonSGP43:fix/custom-anthropic-zai-dot-preservation

Conversation

@LeonSGP43

Copy link
Copy Markdown
Contributor

Fixes #11464.

Summary

  • preserve dotted ZAI/GLM model ids for opaque custom anthropic-compatible proxies by inferring dot-preserving vendors from the configured model when provider/base_url do not reveal the upstream
  • keep Claude hyphenation unchanged on the same custom-proxy path
  • add regression tests for both behaviors

Testing

  • pytest -q -o addopts= tests/agent/test_minimax_provider.py

@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 provider/zai ZAI provider labels Apr 24, 2026
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 provider/zai ZAI provider type/bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: custom anthropic proxy rewrites z-ai/glm-5.1 to z-ai/glm-5-1

2 participants