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 — feat(opencode): add dynamic model fetching for OpenAI-compatible provider by shivamashtikar · Pull Request #14277 · anomalyco/opencode Conversation
|
|
The following comment was made by an LLM, it may be inaccurate: Found a potential duplicate: PR #13896 - feat(opencode): add auto loading models for litellm providers Why it's related: This PR appears to implement very similar functionality - automatic model loading for LiteLLM providers. Given that PR #14277 also adds dynamic model fetching for OpenAI-compatible providers (including LiteLLM), these PRs may be addressing the same or overlapping feature requests. You should verify whether PR #13896 was already merged or closed and check if #14277 extends/improves upon it. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
this PR provides compatibility with any open-ai compatible endpoints along with litellm as opposed to #13896 which only handles for litellm |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
LGTM |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
PLEASE MERGE IT |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
up! we're looking forward to it! |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
6210e12 to
91ef011
Compare
There was an error while loading. Please reload this page.
|
Hi @alexyaroshuk @adamdotdevin could you please check this PR and let me know if it can be merged or if you need any more changes in it |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
unit tests failing: 4 tests failed: I checked with upstream and confirmed that upstream does not have these failing. Your PR has these failing. You can verify by running bun test from packages/opencode |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…iders Add fetchModels config option that fetches available models from a provider's API at startup. Tries LiteLLM /model/info first for rich metadata (limits, costs, capabilities), falls back to standard /models endpoint. Manually configured models override fetched ones.
…startup Move dynamic model fetching to a fire-and-forget background task within state(). Models are merged into the providers object asynchronously after state initialization completes, so startup is not delayed by network requests.
…to true Rename config field to shouldFetchModels for clarity. Default to true so custom providers with a baseURL automatically discover models without explicit opt-in. Update PR docs accordingly.
584e91e to
66329b2
Compare
…iders - Add shouldFetchModels option to provider config (defaults to true) - Update tests to disable model fetching in test fixtures
66329b2 to
b1b97d6
Compare
- Test shouldFetchModels: false prevents API calls - Test manual models work when fetching is disabled - Test blacklist/whitelist filtering with manual models
There was an error while loading. Please reload this page.
|
Hi @alexyaroshuk , apologies i missed those. I've fixed the test cases and and also added new test cases related to my change, can you please review and merge if everything seems fine |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Thanks for updating your PR! It now meets our contributing guidelines. 👍 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
i cannot merge, i simply try to help with review. Looks like the test issue is fixed, but merging is up to Adam |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Sure @alexyaroshuk please help with the review |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Closing this pull request because it has had no updates for more than 60 days. If you plan to continue working on it, feel free to reopen or open a new PR. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
[FEATURE]: Dynamic model switching Can I let the opencode to select and switch different local models automatically?
There was an error while loading. Please reload this page.