Repository navigation
feat(providers): add Atlas Cloud as an OpenAI-compatible gateway - #260
Open
binyangzhu000-sudo wants to merge 1 commit into
Open
binyangzhu000-sudo wants to merge 1 commit into
binyangzhu000-sudo wants to merge 1 commit into
Conversation
Atlas Cloud is an OpenAI-compatible gateway (https://api.atlascloud.ai/v1) for models from DeepSeek, Moonshot, Zhipu, Qwen, Anthropic, OpenAI and others behind one key. Mirrors the Requesty and Opper providers: a ProviderSpec on the generic openai_compat gateway path, the matching ProviderConfig block, the endpoint-class row, and tests pinning the wiring. Two provider-specific decisions, both covered by tests. Model ids are vendor/model strings (deepseek-ai/deepseek-v4-flash) where the whole string is the id, so strip_model_prefix stays off. Prompt caching is on: the endpoint accepts Anthropic cache-control content blocks and lists cached-input prices. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Signed-off-by: binyangzhu000-sudo <224954946+binyangzhu000-sudo@users.noreply.github.com>
This branch has not been deployed
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 an OpenAI-compatible gateway provider, mirroring the Requesty (#159) and Opper (#242) providers.
Disclosure: I work at Atlas Cloud.
core/providers/registry.py: aProviderSpecnamedatlascloudon the genericopenai_compatgateway path:ATLASCLOUD_API_KEY, default basehttps://api.atlascloud.ai/v1, detected from theatlascloudbase-URL keyword.core/config.py: the matchingProviderConfigblock.tests/test_provider_egress.py: the("atlascloud", "gateway")row of the endpoint-class table.tests/test_atlascloud_provider.py: pins the wiring, the base URL / env var, no borrowed key-prefix heuristic, and the two decisions below.Two provider-specific decisions:
strip_model_prefixstays off. Model ids arevendor/model(for exampledeepseek-ai/deepseek-v4-flash) and the whole string is the id, so stripping the prefix would break it.supports_prompt_cachingis on: the endpoint accepts Anthropiccache_controlcontent blocks (HTTP 200) and lists cached-input prices. I confirmed the blocks are accepted, but did not measure cache hits.Test plan
pytest tests/test_atlascloud_provider.py tests/test_opper_provider.py tests/test_provider_egress.py: 54 passed.pytest tests --ignore=tests/e2e: 2431 passed, 9 failed, 11 skipped. The same 9 tests fail on a cleanmain(test_ci_scope, test_shell_search_tools, test_unified_impl_workflow, test_verification); I diffed the two failure lists.tests/e2eneeds the optionalpytepackage and was not run.OpenAICompatProvider.chat()with the registry spec against the real API (api.atlascloud.ai/v1) fordeepseek-ai/deepseek-v4-flash,moonshotai/kimi-k3andanthropic/claude-haiku-4.5-20251001: each returnedpongwithfinish_reason: stop.🤖 Generated with Claude Code