mirror of
https://github.com/zhayujie/bot-on-anything.git
synced 2026-03-04 07:47:58 +08:00
feat: support gpt-3.5 model
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user