Skip to content

feat: add NanoGPT model provider - #13508

Open
SenatusSPQR1 wants to merge 1 commit into
continuedev:mainfrom
SenatusSPQR1:prep/b1598-nanogpt
Open

SenatusSPQR1 wants to merge 1 commit into
continuedev:mainfrom
SenatusSPQR1:prep/b1598-nanogpt

Conversation

@SenatusSPQR1

Copy link
Copy Markdown

Description

Add provider: nanogpt with the default API base https://nano-gpt.com/api/v1/. Reuse Continue's OpenAI-compatible provider and shared adapter for chat and streaming tool calls. Preserve exact NanoGPT model IDs.

Default to DeepSeek V4.1 Flash (deepseek/deepseek-v4.1-flash), the first starting recommendation on NanoGPT's live coding guide. Add GLM 5.3 Flash (z-ai/glm-5.3-flash), Kimi K2.6 (moonshotai/kimi-k2.6), Claude Sonnet 5.5 (anthropic/claude-sonnet-5.5) and Claude Opus 5.5 (anthropic/claude-opus-5.5) as suggested models. All five IDs, context limits and tool/image capabilities match the live catalog.

Add model discovery, config schema entries and setup docs with a local-secret example. The docs note DeepSeek's limited-capacity beta status, Claude's automatic tool-choice requirement and Opus pricing. The coding guide does not rank coding quality.

AI Code Review

Maintainer AI review can run after submission.

Checklist

  • Read the contributing guide.
  • Add provider documentation.
  • Add focused tests.

Screen recording or screenshot

The Add Chat model form was checked locally. It shows NanoGPT and DeepSeek V4.1 Flash. The screenshot was kept with the local validation evidence.

Tests

  • Eleven new tests and twelve existing OpenAI tests pass. They cover provider loading, model discovery, API routing, streamed tool calls and continuation, adapter registration and suggested model setup.
  • Core, GUI, config-types, openai-adapters and VS Code extension builds pass. Lint has no errors; existing upstream warnings remain. Prettier and diff checks pass.
  • One live streaming request through the new provider on the default deepseek/deepseek-v4.1-flash returned OK, [DONE] and finish_reason=stop. It used 12 input and 2 output tokens. No max_tokens or max_completion_tokens was sent. Retries were disabled.
  • Browser form submission with a synthetic key preserved the exact default ID, 1,048,576-token context and tool/image support. No installed IDE agent task was run.
  • The docs build stops in Mintlify's dependency loader because tar has no default export. The new MDX compiles separately. The documented YAML, live model metadata, navigation and extension bundle validate.

@SenatusSPQR1
SenatusSPQR1 requested a review from a team as a code owner November 24, 2026 11:17
@SenatusSPQR1
SenatusSPQR1 requested review from sestinj and removed request for a team November 24, 2026 11:17
@github-actions

github-actions Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

@SenatusSPQR1

Copy link
Copy Markdown
Author

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

This branch has not been deployed

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant