Commit graph

232 commits

Author SHA1 Message Date
Jing Hua 2dcdecc842 style: textarea 2023-04-06 02:33:13 +08:00
Ayaka Mikazuki 01f5d8e4f8 Merge branch 'main' of github.com:ztjhz/ChatGPTFreeApp 2023-04-05 13:09:33 +08:00
Ayaka Mikazuki da86e93bf6 minor fix of language dropdown 2023-04-05 13:09:28 +08:00
Tindo N. Arsel f6ff1f4635
add submit placeholder for message textarea (#200)
* add submit placeholder for message textarea

* fix typo in french translation

* Update MessageContent.tsx

---------

Co-authored-by: Jing Hua <59118459+ztjhz@users.noreply.github.com>
2023-04-05 12:59:01 +08:00
Tindo N. Arsel cda88d85f9
fix folder's new chat button quickly disappear (#201) 2023-04-04 17:41:22 +08:00
Ayaka b4f3789060
Add language names (#198) 2023-04-04 16:08:02 +08:00
Tindo N. Arsel 8f0ed233e9
adjust new chat button display in chat folder (#199)
* adjust new chat button display in chat folder

* Display it at the top instead at the end.
This because chats are order by recently created.
UX issue when clicking to the button at the end,
and have to scroll at the top to see and edit newly created chat.

* Display the button when hovering the folder,
not just the group of chats in the folder.
This make the button to display when hover the folder,
even if there is not yet chats list in the folder.

* parent sibling hover

---------

Co-authored-by: Jing Hua <tohjinghua123@gmail.com>
2023-04-04 16:04:39 +08:00
Jing Hua 4d258687c0 style: scrollbar 2023-04-04 14:33:56 +08:00
Junya Masuda mabo 63f9eca717
fix: Prevent chat message submission during Japanese IME conversion (#196) 2023-04-04 09:37:35 +08:00
Tindo N. Arsel 6d1ae9f526
add feature to create new chat in a given folder (#174)
* add feature to create new chat in a given folder

This to not have to drag and drop a chat each time in a folder

* change style

* fix margin

* style: folder gradient

* style

---------

Co-authored-by: Jing Hua <59118459+ztjhz@users.noreply.github.com>
2023-04-04 00:33:40 +08:00
spctechdev bfe3f1adfa
New language: Italian (#192)
* Add files via upload

* Update i18n.ts
2023-04-03 10:07:11 +08:00
Jing Hua 4823b1dc38
feat: folder colors (#191) 2023-04-02 23:04:11 +08:00
Jing Hua 892e7792ba style: gray-650 and gray-850 2023-04-02 21:29:25 +08:00
Jing Hua e4468fd93f support environment variables
fixes #159
2023-04-02 20:43:54 +08:00
Jing Hua dfd8cfc32a add csv label 2023-04-02 19:56:00 +08:00
Jing Hua 9956d254f4
Refactor folder (#188)
* refactor folders

* add chat id
2023-04-02 16:27:19 +08:00
Jing Hua f6c2976cbd remove custom api placeholder 2023-04-02 00:25:32 +08:00
Ayaka Mikazuki 15ca9adc4a update i18n 2023-04-02 02:17:35 +10:00
Jing Hua 4a9efaf7da fix: chat filter 2023-04-02 00:04:21 +08:00
Jing Hua fc95eecc11 fix: mobile side bar auto collapsing 2023-04-01 23:21:44 +08:00
Jing Hua 60044b35d0 style: ChatSearch margin 2023-04-01 23:00:27 +08:00
Jing Hua 55aa22a28b feat: search chats / folders
fixes #102
2023-04-01 22:45:57 +08:00
Jing Hua 467160fbb1 fix: newFolderIcon attribute name 2023-04-01 22:00:29 +08:00
Jing Hua 13fc68907c style: limit chat title height on mobile 2023-04-01 12:08:05 +08:00
Jing Hua d2da2a3b7c generate title in user's language
fixes #178
2023-04-01 12:01:30 +08:00
Tindo N. Arsel 7cb8aa0b4a
update new folder icon (#177) 2023-04-01 11:28:29 +08:00
Jing Hua e14f44b8c9 feat: prompts import and export
Fixes #71
2023-03-31 23:33:47 +08:00
Jing Hua 2c89c9325b reorder about popup 2023-03-31 22:04:50 +08:00
Jing Hua 5f7b445225 disable enter to submit for mobile 2023-03-30 16:55:53 +08:00
akira0245 63596c20d4
feat: add shortcut for "save and submit" when editing message (#127)
save and submit the edited message when ctrl and shift key been pressed simultaneously.

Co-authored-by: Jing Hua <59118459+ztjhz@users.noreply.github.com>
2023-03-30 16:06:51 +08:00
Jing Hua 78bf777365 feat: option for enterToSubmit / shiftEnterToSubmit
Fixes #88
2023-03-30 16:01:01 +08:00
Jing Hua 77963d3aaa remove date in default system message 2023-03-29 20:40:26 +08:00
Jing Hua fd14260c84 feat: clone chat
fixes #160
2023-03-29 20:39:31 +08:00
Jing Hua 6ef5a6b09e remove knowledge cutoff from default system message
fixes #162
2023-03-29 20:09:16 +08:00
Tindo N. Arsel 25576212a3
Instruct the system to respond using Markdown (#161)
This for a default behavior.
This makes the answer of the AI more user-friendly to read.
This also increases the accuracy of the answer to be well-formatted.
2023-03-29 19:46:36 +08:00
Ayaka Mikazuki 58651ea4d2 add yue as symlink to zh-HK 2023-03-29 01:17:22 +10:00
Tindo N. Arsel a12ab5177a
add French translation, use relative shortcut for main French and English variant (en-US & fr-FR) (#153)
* add French translation

* Add US english and French french translations

This as shortcuts to their respective default locales.
This will improve locale indexing for these main language  variants,
without unnecessary duplication.

* trailing new line

* fix typo

* fix typo

---------

Co-authored-by: Ayaka <f@0x40.shn.hk>
Co-authored-by: Ayaka <ayaka@mail.shn.hk>
2023-03-28 23:15:07 +08:00
Jing Hua 325da54e4c fix: chat import model 2023-03-28 16:04:31 +08:00
Jing Hua 29013bbd76 import folders / clear folders 2023-03-28 01:06:58 +08:00
Jing Hua cb9f6fb3db fix: keep folders expanded 2023-03-27 23:07:32 +08:00
Jing Hua a0c43a4ac0 chat history enter to save edits 2023-03-27 23:00:40 +08:00
Jing Hua fe8d6ccced
feat: chat folders (#146)
* feat: folder

* folder functionality

* i18n
2023-03-27 21:41:45 +08:00
Ayaka Mikazuki 404dae8dff fix bug 2023-03-27 17:40:45 +10:00
Ayaka Mikazuki 191739d995 remove free APIs
Remove free APIs as they ran out of funding. Users can still use
third-party free APIs by using custom endpoints.

Ref: #144

Squashed commit of the following:

commit 81e9b9963ea8c4532c110bfe2ddb67b603683875
Author: Ayaka Mikazuki <ayaka@mail.shn.hk>
Date:   Mon Mar 27 17:30:11 2023 +1000

    update translations

commit 7bf023ed2f392e79026dd1d4154b83397bba2249
Author: Ayaka Mikazuki <ayaka@mail.shn.hk>
Date:   Mon Mar 27 16:44:36 2023 +1000

    update API menu

commit 641b34cfafbc8e10d3ba9730f58a3f10a57dd52b
Author: Jing Hua <tohjinghua123@gmail.com>
Date:   Mon Mar 27 14:19:49 2023 +0800

    remove api free option
2023-03-27 17:32:54 +10:00
Ayaka Mikazuki 2632742c13 Fix translation bug 2023-03-27 15:15:39 +10:00
Ayaka Mikazuki a0988dbd49 Add Japanese and Malay translation 2023-03-27 15:09:41 +10:00
Jing Hua 0e08f8f46a i18n: html lang attribute 2023-03-27 11:39:21 +08:00
Jing Hua c06415d4fb style: message max-width 2023-03-27 00:33:16 +08:00
Jing Hua 0302c5301d hide sidemenu for mobile 2023-03-26 17:21:23 +08:00
Jing Hua d4e72532a8 style: padding 2023-03-26 17:13:21 +08:00
Jing Hua d654e143e5 fix: style group 2023-03-26 17:06:40 +08:00
Jing Hua b813df5343 feat: collapsible side menu
issue #110
2023-03-26 16:56:38 +08:00
Jing Hua 470aa40a84 fix: new chat 2023-03-26 14:01:16 +08:00
Jing Hua 17b6fc91fb fix: disable new chat during generation 2023-03-26 13:46:55 +08:00
Jing Hua dcea49d6ad disable changing chat during generation
fixes #117, fixes #67
2023-03-26 10:40:50 +08:00
Jing Hua 7a35e20fbb feat: add price of tokens 2023-03-26 10:23:09 +08:00
Jing Hua 2d42616070 feat: download indicidual chat
import chats appends instead of replace existing chats
2023-03-26 10:08:28 +08:00
flycran a5c1db6fcf
Fold menu options (#82)
* 增加折叠MenuOptions功能

* 增加折叠MenuOptions功能

* 改用tailwindcss编写样式

* 解构useState并显式标注类型

* 修改折叠图标的hover样式

* 为折叠状态添加持久化

* fix: bug

* rename foldMenuOptions to hideMenuOptions

* change file location

* transition + styling

* reordering

* update link

---------

Co-authored-by: Jing Hua <59118459+ztjhz@users.noreply.github.com>
2023-03-26 02:35:17 +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 2d1139e3d2 feat: message copy button
fixes #94, fixes #20
2023-03-25 14:17:39 +08:00
Jing Hua ad90d99299 style: markdown table 2023-03-25 14:08:15 +08:00
Jing Hua b7848e8b8b fix: refresh during generation
fixes #116
2023-03-25 13:58:17 +08:00
Jing Hua b04dbfa76b change freechatgpt to betterchatgpt 2023-03-25 13:40:42 +08:00
Ayaka Mikazuki 370e03fafa Rename Free ChatGPT to Better ChatGPT 2023-03-25 15:05:26 +09:30
Jing Hua aefca02620 api popup 2023-03-25 13:04:06 +08:00
akira0245 58858d51ac
feat: not adding first system message if default system message is empty (#129)
* feat: not adding first system message if default system message is empty

* formatting

---------

Co-authored-by: Jing Hua <59118459+ztjhz@users.noreply.github.com>
2023-03-25 00:16:22 +08:00
Teng Zhang 6439404f5b
fix: locating i18n files error (#119) 2023-03-24 08:53:16 +08:00
Jing Hua 1b2f80c85b fix: ShareGPT bug 2023-03-23 01:25:32 +08:00
Jing Hua f797f6984c feat: ShareGPT
Fixes #1
2023-03-23 00:58:26 +08:00
MrSevyu 8787eef762
Added Spanish translation. (#114) 2023-03-23 00:05:50 +08:00
Ayaka Mikazuki 4c87b0d547 Add sv translation 2023-03-22 16:43:08 +09:30
Ayaka Mikazuki a0995c6f80 Fix nb-NO translation 2023-03-22 16:15:11 +09:30
Ayaka Mikazuki a6ebfc527f Add nb-NO translation 2023-03-22 16:02:52 +09:30
Ayaka Mikazuki 1608991ac4 add zh-TW translation 2023-03-21 14:35:19 +09:30
Ayaka Mikazuki 25accc6e77 add Danish translation 2023-03-20 19:34:22 +09:30
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
Jing Hua 92f09c275b fix: missing bytes when using api endpoint 2023-03-19 22:22:24 +08:00
Jing Hua e69e50a9a9 fix: max tokens bug
Fixes #100
2023-03-19 18:04:47 +08:00
Jing Hua 9f92cf5c70 fix: max tokens bug 2023-03-19 15:35:23 +08:00
Jing Hua e0155e3f4f set sharegpt api endpoint as default 2023-03-19 13:33:53 +08:00
Jing Hua e287e443c9 update api menu 2023-03-19 13:23:17 +08:00
Jing Hua 1069f62fc6 added new api endpoint
Fixes #98
2023-03-19 13:00:34 +08:00
Jing Hua bdc95cb305 feat: model max_tokens customisation
Fixes #92
2023-03-19 12:46:31 +08:00
Jing Hua 84ae0ae8df feat: gpt-4 support
fixes #80
2023-03-17 14:23:36 +08:00
Jing Hua 209173ef5c style: chat config title
Fixes #63
2023-03-15 22:09:44 +08:00
Jing Hua 2f11c9d254 remove sanitize
Fixes #76
2023-03-15 22:05:26 +08:00
Jing Hua 94e7da2260 style: prompt library textarea 2023-03-14 02:35:08 +08:00
Jing Hua ca98ebb4a6 update default prompts 2023-03-13 22:28:14 +08:00
Jing Hua b9657c6325 feat: prompt library 2023-03-13 21:54:05 +08:00
Ayaka 67e96df310
Add zh-HK (Cantonese) translation (#68) 2023-03-13 21:59:05 +09:30
Ayaka 291ee71617
Rename ChatGPTFreeApp to Free ChatGPT (#66) 2023-03-13 14:39:07 +08:00
Jing Hua 4313446dd3 feat: auto generate title setting 2023-03-13 13:22:48 +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 9f1529d07a update api menu and readme 2023-03-12 19:05:26 +08:00
Jing Hua 9fa830d57d update migration 2023-03-12 13:55:21 +08:00
Ayaka 78800937b9
Update articles (#60)
* Update articles

* Fix bug

* Fix typo
2023-03-12 02:44:57 +08:00