Repository navigation
feat(providers): add cheapaimodel to the OpenAI-compatible registry - #975
Merged
agentforce314 merged 1 commit intoNov 3, 2026
Merged
Conversation
Owner
|
LGTM |
1 task done
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.
All Submissions:
New Feature Submissions:
Description
Adds cheapaimodel (https://cheapaimodel.ai) as a row in the OpenAI-compatible
ProviderSpecregistry. It is an OpenAI-compatible model API gateway serving/v1/chat/completions(streaming supported) and/v1/modelswith Bearer auth, so it needs no bespoke class. Prepaid USD balance, billed per token. Docs: https://cheapaimodel.ai/docs. Model catalog: https://cheapaimodel.ai/models. API keys:CHEAPAIMODEL_API_KEY, created in the console after signing in at https://cheapaimodel.ai. Operated by LINKOVA PTE. LTD. (Singapore).Disclosure: I work on cheapaimodel. This follows the same pattern as #972 (CloudGPU) and #971 (Runcrate).
Changes proposed in this pull request:
src/providers/openai_compatible_specs.py:cheapaimodelspec aftercloudgpu, base URLhttps://api.cheapaimodel.ai/v1, default modeldeepseek-v4-1-flash, five suggested models (deepseek-v4-1-flash,glm-5.3,glm-5.3-flash,kimi-k3,grok-4.7),CHEAPAIMODEL_API_KEY, aliasescheap-ai-model/cheap_ai_model. The comment notes thatkimi-k3only accepts temperature 0.6 or 1 and top_p 0.95.tests/test_provider_registry.py:cheapaimodeladded toEXPECTED_NEW_PROVIDERSandVENDOR_DEFAULTScheapaimodelaftercloudgpu. English count 32 to 33, translated counts 27 to 28.Testing
python -m pytest -q tests/test_provider_registry.py: 27 passedpython -m pytest -q tests -k 'provider or registry or login or config': 1324 passed, 5 skipped (same as onmain)get_provider_class('cheapaimodel')(api_key=...)resolves toCheapaimodelProviderwith base URLhttps://api.cheapaimodel.ai/v1and modeldeepseek-v4-1-flash; aliasescheap-ai-modelandcheap_ai_modelresolve to the same class.GET https://api.cheapaimodel.ai/v1/modelsreturns 401, so the host and path are live. I did not make authenticated model calls for this PR.