[PR #7644] core: auto-discover models from OpenAI-compatible local providers #12461

Closed
opened 2026-02-16 18:17:22 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/7644

State: closed
Merged: No


What does this PR do?

Attempts to auto-discover models from OpenAI-compatible providers to allow local LLM providers like Ollama and LM Studio to show their model list without needing to manually add each model. This does not auto-discover the provider itself nor does it modify model entries which already exist, so this should be non-destructive with any already provided model data.

How did you verify your code works?

I ran this locally against my Ollama instance and it showed all my local models, switching to models with auto-generated configs worked just fine with this change.

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/7644 **State:** closed **Merged:** No --- ### What does this PR do? Attempts to auto-discover models from OpenAI-compatible providers to allow local LLM providers like Ollama and LM Studio to show their model list without needing to manually add each model. This _does not_ auto-discover the provider itself nor does it modify model entries which already exist, so this should be non-destructive with any already provided model data. ### How did you verify your code works? I ran this locally against my Ollama instance and it showed all my local models, switching to models with auto-generated configs worked just fine with this change.
yindo added the pull-request label 2026-02-16 18:17:22 -05:00
yindo closed this issue 2026-02-16 18:17:22 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#12461