feat:add proxy option

This commit is contained in:
alin
2023-03-03 15:23:14 +08:00
parent cfa738087f
commit 47c675f999
2 changed files with 2 additions and 0 deletions

View File

@@ -12,6 +12,7 @@ user_session = dict()
class ChatGPTBot(Bot):
def __init__(self):
openai.api_key = conf().get('open_ai_api_key')
openai.proxy = conf().get('proxy')
def reply(self, query, context=None):
# acquire reply content