Commit graph

1187 commits

Author SHA1 Message Date
Danny Avila
b730d631af feat(client): add rc-input-number package to dependencies
feat(client): add classnames package to dependencies
2023-04-05 09:41:46 -04:00
Wentao Lyu
03cade8bd5 fix: input style
fix: use ChatGptBrowser
2023-04-05 21:21:31 +08:00
Wentao Lyu
22b9524ad3 feat: update env example.
feat: support OPENAI_REVERSE_PROXY
feat: support set availModels in env file

fix: chatgpt Browser send logic refactor.

fix: title wrong usage of responseMessage
BREAKING: some env paramaters has been changed!
2023-04-05 21:21:02 +08:00
Wentao Lyu
a5202f84cc fix: force reset to default if 0 or false 2023-04-05 17:25:35 +08:00
Wentao Lyu
4b373ebc0e feat: range number input in options. 2023-04-05 17:14:05 +08:00
Wentao Lyu
0bc2db08c7 style: options in mobile 2023-04-05 16:27:11 +08:00
Wentao Lyu
a641a0e373 fix: dont clear the input message if conversationId changed. 2023-04-05 16:16:26 +08:00
Wentao Lyu
6abe34ee3b fix: validate the import preset 2023-04-05 16:16:11 +08:00
Wentao Lyu
8c2d577e60 feat: remove customGpts 2023-04-05 16:15:46 +08:00
Daniel Avila
5aa6b516ed feat: Import Presets from NewConversationMenu
feat(FileUpload.jsx): add support for importing JSON files and fetching presets after import
feat(NewConversationMenu.jsx): add FileUpload component to select and import JSON files
feat(fetchers.js): add handleFileSelected function to handle importing JSON files and uploading presets to the server
2023-04-04 23:18:58 -04:00
Daniel Avila
0846aa0436 docs(bingai.js): remove commented example response and add reference to demo file 2023-04-04 21:00:04 -04:00
Daniel Avila
3ab9b7f736 refactor(askOpenAI.js): rename gptResponse to response, fixes titling error 2023-04-04 18:17:23 -04:00
Wentao Lyu
56e02f4968 change Switch to simple mode to close button 2023-04-05 03:58:22 +08:00
Wentao Lyu
46fba87f9a feat: add confirm of clear all presets. 2023-04-05 03:50:06 +08:00
Wentao Lyu
ee10e0e43e feat: use default preset to create new conversation. 2023-04-05 03:49:54 +08:00
Wentao Lyu
579b53de29 feat: style match 2023-04-05 03:07:46 +08:00
Wentao Lyu
9f1ded7f75 feat: add jailbreak option for bingai
fix some bugs.
2023-04-05 02:46:22 +08:00
Wentao Lyu
efb440128a code clean. 2023-04-05 02:30:25 +08:00
Wentao Lyu
010d900c90 fix: use universal setToneStyle 2023-04-05 02:30:14 +08:00
Wentao Lyu
0c4b754fba fix: to set default value when change endpoint of preset 2023-04-05 02:29:43 +08:00
Wentao Lyu
d864da6a21 fix: rewrite ask openAI and ask BingAI. now all code cleaned. 2023-04-05 02:29:11 +08:00
Danny Avila
0ec68bf5a8 Update defaultSystemMessage.md 2023-04-04 13:35:34 -04:00
Danny Avila
82b4401e49 Update defaultSystemMessage.md 2023-04-04 13:35:10 -04:00
Danny Avila
99d238b0de Update defaultSystemMessage.md 2023-04-04 13:30:24 -04:00
Danny Avila
617aa6f499 Update defaultSystemMessage.md 2023-04-04 13:30:04 -04:00
Danny Avila
f922a1d102 Merge branch 'feat-endpoint-style-structure' of https://github.com/danny-avila/chatgpt-clone into feat-endpoint-style-structure 2023-04-04 12:53:59 -04:00
Danny Avila
bb75b6df3b feat(bingai.js): add context and systemMessage parameters to askBing function
feat(conversationPreset.js): add context and systemMessage fields to conversation preset schema
feat(askBingAI.js): pass context and systemMessage parameters to ask function
feat(Settings.jsx): add toneStyle prop to BingAISettings component
feat(BingAIOptions/index.jsx): add useEffect to check if advanced mode is needed
feat(cleanupPreset.js): add context and systemMessage fields to cleaned up preset object
feat(getDefaultConversation.js): add context and systemMessage fields to default conversation object
feat(handleSubmit.js): add context and systemMessage fields to message object
2023-04-04 12:53:41 -04:00
Danny Avila
4b04959290 Update defaultSystemMessage.md 2023-04-04 11:22:23 -04:00
Danny Avila
28c5b21217 Update defaultSystemMessage.md 2023-04-04 11:21:30 -04:00
Daniel D Orlando
086267ee01 Add esbuild to package.json 2023-04-04 07:32:28 -07:00
Danny Avila
3484ff687d Merge branch 'feat-endpoint-style-structure' of https://github.com/danny-avila/chatgpt-clone into feat-endpoint-style-structure 2023-04-04 10:08:12 -04:00
Danny Avila
6e233accf5 style(tokenizer.js): comment out console.log statement
fix(Settings.jsx): handle null or empty context in useEffect to avoid errors
2023-04-04 10:07:48 -04:00
Danny Avila
1a196580b2 feat: count tokens for context
feat(BingAI): convert toneStyle to lowercase before setting it in state
feat(BingAI): pass setToneStyle function to Settings component
refactor(BingAI): remove unused import and change setOption to setToneStyle in Settings component
refactor(fetchers.js): add axiosPost function for debounced axios post requests
2023-04-04 10:04:21 -04:00
Wentao Lyu
e1d52b858b fix: cannot open edit preset the use preset. 2023-04-04 22:01:01 +08:00
Wentao Lyu
cef98070e9 style: show scrollbar over content. 2023-04-04 13:27:09 +08:00
Wentao Lyu
7353829719 refactor: code clean up 2023-04-04 13:11:59 +08:00
Daniel Avila
89e38d67f4 feat(bing-settings): Work in Progress, will finish tomorrow
feat(api): add @dqbd/tiktoken package as a dependency
feat(api): add /api/tokenizer endpoint to tokenize text using @dqbd/tiktoken
feat(client): add toneStyle dropdown to BingAI Settings component
feat(client): add token count to BingAI Settings component

