Commit Graph

523 Commits

Author SHA1 Message Date
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 a57f65ff9e
Merge pull request #17 from Michael-Tanzer/chat-like-conversation
Chat-like conversation, all right-aligned
2023-03-06 16:20:45 +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 a9de117fc6 Safelist pre and code blocks 2023-03-06 09:23:06 +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
Niek van der Maas 11d72389a8
Merge pull request #10 from Niek/all-contributors/add-Michael-Tanzer
docs: add Michael-Tanzer as a contributor for ideas, and code
2023-03-05 16:13:09 +01:00
Niek van der Maas 0c7cfacf63
Merge branch 'main' into all-contributors/add-Michael-Tanzer 2023-03-05 16:12:55 +01:00
Niek van der Maas 41fd652aa0
Merge pull request #11 from Michael-Tanzer/chat-rename-bugfix
Chat rename bugfix
2023-03-05 16:08:15 +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 313097a019
Merge pull request #9 from Niek/all-contributors/add-petergeneric
docs: add petergeneric as a contributor for ideas
2023-03-05 15:21:52 +01:00
allcontributors[bot] 4747c66b14
docs: update .all-contributorsrc 2023-03-05 14:21:44 +00:00
allcontributors[bot] 69775c6c83
docs: update README.md 2023-03-05 14:21:43 +00:00
allcontributors[bot] 903a4e0909
docs: update .all-contributorsrc 2023-03-05 14:21:10 +00:00
allcontributors[bot] 0eefab5feb
docs: update README.md 2023-03-05 14:21:09 +00:00
Niek van der Maas 1868896c7f Add contributors 2023-03-05 15:19:46 +01: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 5a0d6b7561 Only run PurgeCSS in production builds 2023-03-03 16:56:19 +01:00
Niek van der Maas baac66327e Better aligning 2023-03-03 16:46:13 +01:00
Niek van der Maas 82aae80e67 Inline PostCSS config 2023-03-03 16:46:05 +01:00
Niek van der Maas e91197744f Add task to run dev server 2023-03-03 16:45:51 +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