mirror of
https://github.com/justlovemaki/AIClient-2-API.git
synced 2026-04-27 18:35:51 +03:00
[GH-ISSUE #86] cc显示Unable to connect to API due to poor internet connection #75
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/AIClient-2-API-justlovemaki#75
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @tiancai1dian on GitHub (Nov 28, 2025).
Original GitHub issue: https://github.com/justlovemaki/AIClient-2-API/issues/86
✻ 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容器中出现该错误
@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就不行了
@tiancai1dian commented on GitHub (Nov 28, 2025):
换成export ANTHROPIC_BASE_URL="http://host.docker.internal:3000"解决