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 — Fetch from model list from `/v1/models/` from OpenAI Compatible APIs by n1gh7e0us · Pull Request #3427 · anomalyco/opencode ConversationThis commit introduces automatic model discovery for OpenAI-compatible providers, allowing OpenCode to dynamically fetch available models from the /v1/models endpoint instead of requiring manual model configuration. Key changes:
This enhancement enables OpenCode to work seamlessly with OpenAI-compatible APIs such as local LLM servers (Ollama, LocalAI), API proxies, and custom implementations without requiring manual model definitions in the configuration. The functionality addresses the need for supporting custom and local AI providers with dynamic model discovery. Fixes the issue where OpenAI-compatible providers would show no available models unless manually configured in opencode.json. (the PR is generated by qwen, though I have tested it out locally properly with the provider, used nano-gpt.com/api/v1 for this)
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
- Implement automatic fetching of models from /v1/models endpoint for custom OpenAI-compatible providers - Add proper API key handling from auth.json or environment variables - Include enhanced logging for debugging provider configuration - Enable support for providers configured with @ai-sdk/openai-compatible npm package /v1/models/ from OpenAI Compatible APIs
Comment on lines
+383
to
+387
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this isn't gonna work for like any providers
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactionsUh oh!
There was an error while loading. Please reload this page.
Comment on lines
+447
to
+451
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This will cause a veryyy poor experience for a lot of people 4096 context window isn't gonna be useful for most agentic work
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I just opened the repo to search if I could get away with 4096 context window length (or by disabling /compact) And yes, I agree it was pretty ugly. just happened to me. should have also tested out the models itself as well.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
|
|
There is something to this for providing a good ux, I'm wondering can we restrict it to:
And then don't override any of their existing custom models for that provider What is teh default context size for LM studio? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Also we have these style preferences I should make a style guide: |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
772b621 to
eb855e1
Compare
f1dc981 to
3e15a39
Compare
f8ee907 to
6a9856d
Compare
00637c0 to
71e0ba2
Compare
f1ae801 to
08fa7f7
Compare
|
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.
There was an error while loading. Please reload this page.