Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

能设 proxy 吗 #4

Closed
mgcyung opened this issue Feb 18, 2024 · 3 comments
Closed

能设 proxy 吗 #4

mgcyung opened this issue Feb 18, 2024 · 3 comments
Labels
enhancement New feature or request

Comments

@mgcyung
Copy link

mgcyung commented Feb 18, 2024

No description provided.

@AllTheLife
Copy link
Owner

这个我还没想好怎么实现,目前能想到的是等 google 在 api 中提供 proxy 支持

具体进度参见:google-gemini/generative-ai-python#188

不知道其他大佬有什么思路?🤔

@AllTheLife AllTheLife added the enhancement New feature or request label Feb 21, 2024
@mgcyung
Copy link
Author

mgcyung commented Feb 22, 2024

#6 Mac + Emacs 28.2 测试可用

@perlinson
Copy link

lighthulb-hikari 这个库 可以通过以下方式通过代理访问discord
proxy_settings = hikari.impl.ProxySettings(
url=PROXY, # Replace with your proxy URL
# trust_env=True
)
bot = lightbulb.BotApp(token=TOKEN,
prefix=lightbulb.when_mentioned_or(None),
default_enabled_guilds=1208370626016841788,
logs="DEBUG",
proxy_settings=proxy_settings,
)
不知道对你有帮助不

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants