Skip to content

docs: document dynamic model fetching feature#12112

Open
nil957 wants to merge 1 commit intocontinuedev:mainfrom
nil957:docs/dynamic-model-fetching
Open

docs: document dynamic model fetching feature#12112
nil957 wants to merge 1 commit intocontinuedev:mainfrom
nil957:docs/dynamic-model-fetching

Conversation

@nil957
Copy link
Copy Markdown

@nil957 nil957 commented Apr 11, 2026

Summary

This PR adds documentation for the dynamic model fetching capability introduced in PR #12046.

Changes

Added a new "Dynamic Model Discovery" section to docs/customize/models.mdx that covers:

  1. Supported Providers Table - Shows which providers support auto-loading vs manual refresh:

    • Ollama and OpenRouter auto-load models on startup
    • Anthropic, Gemini, OpenAI, and others support refresh with API key
  2. How It Works - Explains the three-step process:

    • Automatic loading for Ollama/OpenRouter
    • Manual refresh using the API key
    • Automatic capability detection
  3. Using the Refresh Button - Step-by-step guide for adding models from providers that require API keys

  4. Tip - Notes that capabilities (contextLength, maxTokens, tools) are automatically detected and saved

Related Issues

Fixes #12097

Related PR


Summary by cubic

Document dynamic model discovery in docs/customize/models.mdx to explain how models auto-load or refresh across providers. Covers providers that auto-load (Ollama, OpenRouter), those requiring an API key and refresh (Anthropic, Gemini, OpenAI), how to use the refresh button, and that capabilities are auto-detected and saved.

Written for commit af574a6. Summary will update on new commits.

Add documentation for the dynamic model fetching capability introduced
in PR continuedev#12046:

- Add 'Dynamic Model Discovery' section to models.mdx
- Document supported providers (Ollama, OpenRouter, Anthropic, Gemini,
  OpenAI)
- Explain auto-loading vs manual refresh with API key
- Document how to use the refresh button in Add Model UI
- Note automatic capability detection (contextLength, maxTokens, tools)

Fixes continuedev#12097
@dosubot dosubot bot added the size:M This PR changes 30-99 lines, ignoring generated files. label Apr 11, 2026
@github-actions
Copy link
Copy Markdown
Contributor


Thank you for your submission, we really appreciate it. Like many open-source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution. You can sign the CLA by just posting a Pull Request Comment same as the below format.


I have read the CLA Document and I hereby sign the CLA


Javis seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You can retrigger this bot by commenting recheck in this Pull Request. Posted by the CLA Assistant Lite bot.

Copy link
Copy Markdown
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 issue found across 1 file

Prompt for AI agents (unresolved issues)

Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.


<file name="docs/customize/models.mdx">

<violation number="1" location="docs/customize/models.mdx:52">
P2: Docs describe an internal field (`supportsTools`) as if it were persisted in `config.yaml`, which mismatches the config-facing capability key and can mislead users.</violation>
</file>

Reply with feedback, questions, or to request a fix. Tag @cubic-dev-ai to re-run a review, or fix all with cubic.


1. **Automatic loading**: Ollama and OpenRouter models are automatically loaded when you open Continue
2. **Manual refresh**: For other providers, enter your API key in the "Add Model" UI and click the refresh icon to fetch available models
3. **Capability detection**: Continue automatically detects model capabilities (`contextLength`, `maxTokens`, `supportsTools`) and saves them to your `config.yaml`
Copy link
Copy Markdown
Contributor

@cubic-dev-ai cubic-dev-ai bot Apr 11, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2: Docs describe an internal field (supportsTools) as if it were persisted in config.yaml, which mismatches the config-facing capability key and can mislead users.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At docs/customize/models.mdx, line 52:

<comment>Docs describe an internal field (`supportsTools`) as if it were persisted in `config.yaml`, which mismatches the config-facing capability key and can mislead users.</comment>

<file context>
@@ -28,6 +28,44 @@ If no model is specified, Continue automatically uses the default agent with our
+
+1. **Automatic loading**: Ollama and OpenRouter models are automatically loaded when you open Continue
+2. **Manual refresh**: For other providers, enter your API key in the "Add Model" UI and click the refresh icon to fetch available models
+3. **Capability detection**: Continue automatically detects model capabilities (`contextLength`, `maxTokens`, `supportsTools`) and saves them to your `config.yaml`
+
+### Using the Refresh Button
</file context>
Suggested change
3. **Capability detection**: Continue automatically detects model capabilities (`contextLength`, `maxTokens`, `supportsTools`) and saves them to your `config.yaml`
3. **Capability detection**: Continue automatically detects model capabilities (for example `contextLength`, `maxTokens`, and tool support via `capabilities.tools`) and saves them to your `config.yaml`
Fix with Cubic

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:M This PR changes 30-99 lines, ignoring generated files.

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

docs: Document dynamic model fetching feature for providers

1 participant