mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-06-09 07:16:04 +00:00
feat: 为GitHub API的访问使用代理 (#312)
This commit is contained in:
9
pkg/utils/network.py
Normal file
9
pkg/utils/network.py
Normal file
@@ -0,0 +1,9 @@
|
||||
|
||||
def wrapper_proxies() -> dict:
|
||||
"""获取代理"""
|
||||
import config
|
||||
|
||||
return {
|
||||
"http": config.openai_config['proxy'],
|
||||
"https": config.openai_config['proxy']
|
||||
} if 'proxy' in config.openai_config and (config.openai_config['proxy'] is not None) else None
|
||||
Reference in New Issue
Block a user