Repository navigation
Conversation
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
Add an optional CloudGPU memory provider preset using the existing OpenAI Chat Completions transport, following the merged Runcrate preset in #457 (and #420 / #432 before it). CloudGPU serves models such as DeepSeek, GLM and Kimi over an OpenAI-compatible API.
memoryProvider: "cloudgpu": endpoint defaulthttps://cloudgpu.app/v1, model defaultdeepseek-v4.1-flash,CLOUDGPU_API_KEYfallback, explicitenv://key configuration, and a distinctcloudgpusession tag.tool_choice: "required"), tool response extraction, overrides, environment-key resolution, and rejection of remote-provider changes from project configuration.https://cloudgpu.app).Files changed
src/services/ai/providers/cloudgpu.ts(new):CloudGPUProviderextendsOpenAIChatCompletionProvider, overriding endpoint, default model and session tagsrc/services/ai/ai-provider-factory.ts,src/services/ai/provider-config.ts,src/services/ai/session/session-types.ts,src/types/index.ts: wiring and typessrc/config.ts: provider union,CLOUDGPU_API_KEYfallback, readiness check, config templateopencode-mem.example.jsonc,README.md,.github/i18n/README.{ar,de,nl,tr,zh}.md: docstests/cloudgpu-provider.test.ts(new),tests/ai-provider-config.test.ts,tests/config-resolution.test.ts: tests mirroring the Runcrate onesTest plan
deepseek-v4.1-flashwas confirmed against the public catalogue atGET https://cloudgpu.app/v1/models."forceToolChoice": falseis documented for models that reject forced tool calls.Checklist
main(do not open PRs from commits already onmain)bun testpasses (not run locally; relying on CI)bun run typecheckpasses (not run locally; relying on CI)bun run checkpasses (not run locally; relying on CI)Disclosure: I work on CloudGPU; this PR was prepared with AI assistance.