Repository navigation
Conversation
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.
Adds cheapaimodel as an LLM provider. Mirrors #14 (Cheaper Inference): same files, same shape.
I work on cheapaimodel. It is an OpenAI-compatible Chat Completions gateway (tool calling supported), billed per token from a prepaid USD balance.
ChatCheapAIModelextendsChatOpenAIand only sets the base URL, the API key env var and the provider name.Changes
windows_use/providers/cheapaimodel/— newChatCheapAIModelclass.https://api.cheapaimodel.ai/v1.CHEAPAIMODEL_API_KEY(keys start withsk-, created at https://console.cheapaimodel.ai/keys). Optional base URL override:CHEAPAIMODEL_API_BASE.deepseek-v4-1-flash.windows_use/providers/__init__.py— exportChatCheapAIModel.windows_use/cli/registry.py— provider (right after Cheaper Inference), models, API key flag and display name.windows_use/cli/setup.py—create_llmbranch and env var map entry.README.md— provider table row and a short usage example.tests/unit/providers/test_cheapaimodel.py— client defaults and CLI registry entries.Model notes
deepseek-v4-1-flash,glm-5.3,glm-5.3-flash,kimi-k3,grok-4.7. Prices: https://cheapaimodel.ai/modelsglm-5.3is text only; the other four, including the defaultdeepseek-v4-1-flash, accept images, so the default works withuse_vision=True.kimi-k3only acceptstemperature1 or 0.6. The class keepsChatOpenAI's default of not sendingtemperature, which works.Testing
python3 -m py_compileon all touched Python files — pass.ruff checkandruff format --checkon the changed files — pass.I did not run pytest: I'm on macOS and did not install the Windows-only dependencies, so the new tests have not been executed yet.
Live run of
ChatCheapAIModelfrom this branch (loadingwindows_use.providersdirectly, Python 3.12, without the Windows-only packages), one call per case:get_weather)ImageMessage)deepseek-v4-1-flashglm-5.3glm-5.3-flashkimi-k3grok-4.7I didn't drive a real Windows desktop with the agent.