chore: Imporve cohere provider support (#2313)

Integrated into release/v3.8.0
This commit is contained in:
backryun
2026-05-17 05:39:44 +09:00
committed by GitHub
parent f80de415ec
commit ebef1648be
4 changed files with 32 additions and 8 deletions

View File

@@ -34,6 +34,14 @@ export const AUDIO_TRANSCRIPTION_PROVIDERS: Record<string, AudioProvider> = {
],
},
cohere: {
id: "cohere",
baseUrl: "https://api.cohere.com/v2/audio/transcriptions",
authType: "apikey",
authHeader: "bearer",
models: [{ id: "cohere-transcribe-03-2026", name: "Cohere Transcribe 2026-03" }],
},
groq: {
id: "groq",
baseUrl: "https://api.groq.com/openai/v1/audio/transcriptions",

View File

@@ -46,6 +46,20 @@ export function buildDynamicEmbeddingProvider(node: EmbeddingProviderNodeRow): E
}
export const EMBEDDING_PROVIDERS: Record<string, EmbeddingProvider> = {
cohere: {
id: "cohere",
baseUrl: "https://api.cohere.com/v2/embed",
authType: "apikey",
authHeader: "bearer",
models: [
{ id: "embed-v4.0", name: "Embed v4.0 Pro" },
{ id: "embed-multilingual-v3.0", name: "Embed Multilingual v3.0" },
{ id: "embed-multilingual-v3.0-images", name: "Embed Multilingual v3.0 Image" },
{ id: "embed-multilingual-light-v3.0", name: "Embed Multilingual Light v3.0" },
{ id: "embed-multilingual-light-v3.0-images", name: "Embed Multilingual Light v3.0 Image" },
],
},
nebius: {
id: "nebius",
baseUrl: "https://api.tokenfactory.nebius.com/v1/embeddings",

View File

@@ -1000,14 +1000,13 @@ export const REGISTRY: Record<string, RegistryEntry> = {
authHeader: "bearer",
defaultContextLength: 128000,
models: [
{ id: "gpt-5.5", name: "GPT-5.5" },
{ id: "gpt-5.4", name: "GPT-5.4" },
{ id: "gpt-5.4-mini", name: "GPT-5.4 Mini" },
{ id: "gpt-5.4-nano", name: "GPT-5.4 Nano" },
{ id: "gpt-4.1", name: "GPT-4.1" },
{ id: "gpt-4o", name: "GPT-4o", contextLength: 128000 },
{ id: "gpt-5.5", name: "GPT-5.5", contextLength: 1050000 },
{ id: "gpt-5.4", name: "GPT-5.4", contextLength: 1050000 },
{ id: "gpt-5.4-mini", name: "GPT-5.4 Mini", contextLength: 400000 },
{ id: "gpt-5.4-nano", name: "GPT-5.4 Nano", contextLength: 400000 },
{ id: "gpt-4.1", name: "GPT-4.1", contextLength: 1047576 },
{ id: "gpt-4o-2024-11-20", name: "GPT-4o (Nov 2024)", contextLength: 128000 },
{ id: "o3", name: "O3", unsupportedParams: REASONING_UNSUPPORTED },
{ id: "o3", name: "O3", contextLength: 200000, unsupportedParams: REASONING_UNSUPPORTED },
],
},
@@ -2034,6 +2033,8 @@ export const REGISTRY: Record<string, RegistryEntry> = {
{ id: "command-a-reasoning-08-2025", name: "Command A Reasoning (Aug 2025)" },
{ id: "command-a-vision-07-2025", name: "Command A Vision (Jul 2025)" },
{ id: "command-a-03-2025", name: "Command A (Mar 2025)" },
{ id: "command-r7b-12-2024", name: "Command R7B (Dec 2024)" },
{ id: "command-r-plus-08-2024", name: "Command R Plus (Aug 2024)" },
{ id: "command-r-08-2024", name: "Command R (Aug 2024)" },
],
},

View File

@@ -15,8 +15,9 @@ export const RERANK_PROVIDERS = {
authType: "apikey",
authHeader: "bearer",
models: [
{ id: "rerank-v4.0-pro", name: "Rerank v4.0 Pro" },
{ id: "rerank-v4.0-fast", name: "Rerank v4.0 Fast" },
{ id: "rerank-v3.5", name: "Rerank v3.5" },
{ id: "rerank-english-v3.0", name: "Rerank English v3.0" },
{ id: "rerank-multilingual-v3.0", name: "Rerank Multilingual v3.0" },
],
},