Support Azure hosted chatgpt service

This commit is contained in:
Pin Fang
2023-03-24 23:41:53 +08:00
parent ae06cf844d
commit 04fec4a585
6 changed files with 73 additions and 6 deletions

View File

@@ -19,6 +19,8 @@ class Bridge(object):
model_type = conf().get("model")
if model_type in ["text-davinci-003"]:
self.btype['chat'] = const.OPEN_AI
if conf().get("use_azure_chatgpt"):
self.btype['chat'] = const.CHATGPTONAZURE
self.bots={}
def get_bot(self,typename):