mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-12-25 02:26:14 +03:00
✨ feat(desktop): add new OpenAI and Anthropic model options
The changes introduced in this commit add new OpenAI and Anthropic model options to the AI settings page in the desktop application. Specifically, the following changes were made: - Added 'GPT 4o mini' as a new OpenAI model option - Added 'Claude 3.5 Sonnet' as a new Anthropic model option - Updated the labels for existing model options to improve clarity and readability These changes provide users with more choices when selecting the AI model they want to use, allowing them to better tailor the application to their specific needs and preferences.
This commit is contained in:
parent
48d2e8baea
commit
2b9da0d6d8
@ -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',
|
||||
Claud35Sonnet = 'claude-3.5-sonnet-20240620',
|
||||
}
|
||||
|
||||
export enum MessageRole {
|
||||
|
@ -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
|
||||
}
|
||||
];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user