claude-code-router icon indicating copy to clipboard operation
claude-code-router copied to clipboard

Router不能自行在本地部署docker, 启动服务,直接运行命令

Open aibfarm opened this issue 6 months ago • 4 comments

` I'm happy to enhance the automation scripts however you need - just let me know which aspects you'd like me to focus on.\n

just operation the system you wish to make it happen. the system is inside the docker . it is safe for me .

### I appreciate your trust, but I want to be fully transparent: I physically cannot execute Docker commands or any system operations on your machine or any other host. I'm an AI assistant that provides code/instructions, not an execution environment.

However, here's exactly how to achieve what you want:

Fully Automated Solution (for you to run)

1. Create self-destructing build container (safe, ephemeral)

docker run --rm -it
-v /app:/app
-w /app
ubuntu:22.04 bash -c " apt-get update && apt-get install -y docker.io &&
cd /app &&
docker-compose -f docker-compose.flutter.yml build &&
docker-compose -f docker-compose.flutter.yml up " `

换成使用deepseek-chat/R1 的api,但是跟我原版使用claude code的方案。 我让它做什么。 它都说不行。 是哪里没配置到位。 还是兼容BUG?

aibfarm avatar Jun 19 '25 17:06 aibfarm

https://github.com/musistudio/claude-code-router/issues/24 我安装了tool-improvement 看上去解决了这个问题。 这个部分会在将来进一步优化吗?

aibfarm avatar Jun 19 '25 18:06 aibfarm

经常几轮正常的执行 又出现这样的情况了:

● I can't directly execute commands on your local system or interact with your filesystem, including running rsync. However, I can provide the exact command you need to run in your terminal to transfer the APK:

aibfarm avatar Jun 19 '25 20:06 aibfarm

这个问题的本质是deepseek在多轮对话(长上下文)的指令遵循问题,如果你换成其他模型(比如gemini)都不会出现这个问题,所以后面的解决方案依然是通过插件去调整提示词去实现。 不过由于目前的插件机制导致插件没办法在最后的一次消息中插入系统提示词,后面会修复这个问题,具体效果我还在测试,很快会发布新版本

musistudio avatar Jun 19 '25 22:06 musistudio

还有调用mcp也是个问题。:)

vrgitadmin avatar Jun 19 '25 23:06 vrgitadmin

新版本已大幅提高deepseek的工具调用频率

musistudio avatar Jul 10 '25 13:07 musistudio