From db0daf56f56e81653af735c6637511ae9d7811ca Mon Sep 17 00:00:00 2001 From: Vid Luther Date: Thu, 16 May 2024 10:11:32 -0500 Subject: [PATCH] Remove AISettings.svelte Remove AISettings.svelte as it has been replaced with src/routes/ai/+page.svelte --- app/src/lib/components/AISettings.svelte | 310 ----------------------- 1 file changed, 310 deletions(-) delete mode 100644 app/src/lib/components/AISettings.svelte diff --git a/app/src/lib/components/AISettings.svelte b/app/src/lib/components/AISettings.svelte deleted file mode 100644 index 402501ae1..000000000 --- a/app/src/lib/components/AISettings.svelte +++ /dev/null @@ -1,310 +0,0 @@ - - - -

- GitButler supports multiple providers for its AI powered features. We currently support models - from OpenAI and Anthropic either proxied through the GitButler API, or in a bring your own key - configuration. -

- -{#if !$user} - - You must be logged in to use the GitButler API - -{/if} - -
onFormChange(e.currentTarget)}> - - Open AI - - - - - {#if modelKind == ModelKind.OpenAI} - -
- - - {#if openAIKeyOption == KeyOption.ButlerAPI} - - - GitButler uses OpenAI API for commit messages and branch names - - - {/if} - - {#if openAIKeyOption == KeyOption.BringYourOwn} - - - - {:else if !$user} - - {/if} -
-
- {/if} - - - Anthropic - - - - - {#if modelKind == ModelKind.Anthropic} - -
- - - {#if anthropicKeyOption == KeyOption.ButlerAPI} - - - GitButler uses OpenAI API for commit messages and branch names - - - {/if} - - {#if anthropicKeyOption == KeyOption.BringYourOwn} - - - - {:else if !$user} - - {/if} -
-
- {/if} - - - Custom Endpoint - - - - Support for custom AI endpoints is coming soon! - -
- - - - - Amount of provided context - - How many characters of your git diff should be provided to AI - - - { - diffLengthLimit = parseInt(e.detail); - }} - placeholder="5000" - /> - - - -