Skip to content

feat: add CloudGPU as AI provider - #155

Open
cloudgpuapp wants to merge 1 commit into
CaviraOSS:mainfrom
cloudgpuapp:cursor/cloudgpu-provider-d5d7
Open

cloudgpuapp wants to merge 1 commit into
CaviraOSS:mainfrom
cloudgpuapp:cursor/cloudgpu-provider-d5d7

Conversation

@cloudgpuapp

Copy link
Copy Markdown

📋 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 a ChatOpenAI with a different base URL.

  • backend/src/utils/llm/models/cloudgpu.ts: makeLLM with default model deepseek-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.example and README.md: the new block, cloudgpu on the LLM_PROVIDER list, 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/models lists the model IDs. That response includes deepseek-v4-flash and glm-5.3-flash. Chat completions were not called against the live API.

🔄 Type of Change

  • 🐛 Bug fix (non-breaking change which fixes an issue)
  • ✨ New feature (non-breaking change which adds functionality)
  • 💥 Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • 📚 Documentation update
  • 🎨 Style/UI changes
  • ♻️ Code refactoring
  • ⚡ Performance improvements
  • 🧪 Test updates
  • 🔧 Build/CI changes

🧪 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

  • Code follows the project's coding standards
  • Self-review of the code has been performed
  • Code is properly commented, particularly in hard-to-understand areas
  • Changes generate no new warnings
  • Any dependent changes have been merged and published

📚 Related Issues

None.

🚀 Deployment Notes

None. The provider is only used when LLM_PROVIDER=cloudgpu.

📋 Additional Context

Disclosure: I work on CloudGPU.

Open in Web Open in Cursor 

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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants