1 Star 0 Fork 2

张超 / chatgptservice

forked from 李满祥 / chatgptservice 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

实现chatgpt对接后端

  • 需要科学上网

实现功能

基于cahtgpt的AI对话助手

  • 创建一个对话

    • 对话名称
    • 角色指令
    • 对话id
  • 聊天表

    create table chat
    (
        id           bigint auto_increment comment 'id'
            primary key,
        conversionid bigint                               null comment '对话id',
        context      varchar(1024)                        null comment 'chatgpt内容',
        role         varchar(20)                          null comment 'user or assistant',
        createdTime  timestamp  default CURRENT_TIMESTAMP not null comment '创建时间',
        updatedTime  timestamp  default CURRENT_TIMESTAMP not null on update CURRENT_TIMESTAMP comment '修改时间',
        isDelete     tinyint(1) default 0                 not null comment '是否删除'
    )
        comment '对话表';
  • 对话表

create table conversion
(
    id           bigint auto_increment comment 'id'
        primary key,
    title        varchar(255)                         null comment '对话标题',
    instructions varchar(512)                         null comment '该对话的角色指令',
    updatedTime  timestamp  default CURRENT_TIMESTAMP not null on update CURRENT_TIMESTAMP comment '修改时间',
    isDelete     tinyint(1) default 0                 not null comment '是否删除',
    createdTime  timestamp  default CURRENT_TIMESTAMP not null comment '创建时间'
);

使用说明

  • 新建对话
  • 建立websocket连接

空文件

简介

后端项目对接chatgpt,暂无前端 展开 收起
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/zcxnll_admin/chatgptservice.git
git@gitee.com:zcxnll_admin/chatgptservice.git
zcxnll_admin
chatgptservice
chatgptservice
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891