GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat: auto-detect local Ollama models by koryboyd · Pull Request #16653 · anomalyco/opencode

Conversation

@koryboyd

@koryboyd koryboyd commented Mar 9, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
  • Add Ollama detection utility that queries localhost:11434/api/tags
  • Auto-register Ollama provider when running locally with detected models
  • Add --local flag to /models command to show only local models
  • Enable tool calling for Ollama models via custom loader

Issue for this PR

Closes #

Type of change

  • Bug fix
  • [ x] New feature
  • [ x] Refactor / code improvement
  • Documentation

What does this PR do?

Please provide a description of the issue, the changes you made to fix it, and why they work. It is expected that you understand why your changes work and if you do not understand why at least say as much so a maintainer knows how much to value the PR.
added Ollama Support for more Local Model support
If you paste a large clearly AI generated description here your PR may be IGNORED or CLOSED!

How did you verify your code works?

have used and tested qwithout issues

Screenshots / recordings

NA
If this is a UI change, please include a screenshot or recording.

Checklist

  • [ x] I have tested my changes locally
  • [ x] I have not included unrelated changes in this PR

If you do not follow this template your PR will be automatically rejected.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Kory
feat: auto-detect local Ollama models
0cc8e67
- Add Ollama detection utility that queries localhost:11434/api/tags
- Auto-register Ollama provider when running locally with detected models
- Add --local flag to /models command to show only local models
- Enable tool calling for Ollama models via custom loader
@github-actions

github-actions Bot commented Mar 9, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

This PR doesn't fully meet our contributing guidelines and PR template.

What needs to be fixed:

  • No "Type of change" checkbox is checked. Please select at least one.
  • Not all checklist items are checked. Please confirm you have tested locally and have not included unrelated changes.

Please edit this PR description to address the above within 2 hours, or it will be automatically closed.

If you believe this was flagged incorrectly, please let a maintainer know.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@github-actions github-actions Bot added the needs:compliance This means the issue will auto-close after 2 hours. label Mar 9, 2026
@github-actions

github-actions Bot commented Mar 9, 2026

Copy link
Copy Markdown
Contributor

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

Based on my search, I found several potentially related PRs:

  1. PR feat(provider): auto-detect Ollama context limits #10758 - feat(provider): auto-detect Ollama context limits

    • feat(provider): auto-detect Ollama context limits #10758
    • Related: Also involves auto-detection for Ollama, though focused on context limits rather than model discovery
  2. PR opencode: added logic to probe loaded models from lmstudio, ollama an… #11951 - opencode: added logic to probe loaded models from lmstudio, ollama and...

    • opencode: added logic to probe loaded models from lmstudio, ollama an… #11951
    • Related: Appears to handle Ollama model probing/discovery functionality, which overlaps with the auto-detection aspect of this PR
  3. PR fix: improve tool name repair for local/Ollama models #10558 - fix: improve tool name repair for local/Ollama models

    • fix: improve tool name repair for local/Ollama models #10558
    • Related: Deals with local/Ollama model handling, though focused on tool name repair
  4. PR feat(opencode): add LiteLLM provider with auto model discovery #14468 - feat(opencode): add LiteLLM provider with auto model discovery

    • feat(opencode): add LiteLLM provider with auto model discovery #14468
    • Related: Implements auto model discovery for a provider, similar pattern to what this PR does for Ollama

I recommend checking PR #11951 first as it specifically mentions probing Ollama models, which is most closely aligned with the current PR's goal of auto-detecting local Ollama models.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@koryboyd
Merge branch 'dev' into dev
84cc792
@koryboyd
koryboyd marked this pull request as draft March 9, 2026 01:38
@koryboyd
koryboyd marked this pull request as ready for review March 9, 2026 01:38
@github-actions github-actions Bot mentioned this pull request Mar 9, 2026
📊 Bản tin hàng ngày công cụ AI CLI 2026-03-09 compasify/agents-radar#14
Open
Kory Boyd and others added 5 commits March 9, 2026 12:24
Kory Boyd
feat(ollama): add reasoning model detection with config overrides
3ffa090
- Auto-detect reasoning models (qwen3, phi4, gemma3, llama3, deepseek, qwq, gpt-oss)
- Add config support to force reasoning ON/OFF via capabilities.reasoning
- Enable interleaved with reasoning_content field for reasoning models
- Increase token limits (context: 200k, output: 32k) for reasoning models
- Add default reasoningEffort: medium for reasoning models
- Add think parameter support for Ollama API (true/false or low/medium/high for GPT-OSS)
@koryboyd
Merge branch 'dev' into dev
048d8c0
Kory Boyd
fix(ollama): fix type errors - use correct config model properties
034ada2
- configModel.reasoning instead of configModel.capabilities.reasoning
- configModel.interleaved instead of configModel.capabilities.interleaved
Kory Boyd
fix(ollama): generate variants for Ollama reasoning models
d73e696
Allow variants (low/medium/high) to be generated for Ollama models
that were previously blocked by the deepseek/minimax/glm/mistral/kimi
check in ProviderTransform.variants()
Kory Boyd
fix(ollama): apply reasoning detection to config-loaded Ollama models
47ade4e
Reasoning detection was only running for auto-detected Ollama models,
but was skipped when Ollama was configured in opencode.json. Now applies
reasoning detection to all Ollama models regardless of how they're loaded.
@github-actions

github-actions Bot commented Mar 9, 2026

Copy link
Copy Markdown
Contributor

This pull request has been automatically closed because it was not updated to meet our contributing guidelines within the 2-hour window.

Feel free to open a new pull request that follows our guidelines.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@github-actions github-actions Bot removed the needs:compliance This means the issue will auto-close after 2 hours. label Mar 9, 2026
@github-actions github-actions Bot closed this Mar 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@koryboyd
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.