Files
AstrBot/main.py
T
Soulter 0117591a20 fix: 优化发送流程
feat: 1.支持显示历史记录
2. 支持配置缓存最大token
2022-12-10 11:49:31 +08:00

18 lines
445 B
Python

import cores.qqbot.core as qqBot
from cores.openai.core import ChatGPT
import asyncio
import yaml
def main():
# 读取参数
# with open('configs/config.yaml', 'r', encoding='utf-8') as f:
# cfg = yaml.safe_load(f)
# chatGPT_configs = cfg['openai']['chatGPTConfigs']
# print(chatGPT_configs)
#实例化ChatGPT
chatgpt = ChatGPT()
#执行qqBot
qqBot.initBot(chatgpt)
if __name__ == "__main__":
main()