diff --git a/eslint.config.js b/eslint.config.js index 826df7d..2826297 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -41,6 +41,7 @@ export default ts.config( ], }, ], + 'svelte/require-each-key': 'off', }, }, { diff --git a/src/lib/components/icons/cohere.svelte b/src/lib/components/icons/cohere.svelte new file mode 100644 index 0000000..0500afc --- /dev/null +++ b/src/lib/components/icons/cohere.svelte @@ -0,0 +1,27 @@ + + +Cohere diff --git a/src/lib/components/icons/deepseek.svelte b/src/lib/components/icons/deepseek.svelte new file mode 100644 index 0000000..4f3375f --- /dev/null +++ b/src/lib/components/icons/deepseek.svelte @@ -0,0 +1,17 @@ + + +DeepSeek diff --git a/src/lib/utils/array.ts b/src/lib/utils/array.ts index 9f7d58d..bd3aaee 100644 --- a/src/lib/utils/array.ts +++ b/src/lib/utils/array.ts @@ -112,3 +112,7 @@ export function* iterate(array: T[]): Generator> { ]; } } + +export function last(arr: T[]): T | undefined { + return arr[arr.length - 1]; +} diff --git a/src/routes/chat/+page.svelte b/src/routes/chat/+page.svelte index fb2a0f8..86f5aec 100644 --- a/src/routes/chat/+page.svelte +++ b/src/routes/chat/+page.svelte @@ -79,7 +79,7 @@ {/if}

- {#each Object.entries(suggestionCategories) as [category, opts]} + {#each Object.entries(suggestionCategories) as [category, opts] (category)}