feat(executor): add openai-compat tool type for HTTP API endpoints#392
Merged
RyderFreeman4Logos merged 1 commit intomainfrom Mar 10, 2026
Merged
feat(executor): add openai-compat tool type for HTTP API endpoints#392RyderFreeman4Logos merged 1 commit intomainfrom
RyderFreeman4Logos merged 1 commit intomainfrom
Conversation
Add OpenaiCompat as the 5th tool type in CSA, enabling integration with OpenAI-compatible HTTP APIs (litellm, vllm, local proxy servers). Key design decisions: - New TransportMode::OpenaiCompat (pure HTTP, no process management) - Config resolution from env vars at execute time (OPENAI_COMPAT_BASE_URL, OPENAI_COMPAT_API_KEY, OPENAI_COMPAT_MODEL) via [tools.openai-compat.env] - Model fallback: env var > executor model_override > error - Exhaustive match arms across all tool enums (compiler-enforced) Files changed across 6 crates: - csa-core: ToolName::OpenaiCompat variant, ModelFamily::Other - csa-config: base_url/api_key fields on ToolConfig, all_known_tools, validate - csa-executor: Executor variant, transport factory, HTTP transport impl - cli-sub-agent: parse_tool_name, is_tool_binary_available Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
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
OpenaiCompatas the 5th tool type in CSA, enabling integration with OpenAI-compatible HTTP APIs (litellm, vllm, local proxy servers)TransportMode::OpenaiCompat— pure HTTP transport, no process management, no cgroup sandboxOPENAI_COMPAT_BASE_URL,OPENAI_COMPAT_API_KEY,OPENAI_COMPAT_MODEL) via[tools.openai-compat.env]in global configDesign
matcharms across all tool enums (compiler-enforced completeness)ModelFamily::Otherfor the new tool (not Anthropic/Google/OpenAI-specific)extra_env→ system env → executormodel_override→ erroris_tool_binary_available()returnstrueunconditionally (no binary to check)reqwestdependency already existed in workspace; added tocsa-executorFiles changed (6 crates)
ToolName::OpenaiCompatvariant,ModelFamily::Otherbase_url/api_keyfields onToolConfig,all_known_tools, validationExecutorvariant,TransportFactory, newtransport_openai_compat.rsparse_tool_name,is_tool_binary_availableTest plan
just pre-commitpasses (fmt, clippy, deny, test, monolith check)csa run --tool openai-compat "hello"with local proxy at localhost:8317🤖 Generated with Claude Code