Repository navigation
feat(models): add CloudGPU as an OpenAI-compatible provider - #1182
Open
cloudgpuapp wants to merge 1 commit into
Open
cloudgpuapp wants to merge 1 commit into
cloudgpuapp wants to merge 1 commit into
Conversation
Register CloudGPU so a graph config can use cloudgpu/<model> with CLOUDGPU_API_KEY. Context lengths match the public models list. Co-authored-by: CloudGPU <mrhy7176@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.
Adds CloudGPU as a model provider, so a graph config can use
"model": "cloudgpu/deepseek-v4-flash"with aCLOUDGPU_API_KEY.CloudGPU (cloudgpu.app) has an OpenAI-compatible model API at
https://cloudgpu.app/v1: a model API for DeepSeek, Kimi, GLM, MiniMax, Qwen and more.Changes
scrapegraphai/models/cloudgpu.py:CloudGPU(ChatOpenAI)wrapper, same shape asMiniMax: mapsapi_key, defaults the base URL tohttps://cloudgpu.app/v1unlessbase_url/openai_api_baseis given.scrapegraphai/models/__init__.py: re-exportCloudGPU, matching the other model wrappers.scrapegraphai/graphs/abstract_graph.py:cloudgpuadded to the known providers and to the custom-class branch, returningCloudGPU(**llm_params).scrapegraphai/helpers/models_tokens.py:cloudgpucontext lengths for seven chat models, taken fromcontext_lengthinGET https://cloudgpu.app/v1/models.examples/smart_scraper_graph/cloudgpu/smart_scraper_cloudgpu.py: SmartScraper example.tests/test_cloudgpu_model.py: base URL / key mapping, custom base URL kept, token table entries, andcloudgpu/<model>resolution throughSmartScraperGraph(graph creation patched, no network).Testing
ruff check,black --check, andisort --check-onlyon the touched files: clean.pytest tests/test_cloudgpu_model.py: 4 passed. These tests do not call the network.Context lengths were checked against the public
GET https://cloudgpu.app/v1/models(no key). Every model id in this PR is in that list, with thecontext_lengthvalues used here:deepseek-v4-flash131072deepseek-v4-pro131072glm-5.3131072kimi-k2.6262144minimax-m31000000qwen3-coder-480b262144qwen3.5-397b262144Live graph execution was not run.
make lintis not clean onpre/betawithout this change (pre-existing ruff, black, and isort findings in unrelated files).mypyreports a missing annotation onCloudGPU.__init__, the same pattern asMiniMaxandAtlasCloud, plus existing errors inabstract_graph.py.A unit run excluding
integration,e2e, andrequires_api_keywas 272 passed, 98 failed, 1 error. The failures are pre-existing (missing Playwright browser, network graph tests, and token-table assertions). The same four failures intests/test_models_tokens.pyandtests/graphs/abstract_graph_test.py::test_llm_missing_tokensfail onpre/betawithout this change. The new CloudGPU tests are not among the failures.Checklist
Follows the existing provider pattern (
MiniMax,DeepSeek)Example added under
examples/smart_scraper_graph/Unit tests added (no network)
Target branch
pre/betaper CONTRIBUTINGDisclosure: I work on CloudGPU.
Open in Web Open in Cursor