Commit Graph
100 Commits
Author SHA1 Message Date
heimoshuiyu e2f78987a3 setShowRetry(false) on success 2023-07-08 14:17:30 +08:00
heimoshuiyu 8fb17ba3f8 fix bug on completion with empty history 2023-07-08 14:16:51 +08:00
heimoshuiyu 1b8eeb0c86 fix calculate user token in hide state 2023-07-08 14:03:45 +08:00
heimoshuiyu 9d34189c96 regenerate and complte function 2023-07-08 10:07:10 +08:00
heimoshuiyu 22b4d59b1c v1.4.0 warning 2023-07-08 09:56:41 +08:00
heimoshuiyu c0566f3105 better way to edit message content 2023-07-07 19:11:01 +08:00
heimoshuiyu 1c14e413bb fix develop mode style 2023-07-07 18:57:54 +08:00
heimoshuiyu 1da4d38799 1.4.0 dev mode support more ops and args 2023-07-07 18:20:14 +08:00
heimoshuiyu ecfa32f75e chatgpt.ts support more args 2023-07-07 11:06:30 +08:00
heimoshuiyu 7553cf41cf update packages 2023-07-03 10:17:59 +08:00
heimoshuiyu 66ab8d4978 handle partial chunk 2023-06-19 20:33:18 +08:00
heimoshuiyuandGitHub da31f32fcb Update chatbox.tsx handle "data:{xxxx}" 2023-06-19 20:11:09 +08:00
heimoshuiyu 280545c224 accumulated cost 2023-06-14 13:14:28 +08:00
heimoshuiyu 7ded1c8522 change default system message to "follow my instructions carefully" 2023-06-14 12:47:53 +08:00
heimoshuiyu e76f087776 fix generating message style 2023-06-14 12:45:11 +08:00
heimoshuiyu 67e12e6933 change default model to gpt-3.5-turbo-0613 2023-06-14 12:16:22 +08:00
heimoshuiyu 4860c6dff3 inherit chatStore.model 2023-06-14 12:14:57 +08:00
heimoshuiyu e03160d04d openai model update 2023-06-14 12:10:18 +08:00
heimoshuiyu b46b550a70 recognize text/event-stream, charset=utf-8 2023-04-19 16:21:05 +08:00
heimoshuiyu 8f1a327ea0 fix total token in stream mode 2023-04-04 00:39:58 +08:00
heimoshuiyu 8c049c9ee9 handle response error 2023-04-03 17:46:07 +08:00
heimoshuiyu 528eb0a300 永远显示提示<p> 2023-04-03 17:46:07 +08:00
heimoshuiyuandGitHub d5d077f39c Update README.md 2023-04-02 13:01:38 +08:00
heimoshuiyuandGitHub b4244d3900 现在我觉得它不灵车了 2023-04-01 19:57:59 +08:00
heimoshuiyu 8f3d69d2a2 fix todo: estimate user's token 2023-04-01 12:35:26 +08:00
heimoshuiyu 11d9b09e36 prevent undefined on new models 2023-03-31 15:00:57 +08:00
heimoshuiyu 464e417537 switch model with token 2023-03-31 05:14:44 +08:00
heimoshuiyu 5a328db87d cost in stream mode 2023-03-31 05:09:25 +08:00
heimoshuiyu 3b09abaf66 header 2023-03-31 05:00:52 +08:00
heimoshuiyu 05f57f29e5 show cost 2023-03-31 04:50:49 +08:00
heimoshuiyu 11afa12b09 fix show version warning 2023-03-31 04:41:08 +08:00
heimoshuiyu 26f9632f41 record each message's token and hide status, calc postBeginIndex based on token 2023-03-31 04:16:23 +08:00
heimoshuiyu bdfe03699f support import chat store 2023-03-30 14:33:54 +08:00
heimoshuiyu fecfc24519 support export as json 2023-03-30 13:56:03 +08:00
heimoshuiyu 07885c681c show response model name 2023-03-30 13:39:19 +08:00
heimoshuiyu faac2303df gpt-4 内测提示 2023-03-30 13:01:28 +08:00
heimoshuiyu fc17d6ba15 fix copy max_token from chaStore to client 2023-03-29 16:42:57 +08:00
heimoshuiyu 3de689a796 use gpt-3.5-turbo as default new ChatStore 2023-03-29 15:51:04 +08:00
heimoshuiyu 35ee9cab0e highlight status bar 2023-03-29 15:48:49 +08:00
heimoshuiyu 5fc2c62b4f select chat index after fetch 2023-03-29 15:37:36 +08:00
heimoshuiyu c31c6cd84a set maxToken based on model 2023-03-29 13:02:48 +08:00
heimoshuiyu 6406993e83 handle create new chatstore on diff model 2023-03-29 12:51:31 +08:00
heimoshuiyu 2d7edeb5b0 support gpt-4 2023-03-29 12:45:59 +08:00
heimoshuiyu 1158fdca38 update stream mode based on response 2023-03-28 21:18:30 +08:00
heimoshuiyu 7c34379ecb calculate token and forget some message 2023-03-28 21:12:34 +08:00
heimoshuiyu 26a66d112b create chatStore if not equal params 2023-03-27 13:43:06 +08:00
heimoshuiyu e791367d2d break all text 2023-03-27 13:18:30 +08:00
heimoshuiyu 30abf3ed15 auto create new chatStore if there any params in URL 2023-03-27 13:15:23 +08:00
heimoshuiyu 146f34a22d 更好的提示 2023-03-26 21:00:28 +08:00
heimoshuiyu d5a8799fde issue caused by height: 100vh 2023-03-26 19:30:03 +08:00
heimoshuiyu 241a93b151 更改默认 system message 2023-03-26 18:36:51 +08:00
heimoshuiyu a4b762586c 更好的文档和提示 2023-03-26 14:04:53 +08:00
heimoshuiyu 700c424d64 更好的提示 2023-03-26 00:11:11 +08:00
heimoshuiyu 6b4cbd62ac auto textarea height 2023-03-25 12:38:48 +08:00
heimoshuiyu 61c4f548f1 fit message width 2023-03-25 02:08:25 +08:00
heimoshuiyu bb84045481 scroll to bottom of messages generating messages 2023-03-25 01:02:38 +08:00
heimoshuiyu 7a15792c39 scroll to bottom of messages 2023-03-25 01:01:25 +08:00
heimoshuiyu 2ab9a0a46c show correct message.length 2023-03-24 15:51:28 +08:00
heimoshuiyu 99d3c69647 use stream mode depend on content-type 2023-03-24 13:14:34 +08:00
heimoshuiyu 0148465e34 select last chat after delete 2023-03-24 10:51:19 +08:00
heimoshuiyu 9b00cd0fbc Love from ChatGPT: How to make <p> show all space like <pre> 2023-03-22 20:28:30 +08:00
heimoshuiyu 7149ed0310 更好的文档 2023-03-22 15:50:03 +08:00
heimoshuiyu 46b842500d 更好的设置说明 2023-03-22 15:43:53 +08:00
heimoshuiyu f278e5b1fc split message.tsx 2023-03-22 15:39:25 +08:00
heimoshuiyu c7f731c2fa change p-4 to p-2 2023-03-22 15:30:02 +08:00
heimoshuiyu 371adfb1d4 retry button 2023-03-22 14:42:27 +08:00
heimoshuiyu 2ed7f9d05a 爱来自chatgpt: how to hide scrollbar in tailwind css? 2023-03-19 14:26:51 +08:00
heimoshuiyu e0b50ced12 change url parms order 2023-03-18 02:27:19 +08:00
heimoshuiyu 80508f9c6c fix stream mode showGeneratingText 2023-03-17 10:53:27 +08:00
heimoshuiyu 14457cbb5f fix chatstore state 2023-03-17 10:42:16 +08:00
heimoshuiyu f59b63884d support dark mode 2023-03-17 10:31:25 +08:00
heimoshuiyu 9b5730760a clear history reset postBeginIndex totalTokens 2023-03-17 09:31:07 +08:00
heimoshuiyu 1372121e32 fix delete and save new chat 2023-03-17 01:16:21 +08:00
heimoshuiyu 09e9d18e71 fix key link 2023-03-17 00:41:53 +08:00
heimoshuiyu 383d6de1d6 你正常点 2023-03-17 00:29:13 +08:00
heimoshuiyu e56389b4c2 git ignore /dist.zip 2023-03-17 00:29:13 +08:00
heimoshuiyu 71cdba59ee *rewrite* store chat in key-value schema 2023-03-17 00:29:13 +08:00
heimoshuiyu bebb447498 reverse list 2023-03-17 00:29:13 +08:00
heimoshuiyu 1c8a3e1462 prevent selectChatIndex -1 error 2023-03-17 00:29:13 +08:00
heimoshuiyu 772e9ac612 clear history 2023-03-17 00:29:13 +08:00
heimoshuiyu 536db13ad1 fianlly setShowGenerating false 2023-03-17 00:29:13 +08:00
heimoshuiyu 543d09ebbb fix setting style the correct way 2023-03-17 00:29:12 +08:00
heimoshuiyu f5add0b48d Revert "fix setting style"
This reverts commit bad8dcabc346fa3ee3171472950d771ef9351b8c.
2023-03-17 00:29:12 +08:00
heimoshuiyu 71dbe86520 fix setting style 2023-03-17 00:29:12 +08:00
heimoshuiyu 648040659b *rewrite* app.tsx split to chatbox.tsx 2023-03-17 00:29:12 +08:00
heimoshuiyu 77d419b24c simplify header status 2023-03-17 00:29:12 +08:00
heimoshuiyu 4757678075 copy link for settings 2023-03-17 00:29:12 +08:00
heimoshuiyu 935c1606b7 fix del affect postBeginIndex 2023-03-17 00:29:12 +08:00
heimoshuiyu e81044c4b5 settings window 2023-03-17 00:29:11 +08:00
heimoshuiyu 7747bfa1ac fix ctrl enter state 2023-03-17 00:29:11 +08:00
heimoshuiyu 2422f2d2c9 openai 封号风险
<https://github.com/zhayujie/chatgpt-on-wechat/issues/423>
2023-03-17 00:29:11 +08:00
heimoshuiyu 525ceaae67 update doc 2023-03-17 00:29:03 +08:00
heimoshuiyu e95c42a34a long sys message 2023-03-15 10:11:57 +08:00
heimoshuiyu 7dd5334a96 generating message line break 2023-03-15 09:57:28 +08:00
heimoshuiyu fe7638a31c type 2023-03-15 09:53:45 +08:00
heimoshuiyu 014c8e88e1 remember selected index 2023-03-15 02:53:32 +08:00
heimoshuiyu 84d771722b typo 2023-03-15 02:41:58 +08:00
heimoshuiyu 5eb070a62f support both fetch and stream mode 2023-03-15 02:33:49 +08:00
heimoshuiyu a68e4b9dbd change to stream api mode 2023-03-15 02:07:21 +08:00
heimoshuiyu 333a1c34b2 better hint missing api endpoint and key 2023-03-14 23:24:37 +08:00