From ebef1648be165bad707d6236ec0216fb360bc61e Mon Sep 17 00:00:00 2001 From: backryun Date: Sun, 17 May 2026 05:39:44 +0900 Subject: [PATCH] chore: Imporve cohere provider support (#2313) Integrated into release/v3.8.0 --- open-sse/config/audioRegistry.ts | 8 ++++++++ open-sse/config/embeddingRegistry.ts | 14 ++++++++++++++ open-sse/config/providerRegistry.ts | 15 ++++++++------- open-sse/config/rerankRegistry.ts | 3 ++- 4 files changed, 32 insertions(+), 8 deletions(-) diff --git a/open-sse/config/audioRegistry.ts b/open-sse/config/audioRegistry.ts index 359214aabb..197b66aaf2 100644 --- a/open-sse/config/audioRegistry.ts +++ b/open-sse/config/audioRegistry.ts @@ -34,6 +34,14 @@ export const AUDIO_TRANSCRIPTION_PROVIDERS: Record = { ], }, + 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", diff --git a/open-sse/config/embeddingRegistry.ts b/open-sse/config/embeddingRegistry.ts index b09cec2e84..f7370ac1b8 100644 --- a/open-sse/config/embeddingRegistry.ts +++ b/open-sse/config/embeddingRegistry.ts @@ -46,6 +46,20 @@ export function buildDynamicEmbeddingProvider(node: EmbeddingProviderNodeRow): E } export const EMBEDDING_PROVIDERS: Record = { + 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", diff --git a/open-sse/config/providerRegistry.ts b/open-sse/config/providerRegistry.ts index 0053f604ad..16a157df5f 100644 --- a/open-sse/config/providerRegistry.ts +++ b/open-sse/config/providerRegistry.ts @@ -1000,14 +1000,13 @@ export const REGISTRY: Record = { 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 = { { 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)" }, ], }, diff --git a/open-sse/config/rerankRegistry.ts b/open-sse/config/rerankRegistry.ts index b075bf4357..dd035d07c6 100644 --- a/open-sse/config/rerankRegistry.ts +++ b/open-sse/config/rerankRegistry.ts @@ -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" }, ], },