Skip to content

Add Runcrate as an AI provider - #205

Open
heydryft wants to merge 1 commit into
DataflareApp:mainfrom
heydryft:feat/runcrate-provider
Open

heydryft wants to merge 1 commit into
DataflareApp:mainfrom
heydryft:feat/runcrate-provider

Conversation

@heydryft

@heydryft heydryft commented Nov 2, 2026

Copy link
Copy Markdown

Adds Runcrate as a provider type, next to Opper and Requesty:

  • Runcrate enum member, RuncrateConfig and its place in ALL_PROVIDER_TYPES (tauri/client.ts)
  • default base URL https://api.runcrate.ai/v1 and the /models fetch, in the id-only group with Opper and Requesty (settings/provider/api.ts)
  • the generic IconServer icon, the same one Requesty uses (provider-icon.tsx)
  • the OpenAI-compatible client case (database/ai/services.ts)

Runcrate serves open-weight models (DeepSeek, Qwen, GLM, Kimi, gpt-oss and others) through an OpenAI-compatible API with one key. Chat goes through /v1/chat/completions and the model list comes from GET /v1/models, which returns the OpenAI { data: [{ id }] } shape. Model ids look like deepseek-ai/DeepSeek-V4.1-Flash.

Keys: https://runcrate.ai/dashboard/api-keys
Docs: https://runcrate.ai/docs/models/chat-completions

Testing

  • npx tsc --noEmit -p .: passes.
  • npx oxfmt --check on the four changed files: all use the correct format.
  • npx vite build: builds.
  • Live, with a real key, in a throwaway script (not committed) that imports defaultBaseURL/normalizeBaseURL and ProviderType.Runcrate from the changed files and uses the same calls as the app with Node's fetch in place of the Tauri one: GET {base}/models with the same zod schema returned HTTP 200 and 126 models including deepseek-ai/DeepSeek-V4.1-Flash, and createOpenAICompatible({ name: 'openai-compatible', ... }) with generateText on that model returned pong (finish reason stop). I did not run the Tauri app itself.

This PR was prepared with AI assistance (omp with Claude): the code changes and this description were written with it, and the commands and live calls above were run as described.

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.

1 participant