Commit Graph

40 Commits

Author SHA1 Message Date
RockYang
fcfe0c7913 系统设置页面功能完成 2023-05-03 09:48:37 +08:00
RockYang
556abf5276 update the data struct of API KEYS 2023-05-02 12:06:02 +08:00
RockYang
523cd4d4c9 重新整理后台管理 API,新增系统管理页面 2023-04-28 16:15:46 +08:00
RockYang
6409531ee4 add API for get and set image url for wechat 2023-04-27 10:45:19 +08:00
RockYang
d8bc0fe125 1. 发起 socket 连接时候传入 chatId 来区分会话。
2. Chat-Plus 界面新增复制回复内容按钮。
3. 优化 ChatFree 聊天会话切换和管理逻辑。
2023-04-21 11:21:41 +08:00
RockYang
00db78b446 change ACCESS_KEY header to ACCESS-KEY, add test env file 2023-04-20 18:13:05 +08:00
RockYang
296d83c3a1 optimize the logic for showing chat history 2023-04-20 11:56:33 +08:00
RockYang
14a351b477 在进行 socket 连接前先关闭之前连接。实现新建会话功能。 2023-04-19 15:18:13 +08:00
RockYang
8733cdb981 新增免费版 ChatGPT 2023-04-18 17:56:20 +08:00
RockYang
1db20959e7 The 'stop generate' and 'regenerate response' function is ready 2023-04-11 18:58:27 +08:00
RockYang
a2cf97b039 logout function is ready 2023-04-10 06:44:27 +08:00
RockYang
208655af5e 优化登录逻辑 2023-04-08 10:57:46 +08:00
RockYang
df9e587300 more chat role is ready, and add API to add new chat role 2023-04-08 09:39:03 +08:00
RockYang
7e1e408b64 Token expired time fucntion is ready 2023-04-06 09:56:56 +08:00
RockYang
65ad5fb632 优化系统设置 API 参数解析,优化点卡扣费逻辑,没有回复答案不记扣费次数 2023-04-04 09:05:17 +08:00
RockYang
a4469b23df 增加更新角色信息 API 2023-03-31 18:34:16 +08:00
RockYang
d515e88d97 禁用 gin 打印日志 2023-03-29 21:44:44 +08:00
RockYang
bd41f742d2 添加微信和知识星球的推广二维码 2023-03-29 14:27:04 +08:00
RockYang
eb562ea3c9 add config api for setting the ChatContextExpireTime 2023-03-28 18:16:05 +08:00
RockYang
cb2b01127b 定期清理用户聊天会话上下文 ChatContext 2023-03-28 18:13:17 +08:00
RockYang
4e575d01db 优化用户聊天记录显示 2023-03-28 17:19:50 +08:00
RockYang
ebc2041e8a rename Token to User, the chat history function is ready 2023-03-28 16:03:41 +08:00
RockYang
95f9dfa9cb 新增接口开启调试模式 2023-03-28 12:12:41 +08:00
RockYang
1e8aaff193 The function for batch generate tokens is ready 2023-03-28 11:20:03 +08:00
RockYang
d85e91a8da 完成 Token 点卡功能 2023-03-28 10:17:36 +08:00
RockYang
5f702d92dc 支持 TOKEN 设置最大调用次数 2023-03-27 21:45:02 +08:00
RockYang
a6bab7b12d 使用 leveldb 存储用户 token 和聊天记录 2023-03-27 18:27:33 +08:00
RockYang
6a38de7eaa 支持添加多个 ChatGPT API 代理地址 2023-03-26 21:10:40 +08:00
RockYang
fe91b0f784 add API to remove API key, set chat roles 2023-03-26 18:23:29 +08:00
RockYang
43b7191ffa 添加聊天角色支持 2023-03-24 18:14:40 +08:00
RockYang
967ca441d7 添加聊天角色功能 2023-03-24 16:26:24 +08:00
RockYang
bb019f3552 优化聊天会话管理,支持 websocket 断开重连之后能继续连接会话上下文 2023-03-24 14:24:49 +08:00
RockYang
2067aa3f83 add Makefile, fixed websocket url for https 2023-03-23 18:10:23 +08:00
RockYang
20bdf12180 实现 API Key 负载均衡,修复 WebSocket session 失效问题 2023-03-22 13:51:27 +08:00
RockYang
97acfe57e7 修复 WebSocket 会话问题,使用自己实现的简易会话 2023-03-22 07:24:31 +08:00
RockYang
005d219a8c 添加会话授权支持 2023-03-21 18:12:24 +08:00
RockYang
3bb6814493 优化 ChatGPT API 重试逻辑 2023-03-20 15:02:42 +08:00
RockYang
59782e9e57 add config update API 2023-03-18 20:20:00 +08:00
RockYang
396b7440fa 接入 ChatGPT API 2023-03-17 18:54:26 +08:00
RockYang
c25cc97450 完成前后端框架搭建,完成聊天页面布局 2023-03-17 14:17:27 +08:00