diff --git a/apps/desktop/src/lib/ai/types.ts b/apps/desktop/src/lib/ai/types.ts index cbcc6da08..c574815ad 100644 --- a/apps/desktop/src/lib/ai/types.ts +++ b/apps/desktop/src/lib/ai/types.ts @@ -7,17 +7,21 @@ export enum ModelKind { Ollama = 'ollama' } +// https://platform.openai.com/docs/models export enum OpenAIModelName { GPT35Turbo = 'gpt-3.5-turbo', GPT4 = 'gpt-4', GPT4Turbo = 'gpt-4-turbo', - GPT4o = 'gpt-4o' + GPT4o = 'gpt-4o', + GPT4oMini = 'gpt-4o-mini' } +// https://docs.anthropic.com/en/docs/about-claude/models export enum AnthropicModelName { Opus = 'claude-3-opus-20240229', Sonnet = 'claude-3-sonnet-20240229', - Haiku = 'claude-3-haiku-20240307' + Haiku = 'claude-3-haiku-20240307', + Sonnet35 = 'claude-3-5-sonnet-20240620' } export enum MessageRole { diff --git a/apps/desktop/src/routes/settings/ai/+page.svelte b/apps/desktop/src/routes/settings/ai/+page.svelte index ea23aaac4..1faa677ca 100644 --- a/apps/desktop/src/routes/settings/ai/+page.svelte +++ b/apps/desktop/src/routes/settings/ai/+page.svelte @@ -109,8 +109,12 @@ value: OpenAIModelName.GPT4Turbo }, { - label: 'GPT 4 Omni', + label: 'GPT 4o', value: OpenAIModelName.GPT4o + }, + { + label: 'GPT 4o mini', + value: OpenAIModelName.GPT4oMini } ]; @@ -126,6 +130,10 @@ { label: 'Haiku', value: AnthropicModelName.Haiku + }, + { + label: 'Sonnet 3.5', + value: AnthropicModelName.Sonnet35 } ];