Commit Graph

282 Commits

Author SHA1 Message Date
Niek van der Maas db66749d70 Linting 2023-03-27 15:49:00 +02:00
Niek van der Maas a75fb02ed8 Re-add missing changes 2023-03-27 15:41:25 +02:00
Emil Elgaard be899ae570 add the prompt to the title of link. 2023-03-26 17:14:46 -04:00
Emil Elgaard c7e851e1a2 linting 2023-03-26 17:05:18 -04:00
Emil Elgaard d95152efe2 guard against deleting the last chat 2023-03-26 16:59:30 -04:00
Emil Elgaard 8075585778 add button to to delete an individual chat. 2023-03-26 16:49:15 -04:00
Emil Elgaard 4ee5d0e5f6 simplify deleteChat logic 2023-03-26 16:47:47 -04:00
Niek van der Maas 17a86d0538 Render HTML as code blocks, fixes #75 2023-03-24 16:55:10 +01:00
Niek van der Maas a58e94b207 Add missing preventDefault 2023-03-24 15:19:13 +01:00
Niek van der Maas ab90e64415 The href is needed to avoid warnings 2023-03-24 15:14:39 +01:00
Emil Elgaard f6f17bfd0d add confirmation prompt before deleting all chats 2023-03-24 09:57:42 -04:00
Niek van der Maas fddde9424b Better routing with conditions 2023-03-23 16:49:57 +01:00
Niek van der Maas f12bfc2b8c Cleaner code in main app 2023-03-23 16:13:55 +01:00
Niek van der Maas 7668c53744 Move messages to separate component, code cleanup 2023-03-23 15:56:15 +01:00
Niek van der Maas 53ce9abb61 Dropdown on click, not on hover 2023-03-23 14:15:50 +01:00
Niek van der Maas fe68d34d1c Add support for awesome prompts, fixes ChatGPT pre-written prompts #66 2023-03-23 13:00:30 +01:00
Niek van der Maas 2f57e6069f Support prompts CSV 2023-03-23 12:59:25 +01:00
Niek van der Maas fa1330a9a0 Merge commit '03e38559743c9b72821a98bf909585ea6d447623' as 'src/awesome-chatgpt-prompts' 2023-03-23 12:00:34 +01:00
Niek van der Maas 76ea3137c8 Remove progress bar, loading chat message 2023-03-22 23:08:02 +01:00
Niek van der Maas e16b052d86 Spacing 2023-03-22 22:28:43 +01:00
Niek van der Maas b701c7e74b Re-enable `flourite` with Safari/FF fix, bump deps, fixes #64 2023-03-22 11:33:25 +01:00
Niek van der Maas 1d6791cc3c Work on the SSE 2023-03-22 10:29:27 +01:00
Niek van der Maas 0aedc7e804
Merge pull request #62 from shivan2418/scroll_on_update_improvement
Improve scroll to bottom of page behavior
2023-03-22 09:40:43 +01:00
Niek van der Maas 1cea77fbb8 Make more robust 2023-03-22 09:40:25 +01:00
Niek van der Maas 8724455d96 Disable flourite for now, ref: #64 2023-03-22 09:28:59 +01:00
Niek van der Maas 8865b5095d Merge pull request #61 from Niek/all-contributors/add-shivan2418
docs: add shivan2418 as a contributor for design
2023-03-21 21:42:10 -04:00
Niek van der Maas ee80b9581f
Merge pull request #58 from shivan2418/footer_in_bottom
Footer at bottom of page always
2023-03-21 20:04:55 +01:00
Niek van der Maas 09a694f9d3 Make even smaller 2023-03-21 20:03:49 +01:00
Niek van der Maas 3c60d2c40d Use existing div 2023-03-21 20:02:43 +01:00
Niek van der Maas 81b172442f Add title to type, add to model too 2023-03-21 19:50:22 +01:00
Emil Elgaard e84ebf8a2d add tooltip to each of the chat settings. Show the info about the settings from the official documentation. 2023-03-21 14:11:15 -04:00
Emil Elgaard a31912650f Make the footer be in the bottom of the page always, even if there is not enough content to push it down. 2023-03-21 13:23:56 -04:00
Niek van der Maas 7924dd8bca Add language auto-detection, add YAML, more shell languages 2023-03-21 15:52:28 +01:00
Niek van der Maas b6d2e4d1af Add correct pricing for GTP-4 model, store model in message 2023-03-21 12:20:25 +01:00
Niek van der Maas 42788a2911 FIx default API base 2023-03-21 08:53:11 +01:00
ryanhex53 05c297f096
Merge branch 'Niek:main' into main 2023-03-21 08:45:09 +08:00
ryanhex53 5e5a7a7473 load api base url from env; 2023-03-21 08:44:09 +08:00
ryanhex53 bd719a9480 fix textarea sizing problem;
move down send btn while textbox high;
2023-03-21 07:50:09 +08:00
Niek van der Maas 1691cfbe30 Fix assistant message width, closes #54 2023-03-20 22:13:32 +01:00
Niek van der Maas 3c3e1013eb Rename chat dialog enhancements 2023-03-20 18:39:03 +01:00
Niek van der Maas f46d2e5a62 Get rid off adapter 2023-03-20 16:17:48 +01:00
Niek van der Maas 568c2d16ab Remove linting diff 2023-03-20 15:58:14 +01:00
Niek van der Maas 0571a79886 Merge branch 'main' into pr/terryoy/41 2023-03-20 15:51:32 +01:00
Niek van der Maas c5fd70df5f More linting 2023-03-20 15:47:11 +01:00
Niek van der Maas 5fb12c1f41 Linting 2023-03-20 15:35:07 +01:00
Niek van der Maas aa6bc9d0ab Merge branch 'main' into pr/terryoy/41 2023-03-20 14:34:46 +01:00
Niek van der Maas 0d2e3109e8 Fix #36 - added ESlint config with ts-standard + svelte support 2023-03-20 13:42:47 +01:00
Niek van der Maas e901f14971 Better model selection support 2023-03-17 18:33:23 +01:00
Niek van der Maas 6723445e90 Add decimal inputmode 2023-03-17 18:29:22 +01:00
Niek van der Maas dedb95c343 Improve settings, allow model selection, fixes Suggestions: model choices, horizontal sliders with min/max value in settings #44 2023-03-17 18:03:07 +01:00
Niek van der Maas 7718f9d37f Add sticking side menu 2023-03-17 14:37:28 +01:00
Niek van der Maas 181353b7af Make TS happy 2023-03-17 14:32:32 +01:00
Niek van der Maas b75ca46565 Delete accidentally committed file 2023-03-17 14:02:50 +01:00
Niek van der Maas 6750a93cdb Linting 2023-03-17 14:00:54 +01:00
Dan Brown ad8aa1bdf0
Added hash-based routing using svelte-spa-router 2023-03-16 15:57:24 +00:00
terryoy 1abadf70fd fix: local dev 2023-03-13 18:47:44 +08:00
Niek van der Maas a517ae588b Do not mangle email addresses 2023-03-13 11:42:22 +01:00
Niek van der Maas 93b997d620 Fix API keys URL 2023-03-13 11:39:02 +01:00
terryoy e04b703615 add: tauri init 2023-03-13 18:19:57 +08:00
Niek van der Maas 9e1de9865f Fix PurgeCSS style for copy code block 2023-03-13 09:36:21 +01:00
Niek van der Maas 6909b3afa7 Small fixes, make use of Bulma classes 2023-03-13 09:13:32 +01:00
Niek van der Maas 6da77ed236 Linting 2023-03-13 09:13:13 +01:00
littlemoonstones 257cddd769 make the copy function more svelte-like 2023-03-12 17:07:43 +08:00
littlemoonstones 9b68ec3f45 move to Code.svelte 2023-03-12 16:22:43 +08:00
Niek van der Maas 52593b4120 Merge branch 'features' of github.com:littlemoonstones/chatgpt-web into pr/littlemoonstones/35 2023-03-12 08:13:39 +01:00
Niek van der Maas b4ab40a869 Revert scrolling, fix linting 2023-03-12 08:10:58 +01:00
littlemoonstones 87a8fdc1d4 chat room is scrollable 2023-03-12 14:22:43 +08:00
littlemoonstones 66c0fe57df add copy function 2023-03-12 13:43:19 +08:00
Niek van der Maas a23d0a5f73 Add support for highlighting code, fixes #32 2023-03-10 11:17:01 +01:00
Niek van der Maas 4dd2a16d07 Fix sidebar active link highlight 2023-03-10 11:15:22 +01:00
Niek van der Maas 47019dafb2 Add support for dark mode, fixes #30 2023-03-09 09:46:11 +01:00
Niek van der Maas bab6028893 Strip whitespace 2023-03-08 13:59:20 +01:00
littlemoonstones 897d2a90be add a new function: export messages as markdown' 2023-03-08 11:12:06 +08:00
Niek van der Maas 6c71422bdc Small fixes for speech recognition 2023-03-07 16:48:20 +01:00
Niek van der Maas 988b08a93c Fix Ordered list indices alignment #20 2023-03-07 15:41:45 +01:00
Niek van der Maas a2c1b3160f Get rid of annoying TS warning 2023-03-07 15:38:04 +01:00
Niek van der Maas be8f54ebcc Add speech recognition + TTS support 2023-03-07 15:36:01 +01:00
Niek van der Maas ac9ca6e47e Add clear settings button 2023-03-06 20:47:50 +01:00
Niek van der Maas ce931c609a Properly parse errors 2023-03-06 20:46:05 +01:00
Niek van der Maas 117f6f2a39 Add chat settings 2023-03-06 20:39:14 +01:00
Niek van der Maas da7d5232cc Separate system from error messages 2023-03-06 19:28:06 +01:00
Niek van der Maas 97432612bb
Merge pull request #19 from Michael-Tanzer/delete-chats
added option to delete individual chat
2023-03-06 19:25:19 +01:00
Niek van der Maas c05fb7379d Add type for request too 2023-03-06 19:11:00 +01:00
Niek van der Maas 1ca762bcc0 Add better types for `responses` 2023-03-06 19:06:16 +01:00
Michael Tanzer cf15adad9d added option to delete individual chat 2023-03-06 17:58:27 +00:00
Niek van der Maas 840851a35b Skip system messages 2023-03-06 18:51:16 +01:00
Niek van der Maas 86bb7f1001 Add try/catch around `fetch()`, style system messages correctly 2023-03-06 18:48:13 +01:00
Niek van der Maas 3ff30b4ccb Save chat name after suggestion 2023-03-06 18:42:43 +01:00
Niek van der Maas d03f750b01 Better alignment on mobile 2023-03-06 18:21:08 +01:00
Niek van der Maas eddfd99636 Added chat name suggestion function 2023-03-06 16:46:45 +01:00
Niek van der Maas c1983d23d9 Reset line bar height also after clicking "Send" 2023-03-06 16:24:51 +01:00
Niek van der Maas 3d13f16b5c Make 90% instead of 70% 2023-03-06 16:20:31 +01:00
Michael Tanzer 63a64417f1 Merge branch 'main' into chat-like-conversation 2023-03-06 15:15:14 +00:00
Niek van der Maas d512aa83bc Allow passing in the API key as a query parameter 2023-03-06 16:14:22 +01:00
Michael Tanzer 9699d31b5f Merge branch 'main' into chat-like-conversation
# Conflicts:
#	src/lib/Chat.svelte
2023-03-06 15:14:19 +00:00
Michael Tanzer bf60472cdd Fixed left-align issue, made conversation look like a chat 2023-03-06 15:12:23 +00:00
Niek van der Maas ac786b3dc8 Better container size on both mobile and desktop 2023-03-06 16:11:16 +01:00
Niek van der Maas b7fa95b0f3 Trim empty lines 2023-03-06 16:04:42 +01:00
Niek van der Maas f2fd3664a4 Left-align user message if more than 1 line, fixes #15 2023-03-06 15:58:12 +01:00
Niek van der Maas 3b35868a06 Switch to `svelte-markdown` 2023-03-06 14:15:52 +01:00
Niek van der Maas 54c199c8bf Swap border on user messages 2023-03-06 13:54:51 +01:00
Niek van der Maas 928326bf6b Disable autocomplete on API key 2023-03-06 13:54:41 +01:00
Niek van der Maas aa521d5a19 Use class directive 2023-03-06 11:57:38 +01:00
Niek van der Maas c2180589ac Make API key a password, fix #6 2023-03-06 10:00:45 +01:00
Niek van der Maas 2a725adfa5 Fix code-aligning to the left, max column size - fixes #13 2023-03-06 08:50:00 +01:00
Niek van der Maas c89bb88602 Set default marked options 2023-03-06 08:48:35 +01:00
Niek van der Maas c854c82d6e Remove TS ignore 2023-03-06 08:23:08 +01:00
Niek van der Maas 7828b71c55 Backwards compatible to old chats 2023-03-05 21:14:59 +01:00
Niek van der Maas 48ce3d96af Add auti-resizing input 2023-03-05 16:54:57 +01:00
Niek van der Maas 0074ff0de1 Allow multi-line input, fix #7 2023-03-05 16:40:19 +01:00
Michael Tanzer bb9509aa64 Revert "Attempt at tree-like chat management"
This reverts commit e27cb0a9
2023-03-05 14:59:02 +00:00
Michael Tanzer 08db5da7db Revert "Fixed issue where messages where not showing correctly. This commit should be 100% backward compatible with the previous implementation of the chat history assuming no edits."
This reverts commit ec4274c6
2023-03-05 14:58:21 +00:00
Michael Tanzer c6168ef4cb Fixed issue that caused the chat to be called "null" if a user submitted an empty prompt. Made the edit button more visible by making it appear when hovering on the whole chat name header element. 2023-03-05 14:54:42 +00:00
Niek van der Maas 507a35853c Add chat renaming support, fix #8 2023-03-05 15:12:42 +01:00
Niek van der Maas 634550ea3d Add response type 2023-03-03 19:29:56 +01:00
Niek van der Maas b0a638bfb5 Better edit message button 2023-03-03 19:22:16 +01:00
Niek van der Maas cd2b9b9a88 Prepare adding edit functionality #3 2023-03-03 17:20:10 +01:00
Niek van der Maas baac66327e Better aligning 2023-03-03 16:46:13 +01:00
Niek van der Maas ae01da3556 Click on logo = reload 2023-03-03 15:25:47 +01:00
Niek van der Maas 3c778e5a91 Linting (width 120) 2023-03-03 15:17:45 +01:00
Niek van der Maas de60734234 Forgotten `href` and `li` 2023-03-03 15:15:59 +01:00
Niek van der Maas 0b8e5b4c67 Add aria label 2023-03-03 15:11:08 +01:00
Niek van der Maas 2608ad32e6 Remove missing href warnings 2023-03-03 15:06:24 +01:00
Niek van der Maas c98d83c2ef Minify SVG 2023-03-03 14:58:28 +01:00
Niek van der Maas 4f8dcc4d4b Text changes 2023-03-03 14:51:40 +01:00
Niek van der Maas 23fbc24c6e Greyscale emojis, better home 2023-03-03 14:19:57 +01:00
Niek van der Maas 06a383227a Use separate Svelte components 2023-03-03 14:11:17 +01:00
Niek van der Maas 5993c832ea Better API key saving and checks 2023-03-03 11:18:28 +01:00
Niek van der Maas 7f7d2e1591 Added some more info on start page 2023-03-02 23:03:57 +04:00
Niek van der Maas 8b4e60faef Use scss 2023-03-02 22:41:46 +04:00
Niek van der Maas f98cbc931f Add footer 2023-03-02 22:41:41 +04:00
Niek van der Maas d4e3c40df1 Initial commit 2023-03-02 22:12:55 +04:00