opencode icon indicating copy to clipboard operation
opencode copied to clipboard

feat(opencode): added logic to probe loaded models from lmstudio and ollama

Open goniz opened this issue 5 days ago • 2 comments

What does this PR do?

  • Added core logic for enumerating loaded models from Ollama and LMStudio in packages/opencode/src/provider/local/index.ts
  • Added debug cli opencode debug provider probe <type: ollama|lmstudio> <url: string>

How did you verify your code works?

image image

goniz avatar Jan 15 '26 22:01 goniz

Thanks for your contribution!

This PR doesn't have a linked issue. All PRs must reference an existing issue.

Please:

  1. Open an issue describing the bug/feature (if one doesn't exist)
  2. Add Fixes #<number> or Closes #<number> to this PR description

See CONTRIBUTING.md for details.

github-actions[bot] avatar Jan 15 '26 22:01 github-actions[bot]

The following comment was made by an LLM, it may be inaccurate:

Potential Duplicate Found

PR #8359 - feat(opencode): add auto model detection for OpenAI-compatible providers https://github.com/anomalyco/opencode/pull/8359

Why it might be related: This PR appears to be related to auto model detection for providers, which overlaps with the current PR's goal of probing/enumerating loaded models from local providers (LMStudio and Ollama). Both PRs deal with automatic model discovery and detection logic within the provider system.

github-actions[bot] avatar Jan 15 '26 22:01 github-actions[bot]