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
Adds Runcrate as a built-in provider preset for Claude and Codex in the TUI provider form, next to the other built-in presets. Runcrate serves open-weight models (Kimi, DeepSeek, GLM, Qwen, gpt-oss) and exposes both the Anthropic Messages API and the OpenAI Responses API, so one key works in both apps.
provider_preset_builtin.rs: newBuiltinProviderPresetId::Runcrate.ANTHROPIC_BASE_URL=https://api.runcrate.ai,ANTHROPIC_AUTH_TOKEN, main and Sonnet modelmoonshotai/Kimi-K2.6, Haikudeepseek-ai/DeepSeek-V4.1-Flash, Opuszai-org/GLM-5.3.base_url = "https://api.runcrate.ai/v1",wire_api = "responses",apiFormat: openai_responses, modelmoonshotai/Kimi-K2.6, plus a three-model catalog with context windows and input modalities.cli/tui/form/provider_templates.rs: Runcrate appended to the Claude and Codex built-in template lists (after OpenRouter, so built-ins still come after partner presets).cli/tui/form/tests.rs: label lists, the Claude and Codex preset field tables, and the "last template" assertion updated.CHANGELOG.mdanddocs/CHANGELOG.md: entry under Unreleased.Verification
cargo fmt --check: clean.cargo test --lib cli::tui::form: 250 passed.cargo test --lib proxy::providers::codex: 64 passed.cargo test --lib provider_preset: 11 passed.cargo test --libtimed out on my machine in the proxy service tests, both with and without this change, so I ran the targeted modules above instead.cargo clippy --libstops on an existingempty rangeerror insrc/cli/tui/ui/home_chart.rs; it reports nothing in the files this PR touches.POST https://api.runcrate.ai/v1/messageswithAuthorization: Bearerand a tool definition (deepseek-ai/DeepSeek-V4.1-Flash) returned HTTP 200 withmessage_start,thinking_delta, atool_useblock,input_json_deltaandmessage_stopevents. A streamingPOST /v1/responsesreturned HTTP 200. A non-streaming/v1/messagescall withmoonshotai/Kimi-K2.6repliedok.This PR was prepared with AI assistance.