feat: support gpt-3.5 model

This commit is contained in:
ubuntu
2023-03-02 13:45:23 +08:00
parent ec0a67dd85
commit 65bcf73dac
4 changed files with 195 additions and 2 deletions

View File

@@ -12,8 +12,14 @@ def create_bot(model_type):
"""
if model_type == const.OPEN_AI:
# OpenAI 官方对话模型API
# OpenAI 官方对话模型API (gpt-3.0)
from model.openai.open_ai_model import OpenAIModel
return OpenAIModel()
elif model_type == const.CHATGPT:
# ChatGPT API (gpt-3.5-turbo)
from model.chatgpt.chatgpt_model import ChatGPTModel
return ChatGPTModel()
raise RuntimeError