mirror of
https://github.com/RockChinQ/QChatGPT.git
synced 2024-11-16 11:42:44 +08:00
12 lines
344 B
Python
12 lines
344 B
Python
from . import context
|
|
|
|
|
|
def wrapper_proxies() -> dict:
|
|
"""获取代理"""
|
|
config = context.get_config_manager().data
|
|
|
|
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
|