Repository navigation
feat: add CloudGPU as AI provider - #155
Open
cloudgpuapp wants to merge 1 commit into
Open
cloudgpuapp wants to merge 1 commit into
cloudgpuapp wants to merge 1 commit into
Conversation
Wire LLM_PROVIDER=cloudgpu through the same chat-only OpenAI-compatible gateway pattern as Runcrate, with embeddings falling back to the OpenAI settings. 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.
📋 Description
Adds CloudGPU as an AI provider, in the same shape as Runcrate (#154), Opper and Atlas Cloud. CloudGPU serves DeepSeek, Kimi, GLM, MiniMax, Qwen and more through an OpenAI-compatible API at
https://cloudgpu.app/v1, so the provider is aChatOpenAIwith a different base URL.backend/src/utils/llm/models/cloudgpu.ts:makeLLMwith default modeldeepseek-v4-flash. Embeddings fall back to the OpenAI settings, the same way Runcrate and the other chat-only gateways do.backend/src/utils/llm/models/index.ts:LLM_PROVIDER=cloudgpu.backend/src/config/env.ts:CLOUDGPU_API_KEY,CLOUDGPU_MODEL,CLOUDGPU_BASE_URL..env.exampleandREADME.md: the new block,cloudgpuon theLLM_PROVIDERlist, and a provider line.backend/src/utils/llm/models/__tests__/cloudgpu.test.ts: defaults, configured model and base URL, temperature and max tokens, embeddings fallback.GET https://cloudgpu.app/v1/modelslists the model IDs. That response includesdeepseek-v4-flashandglm-5.3-flash. Chat completions were not called against the live API.🔄 Type of Change
🧪 Testing
I have tested this change locally
I have added tests that prove my fix is effective or that my feature works
New and existing unit tests pass locally with my changes
npm test(vitest run): 14 files passed, 1 skipped; 81 tests passed, 3 skipped.npm run build(tsc -p backend/tsconfig.json) succeeded.The backend has no lint script. Frontend lint was not run; this change does not touch the frontend.
Model IDs were checked with
GET https://cloudgpu.app/v1/models. The live chat API was not called.📱 Screenshots (if applicable)
N/A, backend provider only.
🔍 Code Review Checklist
📚 Related Issues
None.
🚀 Deployment Notes
None. The provider is only used when
LLM_PROVIDER=cloudgpu.📋 Additional Context
Disclosure: I work on CloudGPU.