feat: add cost-aware vision routing example - #75
Closed
z116123123x wants to merge 1 commit into
Closed
Conversation
z116123123x
force-pushed
the
vision-routing-example
branch
from
July 9, 2026 03:17
f825d82 to
c4e9ab1
Compare
Author
|
Closing this while I restart the contribution assessment from scratch. I want to re-evaluate the upstream scope and implementation before deciding whether to submit a new pull request. Thank you. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds
examples/vision_routing_example.pydemonstrating covered-first vision routing for Z.ai GLM models.Why
Current README examples only use
glm-5v-turbo(the paid model). Users with $0 cash balance hitHTTP 429 / 1113 Insufficient balancewith no guidance that the covered (free)glm-4.6vroute exists.This example shows:
ZAI_VISION_ALLOW_CASH=1ZAI_VISION_CASH_MAX_CALLS_PER_RUNVerification
python examples/vision_routing_example.pyruns standalone (no external deps)