style(ui): add z-index to Dropdown and EndpointOptionsPopover components

Add z-index to Dropdown and EndpointOptionsPopover components to ensure they are displayed above other components.
2023-04-03 21:18:19 -04:00
Danny Avila
825be5aa4d Update defaultSystemMessage.md 2023-04-03 20:12:56 -04:00
Danny Avila
d8deb89e3a Update defaultSystemMessage.md 2023-04-03 20:07:24 -04:00
Danny Avila
da69e4176a Create defaultSystemMessage.md 2023-04-03 20:06:55 -04:00
Danny Avila
85372118ed Delete defaultSystemMessage 2023-04-03 20:06:36 -04:00
Danny Avila
4fe48fe6bb Create defaultSystemMessage 2023-04-03 20:06:08 -04:00
Daniel Avila
03f63975cc Merge branch 'main' into feat-endpoint-style-structure 2023-04-03 17:30:59 -04:00
Danny Avila
28f1e851f9 chore(Settings.jsx): comment out unused import of InputNumber component 2023-04-03 16:29:02 -04:00
Danny Avila
58d162d8b4 reset package-lock files 2023-04-03 14:39:27 -04:00
Danny Avila
4961cc9250 reset package-lock on root dir 2023-04-03 14:24:32 -04:00
Wentao Lyu
8720f39def feat: preserve the title of preset. 2023-04-04 01:39:40 +08:00
Wentao Lyu
089d99e679 feat: open option dialog when click messageHeader 2023-04-04 01:23:37 +08:00
Wentao Lyu
d2579b44d1 feat: support edit preset,
feat: support view current conversation options.
feat: save current conversation as a preset.
feat: preset delete all.
2023-04-04 01:12:14 +08:00
Wentao Lyu
dae0c2d5e3 server fix: code refactor 2023-04-04 01:10:50 +08:00