[GH-ISSUE #86] cc显示Unable to connect to API due to poor internet connection #75

Closed
opened 2026-02-27 07:17:50 +03:00 by kerem · 2 comments
Owner

Originally created by @tiancai1dian on GitHub (Nov 28, 2025).
Original GitHub issue: https://github.com/justlovemaki/AIClient-2-API/issues/86

你是什么模型
⎿ Interrupted · What should Claude do instead?

你是什么模型
⎿ Unable to connect to API due to poor internet connection
Retrying in 14 seconds… (attempt 7/10)

✻ Warping… (esc to interrupt · 59s · ↑ 0 tokens)
⎿ Tip: Hit Enter to queue up additional messages while Claude is working.
起初使用docker部署时,通过
export ANTHROPIC_BASE_URL="http://localhost:3000"
export ANTHROPIC_AUTH_TOKEN="123456"
export ANTHROPIC_MODEL="claude-opus-4-5-20251101-thinking-32k"
能够正常使用
将它直接部署在我项目使用的docker容器中出现该错误

Originally created by @tiancai1dian on GitHub (Nov 28, 2025). Original GitHub issue: https://github.com/justlovemaki/AIClient-2-API/issues/86 > 你是什么模型 ⎿ Interrupted · What should Claude do instead? > 你是什么模型 ⎿ Unable to connect to API due to poor internet connection Retrying in 14 seconds… (attempt 7/10) ✻ Warping… (esc to interrupt · 59s · ↑ 0 tokens) ⎿ Tip: Hit Enter to queue up additional messages while Claude is working. 起初使用docker部署时,通过 export ANTHROPIC_BASE_URL="http://localhost:3000" export ANTHROPIC_AUTH_TOKEN="123456" export ANTHROPIC_MODEL="claude-opus-4-5-20251101-thinking-32k" 能够正常使用 将它直接部署在我项目使用的docker容器中出现该错误
kerem closed this issue 2026-02-27 07:17:50 +03:00
Author
Owner

@tiancai1dian commented on GitHub (Nov 28, 2025):

(base) root@796d8575360d:/workspace/rgp-reproduction# curl http://localhost:3000/v1/chat/completions -H "Authorization: Bearer 123456" -H "Content-Type: application/json" -d '{
"model": "claude-opus-4-5-20251101-thinking-32k",
"messages": [{"role": "user", "content": "你好"}]
}'
{"id":"chatcmpl-75336196-26c0-448d-857d-165e26fd5530","object":"chat.completion","created":1764317239,"model":"claude-opus-4-5-20251101-thinking-32k","choices":[{"index":0,"message":{"role":"assistant","content":"你好!很高兴见到你。有什么我可以帮助你的吗?"},"finish_reason":"stop"}],"usage":{"prompt_tokens":0,"complet
命令行测试可以正常访问,进了cc就不行了

<!-- gh-comment-id:3588319776 --> @tiancai1dian commented on GitHub (Nov 28, 2025): (base) root@796d8575360d:/workspace/rgp-reproduction# curl http://localhost:3000/v1/chat/completions -H "Authorization: Bearer 123456" -H "Content-Type: application/json" -d '{ "model": "claude-opus-4-5-20251101-thinking-32k", "messages": [{"role": "user", "content": "你好"}] }' {"id":"chatcmpl-75336196-26c0-448d-857d-165e26fd5530","object":"chat.completion","created":1764317239,"model":"claude-opus-4-5-20251101-thinking-32k","choices":[{"index":0,"message":{"role":"assistant","content":"你好!很高兴见到你。有什么我可以帮助你的吗?"},"finish_reason":"stop"}],"usage":{"prompt_tokens":0,"complet 命令行测试可以正常访问,进了cc就不行了
Author
Owner

@tiancai1dian commented on GitHub (Nov 28, 2025):

换成export ANTHROPIC_BASE_URL="http://host.docker.internal:3000"解决

<!-- gh-comment-id:3589218077 --> @tiancai1dian commented on GitHub (Nov 28, 2025): 换成export ANTHROPIC_BASE_URL="http://host.docker.internal:3000"解决
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/AIClient-2-API-justlovemaki#75
No description provided.