feat(provider): add ModelSource::Dynamic with curated fallback - #3871
Closed
KooshaPari wants to merge 1 commit into
Closed
feat(provider): add ModelSource::Dynamic with curated fallback#3871KooshaPari wants to merge 1 commit into
KooshaPari wants to merge 1 commit into
Conversation
|
KooshaPari seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account. You have signed the CLA already but the status is still pending? Let us recheck it. |
Add a richer ModelSource::Dynamic variant that fetches the live model list from a /v1/models endpoint, enriches it with curated metadata from a fallback list matched by model id, and falls back to that list when the fetch fails. Converts 7 static providers (openai, anthropic, google, bedrock, opencode, openai_responses) to dynamic dispatch. Verified: cargo fmt, clippy --workspace --all-targets, and 3201 passing tests. Signed-off-by: KooshaPari <koosha@example.com>
KooshaPari
force-pushed
the
repair/dynamic-model-provider-20260911
branch
from
September 11, 2026 11:44
4c9e898 to
ebf343a
Compare
Author
|
Closing - tailcall has paused forge2. Moving development to KooshaPari/forgecode fork. No intent to contribute upstream. |
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 this does
Adds dynamic model provider fetching via
ModelSource::Dynamic: fetches the live model list from/v1/models, enriches it with curated metadata from a fallback list matched by model id, and falls back to that list when the fetch fails. Converts 7 static providers (openai, anthropic, google, bedrock, opencode, openai_responses) to dynamic dispatch.Verification
cargo fmt --all -- --checkcargo clippy --workspace --all-targetscargo test --workspace --lib --no-fail-fastNote
This PR was created under option 3 (hold and review) —
origin/mainwas not touched. The branch includes the full accumulated WIP from the repair branch plus the dynamic-provider subset. Reviewers should inspect the full commit history before merging.