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:
+3
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user