docs: bring-your-own LLM provider (SDK + CLI) - #4
Merged
Conversation
Document how to point Reactor at a non-OpenRouter LLM: - SDK: a "Bring your own LLM provider" section showing native @openai/agents OpenAIProvider config for OpenAI / Anthropic / Google, passed as render.provider + compile.options.provider (sdk/agents.mdx). - CLI: model.provider / base_url / api_key_env in reactor.yml, a built-in provider table, and generalized env-var guidance (cli/configuration.mdx). - Note the Anthropic-direct structured-output limitation (route Anthropic models through OpenRouter today) in both pages. - cspell: allow Gemini / OpenAI / OpenRouter.
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.
Documents how to point Reactor at a non-OpenRouter LLM provider.
SDK (
sdk/agents.mdx)New "Bring your own LLM provider" section: build a scoped
OpenAIProviderfrom@openai/agentsand pass it asrender.provider+compile.options.provider. Covers OpenAI / Anthropic / Google with a base-URL/key/model table and theuseResponses: falsenote.CLI (
cli/configuration.mdx)Documents
model.provider/model.base_url/model.api_key_envinreactor.yml, a built-in provider table (openrouter/openai/anthropic/google), generalized env-var guidance, and the non-zero-exit-on-missing-key behavior.Known limitation (documented in both)
Anthropic's direct OpenAI-compat endpoint rejects our structured-output
response_formatunlessstrict: true(400 response_format.json_schema.strict). OpenAI, Google, and every model via OpenRouter work. Guidance: route Anthropic models through OpenRouter today.cspell
Allow
Gemini/OpenAI/OpenRouter.Verified locally under Node 22:
pnpm spellandpnpm check:emdashboth clean.