Merge pull request #4 from vidluther/add-gpt4o-mini-and-claude3.5-sonnet

 feat(desktop): add new OpenAI and Anthropic model options
This commit is contained in:
Vid Luther 2024-08-04 11:26:05 -05:00 committed by GitHub
commit ee6a13c093
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 15 additions and 3 deletions

View File

@ -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',
Claude35Sonnet = 'claude-3.5-sonnet-20240620'
}
export enum MessageRole {

View File

@ -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: 'Claude 3.5 Sonnet',
value: AnthropicModelName.Claude35Sonnet
}
];