Skip to content

fix(vision): preserve ZAI credential resolution with custom base_url#19726

Merged
teknium1 merged 1 commit into
mainfrom
hermes/hermes-8c54fd4a
May 4, 2026
Merged

fix(vision): preserve ZAI credential resolution with custom base_url#19726
teknium1 merged 1 commit into
mainfrom
hermes/hermes-8c54fd4a

Conversation

@teknium1

@teknium1 teknium1 commented May 4, 2026

Copy link
Copy Markdown
Contributor

Salvage of #16317 onto current main.

Summary

resolve_vision_provider_client forced provider='custom' when auxiliary.vision.base_url was set, dropping the provider-specific credential pool lookup (ZAI_API_KEY etc.) and falling back to generic custom-provider resolution. Preserve the original requested provider when it's explicit so provider-scoped credentials continue to resolve.

Validation

Manual review of diff.

Original PR: #16317

Keep the configured vision provider when base_url is overridden so credential-pool lookup still resolves provider-specific API keys (e.g. ZAI_API_KEY), and add a regression test for this path.
@teknium1 teknium1 merged commit 6cf7a9e into main May 4, 2026
8 of 10 checks passed
@teknium1 teknium1 deleted the hermes/hermes-8c54fd4a branch May 4, 2026 12:05
@alt-glitch alt-glitch added type/bug Something isn't working P3 Low — cosmetic, nice to have comp/agent Core agent loop, run_agent.py, prompt builder tool/vision Vision analysis and image generation provider/zai ZAI provider labels May 4, 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 P3 Low — cosmetic, nice to have provider/zai ZAI provider tool/vision Vision analysis and image generation type/bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants