Commit Graph

23 Commits

Author SHA1 Message Date
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 cb2b01127b 定期清理用户聊天会话上下文 ChatContext 2023-03-28 18:13:17 +08:00
RockYang ebc2041e8a rename Token to User, the chat history function is ready 2023-03-28 16:03:41 +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 9ea4060790 do not show the hello message when reconnected 2023-03-26 17:47:10 +08:00
RockYang a4ea1e47e2 add chat avatar icon for different roles 2023-03-26 12:54:25 +08:00
RockYang c813399363 add hello messga for chat roles 2023-03-25 22:48:36 +08:00
RockYang 4a3c93c65a 优化角色对话上下文处理 2023-03-25 22:11:53 +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 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 e2c3f50c8a 实现聊天光标闪烁,实现聊天会话上下文 2023-03-19 00:31:35 +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