cleaner select options for managing models

This commit is contained in:
Martin McKeaveney 2024-09-03 19:51:53 +01:00
parent d3b90a0253
commit 4d873ae75e
1 changed files with 19 additions and 17 deletions

View File

@ -2,39 +2,41 @@ export const Providers = {
OpenAI: { OpenAI: {
name: "OpenAI", name: "OpenAI",
models: [ models: [
"gpt-4o-mini", {label: "GPT 4o Mini", value: "gpt-4o-mini" },
"gpt-4o", {label: "GPT 4o", value: "gpt-4o" },
"gpt-3.5-turbo", {label: "GPT 4 Turbo", value: "gpt-4-turbo" },
"chatgpt-4o-latest", {label: "GPT 4", value: "gpt-4" },
"gpt-4-turbo", {label: "GPT 3.5 Turbo", value: "gpt-3.5-turbo" },
"gpt-4",
] ]
}, },
Anthropic: { Anthropic: {
name: "Anthropic", name: "Anthropic",
models: [ models: [
"claude-3-5-sonnet-20240620", {label: "Claude 3.5 Sonnet", value: "claude-3-5-sonnet-20240620" },
"claude-3-sonnet-20240229", {label: "Claude 3 Sonnet", value: "claude-3-sonnet-20240229" },
"claude-3-opus-20240229", {label: "Claude 3 Opus", value: "claude-3-opus-20240229" },
"claude-3-haiku-20240307" {label: "Claude 3 Haiku", value: "claude-3-haiku-20240307" },
] ]
}, },
TogetherAI: { TogetherAI: {
name: "Together AI", name: "Together AI",
// TODO: too many - probably need to use an autocomplete for this // TODO: too many - probably need to use an autocomplete for this
models: [ models: [
"gpt-4o-mini", {label: "GPT 4o Mini", value: "gpt-4o-mini" },
"gpt-4o", {label: "GPT 4o", value: "gpt-4o" },
"gpt-3.5-turbo", {label: "GPT 4 Turbo", value: "gpt-4-turbo" },
"chatgpt-4o-latest", {label: "GPT 4", value: "gpt-4" },
"gpt-4-turbo", {label: "GPT 3.5 Turbo", value: "gpt-3.5-turbo" },
"gpt-4",
] ]
}, },
AzureOpenAI: { AzureOpenAI: {
name: "Azure Open AI", name: "Azure Open AI",
models: [ models: [
"gpt-4o-mini", {label: "GPT 4o Mini", value: "gpt-4o-mini" },
{label: "GPT 4o", value: "gpt-4o" },
{label: "GPT 4 Turbo", value: "gpt-4-turbo" },
{label: "GPT 4", value: "gpt-4" },
{label: "GPT 3.5 Turbo", value: "gpt-3.5-turbo" },
] ]
}, },
Custom: { Custom: {