Feat/atomic chat provider#12438
Open
yanalialiuk wants to merge 4 commits into
Open
Conversation
Fetch models from the local API on load and provider select, remove unrelated presets, and block Connect until a real model id is chosen. Co-authored-by: Cursor <cursoragent@cursor.com>
Contributor
|
All contributors have signed the CLA ✍️ ✅ |
Author
|
I have read the CLA Document and I hereby sign the CLA |
Contributor
There was a problem hiding this comment.
1 issue found across 11 files
Reply with feedback, questions, or to request a fix.
Fix all with cubic | Re-trigger cubic
Invalidate in-flight fetches when the provider changes and compare against a ref so late responses cannot overwrite another provider's model list. Co-authored-by: Cursor <cursoragent@cursor.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Description
Adds Atomic Chat as a first-class local model provider (
atomic-chat).Atomic Chat exposes an OpenAI-compatible API (default
http://127.0.0.1:1337/v1/). This PR wires it into Continue the same way as other local OpenAI-compatible backends:core/llm/llms/AtomicChat.ts— provider class extendingOpenAIcore/llm/llms/index.tsandcore/llm/autodetect.tspackages/openai-adapters— CLI (cn) support viaconstructLlmApidocs/customize/model-providers/more/atomic-chat.mdxExample config:
Checklist
Tests
Added provider smoke tests in core/llm/llms/OpenAI-compatible.vitest.ts:
Covers default providerName, apiBase, and OpenAI-compatible request behavior shared with other local providers.
Manual test plan:
-Start Atomic Chat with a loaded model (curl http://127.0.0.1:1337/v1/models).
-Add Atomic Chat via Continue UI or config.yaml with provider: atomic-chat.
-Send a chat message in the extension — response streams from the local model.
-(Optional) Run cn with the same config.yaml and confirm chat works via CLI.
Summary by cubic
Adds Atomic Chat as a first-class local model provider (
atomic-chat) with OpenAI-compatible API support. Connect to models athttp://127.0.0.1:1337/v1/from the Continue UI andcn, with automatic model detection.New Features
core/llm/llms/AtomicChat.tsextendingOpenAIwith defaultapiBasehttp://127.0.0.1:1337/v1/; registered incore/llm/llms/index.tsand added to autodetect templating./v1/modelson load/selection without an API key, auto-selects the first detected model, and blocks Connect until a real model id is chosen; includesgui/public/logos/atomic-chat.png.packages/openai-adaptersaddsatomic-chattoconstructLlmApiand schema with the same defaultapiBase.atomic-chat.docs/customize/model-providers/more/atomic-chat.mdx.Bug Fixes
Written for commit 6196458. Summary will update on new commits. Review in cubic