mirror of
https://github.com/langbot-app/LangBot.git
synced 2025-11-26 03:44:58 +08:00
10 lines
280 B
Python
10 lines
280 B
Python
|
|
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
|