feat: add support for Claude 4.5/4.6 models and claude-max prefix#10
Open
jamshehan wants to merge 2 commits intoatalovesyou:mainfrom
Open
feat: add support for Claude 4.5/4.6 models and claude-max prefix#10jamshehan wants to merge 2 commits intoatalovesyou:mainfrom
jamshehan wants to merge 2 commits intoatalovesyou:mainfrom
Conversation
Incorporates fixes from PR atalovesyou#5 (coraAIbot) and PR atalovesyou#7 (wende): - Add --dangerously-skip-permissions flag for service/proxy usage Enables full system access when running as API proxy (file I/O, network, PM2, etc.) - Add system prompt support via --append-system-prompt Handles both short system prompts (CLI flag) and long prompts (stdin) Prevents ENAMETOOLONG on Windows by using 8000 char threshold - Fix content array extraction (PR atalovesyou#5 + our implementation) Handle OpenAI content format: string | ContentPart[] Extract text from content blocks correctly - Fix rate limit crashes (PR atalovesyou#7) Guard against undefined model names when rate limits are hit - Add debug logging with DEBUG_SUBPROCESS env var Helps diagnose prompt issues and subprocess behavior - Add support for 'developer' role in OpenAI spec - Keep stdin approach for main prompts (avoid ENAMETOOLONG) All changes tested and verified with OpenClaw integration. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
smartchainark
pushed a commit
to smartchainark/claude-max-api-proxy
that referenced
this pull request
Feb 10, 2026
Add model mappings for claude-opus-4-6, claude-sonnet-4-5, and claude-max/* provider prefix used by OpenClaw. Also add opus-max and sonnet-max aliases. Credit: PR atalovesyou#10 by @jamshehan (model mapping portion) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
6 tasks
bwiedmann
added a commit
to bwiedmann/claude-max-api-proxy
that referenced
this pull request
Feb 15, 2026
…6 models and claude-max prefix # Conflicts: # src/adapter/openai-to-cli.ts # src/server/routes.ts # src/subprocess/manager.ts # src/types/openai.ts
wende
added a commit
to wende/claude-max-api-proxy
that referenced
this pull request
Feb 18, 2026
Triaged all 14 open PRs from atalovesyou/claude-max-api-proxy, implemented the valuable fixes, and added end-to-end test coverage. Changes: - Fix normalizeModelName crash on undefined model (atalovesyou#7 regression) - Pass prompt via stdin instead of CLI arg to avoid E2BIG (atalovesyou#12) - Increase subprocess timeout from 5 to 15 minutes (atalovesyou#20) - Add Claude 4.5/4.6 model IDs and claude-max/ prefix (atalovesyou#10, atalovesyou#20) - Include usage data in final streaming SSE chunk (atalovesyou#16) - Wrap subprocess logging with DEBUG_SUBPROCESS env check (atalovesyou#5, atalovesyou#16) - Strip CLAUDECODE env var from subprocesses (own fix) - Add e2e test suite (7 tests covering health, models, completions)
3 tasks
wende
added a commit
to wende/claude-max-api-proxy
that referenced
this pull request
Feb 18, 2026
Triaged all 14 open PRs from atalovesyou/claude-max-api-proxy, implemented the valuable fixes, and added end-to-end test coverage. Changes: - Fix normalizeModelName crash on undefined model (atalovesyou#7 regression) - Pass prompt via stdin instead of CLI arg to avoid E2BIG (atalovesyou#12) - Increase subprocess timeout from 5 to 15 minutes (atalovesyou#20) - Add Claude 4.5/4.6 model IDs and claude-max/ prefix (atalovesyou#10, atalovesyou#20) - Include usage data in final streaming SSE chunk (atalovesyou#16) - Wrap subprocess logging with DEBUG_SUBPROCESS env check (atalovesyou#5, atalovesyou#16) - Strip CLAUDECODE env var from subprocesses (own fix) - Add e2e test suite (7 tests covering health, models, completions) Co-Authored-By: kevinfealey <10552286+kevinfealey@users.noreply.github.com> Co-Authored-By: Max <257223904+Max-shipper@users.noreply.github.com> Co-Authored-By: James Hansen <1359077+jamshehan@users.noreply.github.com> Co-Authored-By: bitking <213560776+smartchainark@users.noreply.github.com> Co-Authored-By: Alex Rudloff's AI Agents <258647843+alexrudloffBot@users.noreply.github.com>
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.
This adds support for the latest Claude models (Opus 4.6, Sonnet 4.5) and introduces the 'claude-max' prefix for model names to align with OpenClaw's custom provider conventions. It also adds 'opus-max' and 'sonnet-max' aliases.