feat: add Atlas Cloud as an OpenAI-compatible LLM provider#2362
Merged
nicoloboschi merged 1 commit intoJun 23, 2026
Conversation
Atlas Cloud (https://www.atlascloud.ai) exposes an OpenAI-compatible chat/completions endpoint, so it slots into the existing OpenAICompatibleLLM path exactly like deepseek / zai / opencode-go. Set `HINDSIGHT_API_LLM_PROVIDER=atlas` to route fact extraction, reflection and consolidation through Atlas Cloud. The base URL defaults to https://api.atlascloud.ai/v1 and the default model is deepseek-ai/deepseek-v4-pro (a reasoning model — give it enough max_tokens, >= 512). Changes: - engine/llm_wrapper.py: register "atlas" in create_llm_provider(), LLMProvider.valid_providers, and the default base_url map - engine/providers/openai_compatible_llm.py: register "atlas" in valid_providers, default base_url, and the API-key-required check - config.py: PROVIDER_DEFAULT_MODELS["atlas"] = deepseek-ai/deepseek-v4-pro - hindsight-embed control center: add Atlas Cloud to the provider wizard - docs: add Atlas Cloud to llmProviders.json (drives the providers grid and table) and a config example in developer/models.mdx - README + .env.example: document the new provider Verified end-to-end: instantiated the atlas provider through Hindsight's own create_llm_provider() and made a live call() to deepseek-ai/deepseek-v4-pro (HTTP 200, valid content + token usage). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
nicoloboschi
approved these changes
Jun 23, 2026
nicoloboschi
left a comment
Collaborator
There was a problem hiding this comment.
Provider wiring is clean and mirrors the opencode-go pattern correctly across config.py, llm_wrapper.py, and openai_compatible_llm.py. Approving to merge.
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.
Summary
Adds Atlas Cloud as a first-class OpenAI-compatible LLM provider for Hindsight.
Atlas Cloud is a full-modal, OpenAI-compatible AI inference platform that gives one API access to DeepSeek, Qwen, GLM, Kimi, MiniMax and more. Because its
/v1/chat/completionsendpoint is OpenAI-compatible, it drops straight into the existingOpenAICompatibleLLMpath — exactly like thedeepseek/zai/opencode-goproviders already in the tree.Enable it for fact extraction, reflection and consolidation with:
deepseek-ai/deepseek-v4-prois a reasoning model, so it needs enoughmax_tokens(>= 512) — otherwise tokens get spent on the chain of thought andcontentcan come back empty.Changes
engine/llm_wrapper.py— register"atlas"increate_llm_provider(), inLLMProvider'svalid_providers, and add its default base URL (https://api.atlascloud.ai/v1).engine/providers/openai_compatible_llm.py— register"atlas"invalid_providers, default base URL, and the API-key-required check.config.py—PROVIDER_DEFAULT_MODELS["atlas"] = "deepseek-ai/deepseek-v4-pro".hindsight-embedcontrol center — add Atlas Cloud to the config-wizard provider catalog.llmProviders.json(drives the providers grid + table) and a config example indeveloper/models.mdx..env.example— document the new provider.No new dependencies; reuses the existing OpenAI-compatible client path.
Testing
Verified end-to-end through Hindsight's own code path: instantiated the provider via
create_llm_provider(provider="atlas", ...)(confirmed it returnsOpenAICompatibleLLM, resolvesbase_url=https://api.atlascloud.ai/v1and the default model) and made a livecall()todeepseek-ai/deepseek-v4-pro— HTTP 200, correct content, valid token usage.py_compileand JSON validation pass on all touched files.Note
I help maintain Atlas Cloud and we're happy to support Hindsight users on the platform — glad to adjust naming/defaults or add follow-ups (e.g. embeddings) to match your conventions. Thanks for building Hindsight!