diff --git a/packages/core/src/family.ts b/packages/core/src/family.ts index 711c5b39d..1529cec32 100644 --- a/packages/core/src/family.ts +++ b/packages/core/src/family.ts @@ -368,6 +368,10 @@ export const ModelFamilyValues = [ // Writer "palmyra", + + // GigaChat + "gigachat-llm", + "gigachat-embedding" ] as const; export const ModelFamily = z.enum(ModelFamilyValues); diff --git a/providers/gigachat/logo.svg b/providers/gigachat/logo.svg new file mode 100644 index 000000000..0d7834d2f --- /dev/null +++ b/providers/gigachat/logo.svg @@ -0,0 +1,3 @@ + + + diff --git a/providers/gigachat/models/embeddings-2.toml b/providers/gigachat/models/embeddings-2.toml new file mode 100644 index 000000000..30250e712 --- /dev/null +++ b/providers/gigachat/models/embeddings-2.toml @@ -0,0 +1,17 @@ +name = "Embeddings-2" +family = "gigachat-embedding" +release_date = "2024-06" +last_updated = "2024-06" +attachment = false +reasoning = false +temperature = false +tool_call = false +open_weights = false + +[limit] +context = 512 +output = 1_024 + +[modalities] +input = ["text"] +output = ["text"] diff --git a/providers/gigachat/models/embeddings.toml b/providers/gigachat/models/embeddings.toml new file mode 100644 index 000000000..4a5d948d1 --- /dev/null +++ b/providers/gigachat/models/embeddings.toml @@ -0,0 +1,17 @@ +name = "Embeddings" +family = "gigachat-embedding" +release_date = "2024-06" +last_updated = "2024-06" +attachment = false +reasoning = false +temperature = false +tool_call = false +open_weights = false + +[limit] +context = 512 +output = 1_024 + +[modalities] +input = ["text"] +output = ["text"] diff --git a/providers/gigachat/models/embeddingsgigar.toml b/providers/gigachat/models/embeddingsgigar.toml new file mode 100644 index 000000000..8bfc6095c --- /dev/null +++ b/providers/gigachat/models/embeddingsgigar.toml @@ -0,0 +1,17 @@ +name = "EmbeddingsGigaR" +family = "gigachat-embedding" +release_date = "2025-06" +last_updated = "2025-06" +attachment = false +reasoning = false +temperature = false +tool_call = false +open_weights = false + +[limit] +context = 4_096 +output = 2_560 + +[modalities] +input = ["text"] +output = ["text"] diff --git a/providers/gigachat/models/gigachat-2-max.toml b/providers/gigachat/models/gigachat-2-max.toml new file mode 100644 index 000000000..93aa86267 --- /dev/null +++ b/providers/gigachat/models/gigachat-2-max.toml @@ -0,0 +1,17 @@ +name = "GigaChat-2-Max" +family = "gigachat-llm" +release_date = "2025-03-13" +last_updated = "2025-04-15" +attachment = true +reasoning = false +temperature = true +tool_call = true +open_weights = false + +[limit] +context = 128_000 +output = 128_000 + +[modalities] +input = ["text", "image", "audio"] +output = ["text", "image"] diff --git a/providers/gigachat/models/gigachat-2-pro.toml b/providers/gigachat/models/gigachat-2-pro.toml new file mode 100644 index 000000000..cb9c0098d --- /dev/null +++ b/providers/gigachat/models/gigachat-2-pro.toml @@ -0,0 +1,17 @@ +name = "GigaChat-2-Pro" +family = "gigachat-llm" +release_date = "2025-03-13" +last_updated = "2025-04-15" +attachment = true +reasoning = false +temperature = true +tool_call = true +open_weights = false + +[limit] +context = 128_000 +output = 128_000 + +[modalities] +input = ["text", "image", "audio"] +output = ["text", "image"] diff --git a/providers/gigachat/models/gigachat-2.toml b/providers/gigachat/models/gigachat-2.toml new file mode 100644 index 000000000..b0c4baa43 --- /dev/null +++ b/providers/gigachat/models/gigachat-2.toml @@ -0,0 +1,17 @@ +name = "GigaChat-2" +family = "gigachat-llm" +release_date = "2025-03-13" +last_updated = "2025-04-15" +attachment = false +reasoning = false +temperature = true +tool_call = true +open_weights = false + +[limit] +context = 128_000 +output = 128_000 + +[modalities] +input = ["text"] +output = ["text", "image"] diff --git a/providers/gigachat/models/gigaembeddings-3b-2025-09.toml b/providers/gigachat/models/gigaembeddings-3b-2025-09.toml new file mode 100644 index 000000000..e863c3b12 --- /dev/null +++ b/providers/gigachat/models/gigaembeddings-3b-2025-09.toml @@ -0,0 +1,17 @@ +name = "GigaEmbeddings-3B-2025-09" +family = "gigachat-embedding" +release_date = "2025-09" +last_updated = "2025-09" +attachment = false +reasoning = false +temperature = false +tool_call = false +open_weights = false + +[limit] +context = 4_096 +output = 2_048 + +[modalities] +input = ["text"] +output = ["text"] diff --git a/providers/gigachat/provider.toml b/providers/gigachat/provider.toml new file mode 100644 index 000000000..873969ce1 --- /dev/null +++ b/providers/gigachat/provider.toml @@ -0,0 +1,5 @@ +name = "GigaChat" +env = ["GIGACHAT_SCOPE", "GIGACHAT_CREDENTIALS"] +npm = "@ai-sdk/openai-compatible" +api = "https://gigachat.devices.sberbank.ru/api/v1" +doc = "https://developers.sber.ru/docs/en/gigachat/models/main"