AstrBot icon indicating copy to clipboard operation
AstrBot copied to clipboard

国内服务器docker部署本项目的时候 需要一个应用层的代理

Open constansino opened this issue 11 months ago • 5 comments

描述

需要代理谷歌的api的时候 如果用其他代理方案 很容易让docker内网炸掉 导致几个容器的通信失效

能否做一个类似下面的应用层代理呢 谢谢 proxies = { "http": "http://127.0.0.1:7890", "https": "http://127.0.0.1:7890", }

requests.post( "https://generativelanguage.googleapis.com/...", json=data, proxies=proxies, timeout=30, )

使用场景

能否做一个类似下面的应用层代理呢 谢谢

你愿意提交PR吗?

  • [x] 是的, 我愿意提交PR!

Code of Conduct

  • [x] 我已阅读并同意遵守该项目的 行为准则。

constansino avatar Dec 13 '25 12:12 constansino

其实没必要,clash+yard就够了

Sjshi763 avatar Jan 02 '26 17:01 Sjshi763

#4949 为每个模型配置添加了代理设置,只对api请求生效

tooplick avatar Feb 07 '26 18:02 tooplick

可以close了

tooplick avatar Feb 08 '26 04:02 tooplick

同意

Sjshi763 avatar Feb 08 '26 04:02 Sjshi763

Thank you for your feedback! The requested functionality has been implemented in PR #4949, which has been merged. We’re closing this issue as completed.

If the problem still occurs in the current version, or you still need this feature, please leave a comment with updated details so we can reopen the issue and continue the discussion. For bug reports, please include your AstrBot version, steps to reproduce, and relevant logs.

Thank you for your understanding and support!

anka-afk avatar Oct 12 '26 09:10 anka-afk