Repository navigation
feat(llm): add CloudGPU provider preset - #19
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 an OpenAI-compatible cloudgpu text LLM preset so Drama Studio can route chat completions through CloudGPU when that key is selected. Co-authored-by: CloudGPU <mrhy7176@users.noreply.github.com>
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 a
cloudgputext LLM preset to Drama Studio, defined the same way as thezhipupreset (kind: openai, so it goes through the existing OpenAI-compatible/chat/completionspath).CloudGPU (cloudgpu.app) is a model API for DeepSeek, Kimi, GLM, MiniMax, Qwen and more, with an OpenAI-compatible base URL.
Disclosure: I work on CloudGPU.
Related issue
None.
Changes
studio/server/providers/llm_catalog.py: presetcloudgpuCLOUDGPU_API_KEY,CLOUDGPU_BASE_URL(defaulthttps://cloudgpu.app/v1),CLOUDGPU_MODEL(defaultdeepseek-v4-flash)a short
modelslist for the Model settings dropdown (deepseek-v4-flash,deepseek-v4-pro,glm-5.3,kimi-k3,minimax-m3,qwen3.5-397b); any other chat model ID fromGET /v1/modelscan be typed inthe three env names are picked up by
all_secret_envs()automatically, so keys are stored per account and hot-reloaded like the other presetsstudio/server/providers/llm.py:cloudgpuadded to the auto-pick order afteropenrouter, so it only wins when it is the only key set orLLM_PROVIDER=cloudgpustudio/.env.example: commentedLLM_PROVIDER=cloudgpublock, same shape assuanqiaoUsage:
`LLM_PROVIDER=cloudgpu
CLOUDGPU_API_KEY=sk-...
optional
CLOUDGPU_MODEL=deepseek-v4-flash
CLOUDGPU_BASE_URL=https://cloudgpu.app/v1
`
Testing
make lintpassed (py_compileof the four files in the lint target).py_compileofstudio/server/providers/llm.pyandstudio/server/providers/llm_catalog.pypassed.Public
GET https://cloudgpu.app/v1/models(no key) lists every preset model id with"type": "chat"(checked 2026-11-07). Chat completions were not called, and the preset was not exercised in the studio UI.make test: 1911 passed, 12 skipped, 3 xfailed, 3 failed. The three failures also fail onmainate4beb3768303cb9630fe4b079d1a810390a70c79and are outside this diff:test_planning_skill_mentions_runtime_contract[short-drama]test_compose_stage_references_runtime_routing[short-drama]test_noncanonical_stage_does_not_raise_keyerrorChecklist
The change is focused on a single logical concern.
I ran the relevant tests locally (
make test-contracts/make test) where applicable.I updated docs/README if behavior or usage changed.
No unrelated files (build artifacts, local config) are included in the diff.
docs/SELF_HOSTING.mdalready lists text providers in one sentence. This PR does not edit that sentence. Usage for the new preset is instudio/.env.example.Same field set as existing presets. Request code is unchanged and still uses the existing compatible chat path. Auto-pick order for existing providers is unchanged (
cloudgpuis appended afteropenrouter).Open in Web Open in Cursor