国内服务器docker部署本项目的时候 需要一个应用层的代理
描述
需要代理谷歌的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] 我已阅读并同意遵守该项目的 行为准则。
其实没必要,clash+yard就够了
#4949 为每个模型配置添加了代理设置,只对api请求生效
可以close了
同意
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!