GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - i2cy/CodyBot2: A new generation of assistant bot based on Nonebot with Onebot and MiRai QQ engine (seperated)

BranchesTags
Open more actions menu

Latest commit

 

History

77 Commits
77 Commits

Folders and files

NameName
Last commit message
Last commit date
.idea
.idea
 
 
CodyBot-Nonebot
CodyBot-Nonebot
 
 
LICENCE
LICENCE
 
 
README.md
README.md
 
 
requirements.txt
requirements.txt
 
 

Repository files navigation

nonebot

OpenAI bot: Cody

5月1日日志:正在移植GPT3.5并新增功能

Based on Nonebot & GO-CQHTTP

✨ Codybot2 查看机器人 ✨

license python

简介

这是一个私人项目,但其中的内容欢迎大家参考、移植。

机器人的对话机制默认为连续对话,拥有一定的会话记忆能力,同时对私聊、 群聊有着不同的反应适配,能够很好的处理多人对话时的逻辑、人名等等。

Cody是一只可爱的小马。

特性

  • Cody的记忆在同一个群聊中是使用的同一个记忆空间,在私聊中每个人都是 单独的一个记忆空间,意思是群聊中的内容,在私聊里Cody不一定记得
  • Cody的记忆拥有遗忘机制,超过特定时间的对话句子会被自动遗忘,以节省 API tokens的消耗开支
  • Cody默认情况下在扣扣qun的对话中,会以各位的群昵称称呼,在私聊中则 以备注或昵称简化后称呼,对Icy及其它特殊人物会以本名称呼
  • 正在测试中的功能:私聊日程管理和提醒(预计与微软TODO接口同步)

配置项

配置方式:直接在 NoneBot 全局配置文件中添加以下配置项即可。

默认配置模板

ENVIRONMENT=dev

HOST=127.0.0.1                                      # Onebot Listen
PORT=8089                                           # 监听端口
SUPERUSER=["1234567890"]                            # nonebot2 的超管(也可理解为bot的主人什么的)
  
cody_session_cache_dir = "memory/"                   # 缓存路径
cody_gpt3_apikey_path = "configs/gpt3_api.yml"      # api文件的路径
cody_gpt3_max_tokens = 500                          # 最大返回值长度
cody_max_session_tokens = 2000                      # 最大连续对话长度
cody_session_forget_timeout = 43200                 # 会话从多少秒后开始忘记
cody_api_proxy = "127.0.0.1:1080"                   # 设置代理

*注意

本项目可以抽离为一个单独的模组,但是使用的是Nonebot adaptor是nonebot-adaptor-cqhttp, 若直接移植非此adaptor的bot,可能会出现兼容问题。

更新日志

2023-3-5

添加了对代理的支持,使得此服务能够在因地缘因素而无法访问openai的api接口的地区进行使用

About

A new generation of assistant bot based on Nonebot with Onebot and MiRai QQ engine (seperated)

Topics

chatbot-applicationgpt-3gpt-3-5-turbogpt-35-turboi2cylibmirai-api-httpmirai-botnonebotnonebot2onebotopenai-api

Resources

Readme
MIT license
Activity

Stars

8 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.