ost-Bind — Proxy hört auf 0.0.0.0:3456 statt 127.0.0.1:3456
Null-Guard — model undefined crasht nicht mehr, Fallback auf "claude-sonnet-4"
This commit is contained in:
parent
8853ec697d
commit
c255a85ffb
|
|
@ -42,6 +42,7 @@ Alle Änderungen am Projekt. Format: [Keep a Changelog](https://keepachangelog.c
|
|||
- `client.id` und `client.mode` im Connect-Request — OpenClaw akzeptiert nur vordefinierte Werte (`cli`, `gateway-client`, `webchat` etc.)
|
||||
- `chat.send` nutzt `message` statt `text` als Parameter — OpenClaw Schema-Validierung
|
||||
- **Claude Proxy bindet auf 0.0.0.0** — `claude-max-api-proxy` bindet hardcoded auf `127.0.0.1`, nicht erreichbar im Docker-Netz. Fix: `standalone.js` wird beim Start gepatcht, liest jetzt `HOST` Env-Var (Upstream-Bug: `startServer()` unterstützt `host`, aber CLI übergibt es nicht)
|
||||
- **Claude Proxy Crash bei Chat-Completion** — `normalizeModelName()` in `cli-to-openai.js` crasht wenn `model` undefined ist (`TypeError: Cannot read properties of undefined`). Fix: Null-Guard-Patch mit Fallback auf `claude-sonnet-4`
|
||||
|
||||
---
|
||||
|
||||
|
|
|
|||
|
|
@ -6,8 +6,9 @@ services:
|
|||
container_name: aria-proxy
|
||||
command: >-
|
||||
sh -c "npm install -g @anthropic-ai/claude-code claude-max-api-proxy &&
|
||||
STANDALONE=$(find /usr/local/lib -path '*/claude-max-api-proxy/dist/server/standalone.js' | head -1) &&
|
||||
sed -i 's/startServer({ port })/startServer({ port, host: process.env.HOST || \"127.0.0.1\" })/' $$STANDALONE &&
|
||||
DIST=$(find /usr/local/lib -path '*/claude-max-api-proxy/dist' -type d | head -1) &&
|
||||
sed -i 's/startServer({ port })/startServer({ port, host: process.env.HOST || \"127.0.0.1\" })/' $$DIST/server/standalone.js &&
|
||||
sed -i 's/if (model\.includes/if ((model||\"claude-sonnet-4\").includes/g' $$DIST/adapter/cli-to-openai.js &&
|
||||
claude-max-api"
|
||||
volumes:
|
||||
- ~/.config/claude:/root/.config/claude:ro # Claude CLI Auth
|
||||
|
|
|
|||
Loading…
Reference in New Issue