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.
Thanks for building PentesterFlow, the provider registry made this a small, clean addition.
Summary
Adds
runcrateas an OpenAI-scheme backend preset. Runcrate is an AI cloud with an OpenAI-compatible API athttps://api.runcrate.ai/v1, so it reuses the existingOpenAIClientpath with a fixed base URL and theRUNCRATE_API_KEYenv var, the same as the other presets./providerlists it,--backend runcrateselects it, and nothing changes for anyone who does not use it.Changes
src/llm/providerRegistry.ts:runcratepreset (base URL, env key, default modeldeepseek-ai/DeepSeek-V3.2, and a short list of open-weight chat models that exist onGET /v1/models).src/config/config.ts:runcrateadded to theBackendenum and toBACKENDS.src/llm/modelWarnings.ts: included in the hosted open-weight list, like the other presets.src/cli/index.ts: backend list in--help.CHANGELOG.md: entry under Unreleased.src/llm/providerRegistry.test.ts: a test that checks the preset's scheme, base URL, env key, default model and that it is a valid config backend.How I tested
With Bun, after
bun install:bun run typecheck: clean.bunx biome check src/llm src/config src/cli/index.ts: no fixes needed.bunx vitest run src/llm/providerRegistry.test.ts: 4 passed.bunx vitest run(full suite): 86 files, 915 tests passed.I did not run a session against a live Runcrate key; the model ids were checked against
GET https://api.runcrate.ai/v1/models. I did not runtest:opentuiorbuild.Disclosure: I work on Runcrate.
This PR was prepared with AI assistance (omp with Claude): the code, test, changelog entry and this description were written with it, and the commands above were run as part of preparing it.