Commit graph

1531 commits

Author SHA1 Message Date
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
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
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
28f1e851f9 chore(Settings.jsx): comment out unused import of InputNumber component 2023-04-03 16:29:02 -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
ea88e9b981 fix: bingAI/settings: wrong usage of checkbox 2023-04-04 01:04:33 +08:00
Wentao Lyu
e7c9ae5a7d fix: regenerate should work for error message. 2023-04-03 21:32:21 +08:00
Wentao Lyu
15ada95249 feat: export preset. 2023-04-03 12:54:15 +08:00
Daniel Avila
ced65f8c98 feat(client): add @radix-ui/react-checkbox dependency and create BingAI Settings component
feat(BingAIOptions): add advanced mode to BingAIOptions component
feat(Checkbox): add Checkbox component to ui components
2023-04-02 18:45:41 -04:00
Daniel Avila
871bc4c78b refactor(getIcon.jsx): if model is GPT-4, change background color to black. 2023-04-02 15:23:28 -04:00
Daniel Avila
aa4fd57459 feat(chatgpt-browser): add support for multiple GPT models
This commit adds support for multiple GPT models in the chatGPT-browser
client. The available models are now stored in a Map object, which maps
the model label to its corresponding model.

The commit adds a new component, ChatGPTOptions, to the client
UI to allow the user to select the GPT model to use in the chat. The
component is only displayed when the chatGPT-browser endpoint is
selected.
2023-04-02 14:34:12 -04:00
Daniel Avila
77b46cc1a7 refactor(ModelDropDown.jsx): remove commented out code and simplify model display 2023-04-02 11:37:10 -04:00
Daniel Avila
3121a3a6ba fix: add brackets to main property for dialogtemplate 2023-04-01 19:42:09 -04:00
Daniel Avila
8fa20d9356 Merge branch 'main' into feat-endpoint-style-structure 2023-04-01 19:41:36 -04:00
Daniel Avila
48b901fdfe Merge branch 'master' of https://github.com/danny-avila/chatgpt-clone into search 2023-04-01 19:13:54 -04:00
Wentao Lyu
2cce2e30ba fix: change endpoint should not skip when endpoint same 2023-04-02 04:48:33 +08:00
Wentao Lyu
ad5fbc5fb1 merge Daniel Avila's commit
feat(ModelDropDown.jsx): add optional props to customize component appearance and behavior

feat(client): add ModelDropDown component to OpenAIOptions component
2023-04-02 04:40:13 +08:00
Wentao Lyu
45e17da241 feat: add preset and edit preset. 2023-04-02 04:15:07 +08:00
Daniel D Orlando
6498ab79a4 build: install and configure Vite, move index.html 2023-04-01 12:58:49 -07:00
Daniel D Orlando
ff757f27cf fix: fix files to adhere to standard conventions 2023-04-01 12:56:32 -07:00
Daniel Avila
2157eb8f30 feat(ModelDropDown.jsx): add optional props to customize component appearance and behavior
feat(client): add ModelDropDown component to OpenAIOptions component
2023-04-01 15:29:38 -04:00
Daniel Avila
7487b59de7 Merge branch 'feat-endpoint-style-structure' of https://github.com/danny-avila/chatgpt-clone into feat-endpoint-style-structure 2023-04-01 14:27:40 -04:00
Daniel Avila
efe55d8842 style(ui): replace SaveIcon with Save from lucide-react in EndpointOptionsPopover component 2023-04-01 14:27:34 -04:00
Wentao Lyu
d76efa7874 code cleanup 2023-04-02 00:57:27 +08:00
Daniel Avila
c5805d710b Merge branch 'feat-endpoint-style-structure' of https://github.com/danny-avila/chatgpt-clone into feat-endpoint-style-structure 2023-04-01 12:49:42 -04:00
Daniel Avila
f5ffa81455 complete: modeldropdown 2023-04-01 12:49:20 -04:00
Wentao Lyu
4d7fa26e6c feat: move EndpointOptionsPopover as a common component 2023-04-02 00:29:53 +08:00
Wentao Lyu
099210c10e feat: add default text.
fix: slider should set a number
2023-04-01 23:45:19 +08:00
Wentao Lyu
46e3ef4049 feat: endpoint setting mobile style.
feat: save and endpoint option works!
2023-04-01 23:27:44 +08:00
Wentao Lyu
edaf7c3ad1 feat: advanced style for openAI endpoint 2023-04-01 14:33:26 +08:00
Wentao Lyu
60be4f12b7 feat: return endpoint config from server 2023-04-01 14:33:07 +08:00
Daniel Avila
b687ab30ed style(OpenAIOptions): add dark mode support to Settings2 icon
feat(OpenAIOptions): pass isOpen prop to Settings component to toggle visibility
2023-03-31 21:51:06 -04:00
Daniel Avila
467e24c9ed style(Input/OpenAIOptions): comment out unused code and add gray color to settings icon 2023-03-31 21:48:27 -04:00
Daniel Avila
9098362377 style(Settings.jsx): remove unnecessary line break
style(Settings.jsx): add text-sm class to Label components
style(Settings.jsx): add flex, h-10, max-h-10, w-full, resize-none, px-3, py-2, focus:ring-0, focus:ring-offset-0, focus:ring-opacity-0, focus:outline-none classes to Input component
2023-03-31 21:45:29 -04:00
Daniel Avila
064dfb5336 fix(Settings.jsx): change min value of Slider component to -2 to allow negative values for presP variable 2023-03-31 21:11:43 -04:00
Daniel Avila
404566c1fb update more button and misc. styling 2023-03-31 18:38:58 -04:00