Commit graph

24 commits

Author SHA1 Message Date
George Adams f752a4420e
refactor: getToday (#281) 2023-05-08 19:10:05 +08:00
George Adams 6a56dd0231
refactor: remove unused code (jspdf, downloadPDF) and add code comments (#274) 2023-05-07 23:51:36 +08:00
Limour 4cfbdac7d6
Set a system role as a persistent role. (#134)
* set a system role as a persistent role

Fixes https://github.com/ztjhz/BetterChatGPT/issues/130

* handle system message exceed token limit + improve logic

---------

Co-authored-by: Jing Hua <tohjinghua123@gmail.com>
2023-05-06 11:15:12 +08:00
Jing Hua 86f7313923 fix: chatgpt import 2023-04-26 15:25:36 +08:00
Jing Hua 5fdaa1dbda feat: count lifetime token usage
fixes #163
2023-04-24 13:44:03 +08:00
Jing Hua ece4778f88 feat: import openai chatgpt export 2023-04-21 17:20:38 +08:00
Jing Hua 3f0ada4a9d
Sync to Google Drive (#233)
* google drive api

* fix: google-api

* GoogleCloudStorage

* list files api

* Google Cloud Storage

* move button to side menu

* sync status

* rename file

* show popup for those with cloud sync

* update button style

* auto close modal after logged in

* auto popup every 59min

* set as unauthenticated if update fails

* i18n

* add spin animation

* feat: Toast

* clear toast

* electron: desktop google drive integration

This update includes integration with Google Drive for desktop access,
but requires a new URL, which may cause existing chat data to be lost.
To minimize disruption, users can export their current chat data and
import it into the newer version.

* update note

* error handling

* support multiple drive files

* feat: delete drive file

* i18n

* change style
2023-04-14 15:29:13 +08:00
Jing Hua 38bc63f0ac feat: Azure OpenAI endpoint support
fixes #208
2023-04-06 02:48:12 +08:00
Jing Hua 9956d254f4
Refactor folder (#188)
* refactor folders

* add chat id
2023-04-02 16:27:19 +08:00
Jing Hua e14f44b8c9 feat: prompts import and export
Fixes #71
2023-03-31 23:33:47 +08:00
Jing Hua 325da54e4c fix: chat import model 2023-03-28 16:04:31 +08:00
Jing Hua 7a4afd265b fix: tiktoken performance 2023-03-25 23:06:27 +08:00
Jing Hua 6a6d2fe819 only load cl100k tokeniser
fix #109, #13
2023-03-25 22:51:32 +08:00
Jing Hua 8ff5079266 remove download pdf
temporary fix for vite-plugin-top-level-await
2023-03-25 22:51:32 +08:00
Jing Hua 9cff66f783 change tokeniser to tiktoken 2023-03-25 22:51:32 +08:00
Jing Hua 15f21b23fb feat: display total number of tokens in conversation
fixes #126
2023-03-25 14:50:26 +08:00
Jing Hua b0bfe56fd3 feat: customise default model parameters and system message
Fixes #97, Fixes #89, Fixes #35
2023-03-20 16:06:46 +08:00
akira0245 4c80898078
feat: more request parameters (#62)
* feat: more request parameters

added top_p and frequency_penalty

* fix: value range of top_p

valid top_p range should be 0-1

* migration + change chats validation

* style chat title

---------

Co-authored-by: Jing Hua <tohjinghua123@gmail.com>
2023-03-13 13:01:24 +08:00
Jing Hua 94d5ad3692 remove image resizing for mobile chat download 2023-03-11 19:28:39 +08:00
Jing Hua ac7ea965ec feat: download chat as pdf / image / markdown
fixes #26
2023-03-11 02:35:55 +08:00
Jing Hua df82b62e38 feat: Import and export chats
fixes #8, #26
2023-03-10 17:03:46 +08:00
Jing Hua 21da7342eb fix: Object.hasOwn browser compatibility 2023-03-07 15:47:17 +08:00
Jing Hua c006ccd97a feat: adaptive memory
fixes 9, fixed 10
2023-03-06 22:50:03 +08:00
Ayaka d4d0fafcb9
Implement a rudimental version of countTokens (#28) 2023-03-06 22:08:13 +08:00