GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — [Feature Request]: Allow dynamic model passthrough for custom OpenAI-compatible providers without explicit declaration · Issue #18219 · anomalyco/opencode Closed as not planned Closed as not planned Copy link DescriptionFeature hasn't been suggested before.
Describe the enhancement you want to requestProblem StatementWhen using custom OpenAI-compatible providers (e.g., MiniMax, DeepSeek, or other third-party APIs that implement the OpenAI If a model is not explicitly declared, even though the underlying API endpoint supports it and returns it via
Example of Current Workaround RequiredUsers must manually add entries like this to their config: "models": { "MiniMax-M2.5": { "name": "MiniMax M2.5" }, "MiniMax-M2.7": { "name": "MiniMax M2.7" }, "MiniMax-M2.7-highspeed": { "name": "MiniMax M2.7 highspeed" } } Without these explicit declarations, the models cannot be used, even if they are fully functional via the OpenAI-compatible API. Why This Is Problematic
Proposed SolutionOption 1: Dynamic Model Passthrough (Preferred)When a user specifies a model that is not in the local
Option 2: Add Configuration FlagAdd an optional configuration like: "provider": { "my-custom-provider": { "baseUrl": "https://api.example.com/v1", "allow_unlisted_models": true } } When enabled, this would allow any model name to be passed through without local validation. Option 3: Automatic Model DiscoveryOn provider initialization, automatically call Benefits
Related IssuesThis issue is related to several existing reports where users encounter
Environment
Reacted by shiyan-salt, Dionisie Covaliuc, mrlonely, yzctzl, terryjyu, Chris Kuethe, Bornholm and Fahim Ali Zain Activity
MetadataMetadataAssigneesLabelsNo labels TypeProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |