mirror of
https://github.com/zhayujie/chatgpt-on-wechat.git
synced 2026-04-05 10:38:15 +08:00
支持自定义openai_api_base
支持自定义openai_api_base 解决国内API被墙的问题,可以自定义使用自己的中转API
This commit is contained in:
@@ -12,6 +12,7 @@ user_session = dict()
|
||||
class OpenAIBot(Bot):
|
||||
def __init__(self):
|
||||
openai.api_key = conf().get('open_ai_api_key')
|
||||
openai.api_base = conf().get('open_ai_api_base')
|
||||
|
||||
|
||||
def reply(self, query, context=None):
|
||||
|
||||
Reference in New Issue
Block a user