Commit graph

378 commits

Author SHA1 Message Date
Daniel Avila
2b7c1507ef style(Message.jsx): add whitespace-pre-wrap to the message editor to preserve line breaks 2023-04-21 23:12:45 -04:00
Danny Avila
3447137515
Merge pull request #179 from danny-avila/fix-unknown-conversationId
fix: fix infinite query failure when conversationId is not found
2023-04-11 19:52:42 -06:00
Daniel Avila
e68c163ef6 feat(Input/NewConversationMenu): save last selected model to localStorage
fix(getDefaultConversation.js): use last selected model from localStorage if available
2023-04-11 21:33:14 -04:00
Daniel Avila
5c5871afd8 style(endpoints.js): fix indentation and add semicolons
fix(tokenizer.js): add try-catch block and error handling
style(SetTokenDialog/index.jsx): fix typo in sentence
refactor(data-service.ts): change argument format to match server API
2023-04-11 10:28:11 -04:00
Daniel Avila
e0d5e75e73 fix: only give initialResponse unfinished true value when not a cancellable endpoint 2023-04-10 18:27:06 -04:00
Daniel D Orlando
fb7542c865 fix: fix infinite query failure when conversationId is not found 2023-04-10 14:55:39 -07:00
Daniel Avila
0bd240939a refactor(Message.jsx): remove cancelled message bubble and improve wording of unfinished message 2023-04-10 17:15:28 -04:00
Daniel Avila
31893ec9f6 chore: bump version to 0.3.3 in package.json files 2023-04-10 17:06:49 -04:00
Daniel Avila
78ae220f7e fix(Input): fix isNotAppendable condition to include isSubmitting variable
fix(Input): prevent submitting message when isSubmitting is true and Enter key is pressed
2023-04-10 17:03:11 -04:00
Wentao Lyu
fd0152e39f fix: typo 2023-04-11 03:50:37 +08:00
Wentao Lyu
f5f327e79e mark initial response as unfinished. 2023-04-11 03:42:05 +08:00
Wentao Lyu
9871127114 cleanup 2023-04-11 03:29:54 +08:00
Wentao Lyu
a5a0eab7f7 merge from dannya
feat: support unfinished messages.
2023-04-11 03:26:38 +08:00
Wentao Lyu
bbf2f8a6ca feat: support user-provided token to bingAI and chatgptBrowser 2023-04-10 14:51:38 +08:00
Daniel Avila
a953fc9f2b wip: feat: abort messages and continue conversation
fix(addToCache.js): remove unused variables and parameters
feat(addToCache.js): add message to cache with id, parentMessageId, role, and text
fix(askOpenAI.js): remove parentMessageId parameter from addToCache call
feat(MessageHandler.jsx): add latestMessage to store on cancel of submission, and generate messageId and parentMessageId for latestMessage
2023-04-09 22:21:27 -04:00
Daniel Avila
a81bd27b39 feat(api): add support for saving messages to database
fix(api): change arrowParens prettier option to always
fix(api): update addToCache to include endpointOption and latestMessage
fix(api): update askOpenAI to include endpointOption in abortControllers
fix(client): remove abortKey state and add currentParent state to MessageHandler
2023-04-09 11:17:08 -04:00
Daniel Avila
b59588c6ee refactor(messageHandler): sends all necessary data to cache/save unfinished response 2023-04-09 09:22:14 -04:00
Daniel Avila
828e438d53 feat(api-endpoints.ts): add abortRequest endpoint
feat(data-service.ts): add abortRequestWithMessage function
feat(react-query-service.ts): add useAbortRequestWithMessage hook
2023-04-09 09:21:04 -04:00
Daniel Avila
f946f90ef6 Merge branch 'main' into fix-sse 2023-04-09 07:54:06 -04:00
Daniel Avila
956d919751 fix(Messages/index.jsx): import lodash throttle function efficiently 2023-04-09 07:52:42 -04:00
Daniel Avila
4f1fc3f020 chore(package-lock.json): remove duplicate media-typer dependency and update its version to 0.3.0 in type-is and express dependencies. 2023-04-09 07:47:08 -04:00
Daniel Avila
c1b6f96bca Merge branch 'main' into fix-sse 2023-04-09 07:41:55 -04:00
Daniel Avila
50ec165f71 chore: update package versions to 0.3.2 2023-04-09 07:37:57 -04:00
Daniel Avila
83d0443c8a fix: page no longer refreshes on stop generating button 2023-04-09 07:32:07 -04:00
Daniel Avila
88aea81288 WIP: fix: fix abort messages and continue conversation on abort
feat(askOpenAI.js): add abort endpoint to cancel requests
feat(MessageHandler): add abort functionality to cancel requests
feat(submission.js): add lastResponse and source atoms to store
feat(handleSubmit.js): add stopGenerating function to cancel requests
2023-04-08 23:19:29 -04:00
Danny Avila
5fbefa15ce Merge pull request #171 from git-bruh/main
fix: replace various anchor tags with buttons to prevent text selection on repeated clicks
2023-04-08 08:38:41 -04:00
Daniel Avila
0f62be812a refactor(AdjustToneButton.jsx): replace svg icon with lucide-react Settings2 icon 2023-04-08 08:37:44 -04:00
Hyunggyu Jang
100be3b42f Make sydney tone adjustable 2023-04-08 13:29:08 +09:00
Daniel Avila
8b952be268 refactor(NewConversationMenu): remove unused imports and commented code
feat(NewConversationMenu): add support for deleting presets and creating new presets using data-provider
2023-04-07 22:11:28 -04:00
Daniel Avila
285351bb53 Merge branch 'main' into dano/react-query-typescript 2023-04-07 22:11:15 -04:00
Daniel D Orlando
bf4258c0a5 Add react query devtools 2023-04-07 16:13:00 -07:00
Daniel D Orlando
9a0e3804fa fix nav pagination 2023-04-07 10:16:53 -07:00
Wentao Lyu
96b004a696 feat: add animation to New Topic. 2023-04-08 00:14:15 +08:00
Danny Avila
d79d297441 Merge pull request #172 from danny-avila/dano/fix-vite-memory-allocation-issue
Fix: fix javascript heap out of memory error from vite
2023-04-07 10:44:48 -04:00
Daniel D Orlando
fd5fba45e6 remove unnecessary code 2023-04-07 07:36:28 -07:00
Daniel D Orlando
6e42d4fa3d Fix: fix javascript heap out of memory error from vite 2023-04-07 07:27:05 -07:00
Danny Avila
5ea8f75f70 Merge branch 'main' into dano/react-query-typescript 2023-04-07 10:19:13 -04:00
git-bruh
fc91ed49bc fix: replace various anchor tags with buttons to prevent text selection on repeated clicks 2023-04-07 19:25:30 +05:30
Daniel D Orlando
c983670b9e Fix bug - when clicking on title in search results, was not switching to conversation 2023-04-07 06:02:28 -07:00
Daniel D Orlando
e0f9e92bfc fix bad setState warning in console 2023-04-07 05:20:14 -07:00
Wentao Lyu
ca720efde8 fix: remove use-screenshot
feat: displat file type
2023-04-07 13:21:20 +08:00
Danny Avila
644ff160fc Merge branch 'main' into dano/react-query-typescript 2023-04-06 19:47:36 -04:00
Danny Avila
e1c6517b8f Merge pull request #164 from danny-avila/workflow
ci(playwright.yml): add Playwright tests workflow
2023-04-06 19:43:36 -04:00
Daniel Avila
24cb6d4013 fix: formatting for user messages 2023-04-06 18:58:56 -04:00
Daniel D Orlando
dccd766d91 remove unused import 2023-04-06 15:50:15 -07:00
Daniel D Orlando
d24abf6a2a Cleanup App.jsx 2023-04-06 15:42:39 -07:00
Daniel D Orlando
7b7ba96786 Move createPayload and sse to data-provider, create TSubmission type 2023-04-06 14:56:33 -07:00
Daniel D Orlando
0fb9820110 change fetchById to call getConversationById 2023-04-06 14:56:33 -07:00
Daniel D Orlando
c271f044c7 remove swr 2023-04-06 14:56:33 -07:00
Daniel D Orlando
ec2ddc168b delete fetchers.js 2023-04-06 14:56:33 -07:00