diff --git a/core/config/types.ts b/core/config/types.ts index 625f4812f..668cb3685 100644 --- a/core/config/types.ts +++ b/core/config/types.ts @@ -605,7 +605,8 @@ declare global { | "sambanova" | "nvidia" | "nebius" - | "siliconflow"; + | "siliconflow" + | "scaleway"; export type ModelName = | "AUTODETECT" @@ -663,6 +664,7 @@ declare global { | "gemma2-2b-it" | "gemma2-9b-it" | "olmo-7b" + | "qwen25-coder-32b" // Anthropic | "claude-3-5-sonnet-latest" | "claude-3-5-sonnet-20240620" diff --git a/core/control-plane/schema.ts b/core/control-plane/schema.ts index 4aae9f3cc..9fcdd2219 100644 --- a/core/control-plane/schema.ts +++ b/core/control-plane/schema.ts @@ -18,6 +18,7 @@ const modelDescriptionSchema = z.object({ "azure", "nebius", "siliconflow", + "scaleway", ]), model: z.string(), apiKey: z.string().optional(), @@ -86,6 +87,7 @@ const embeddingsProviderSchema = z.object({ "gemini", "nebius", "siliconflow", + "scaleway", ]), apiBase: z.string().optional(), apiKey: z.string().optional(), diff --git a/core/indexing/allEmbeddingsProviders.ts b/core/indexing/allEmbeddingsProviders.ts index b50aa91f9..9efa37f2d 100644 --- a/core/indexing/allEmbeddingsProviders.ts +++ b/core/indexing/allEmbeddingsProviders.ts @@ -13,6 +13,7 @@ import Nvidia from "../llm/llms/Nvidia.js"; import Ollama from "../llm/llms/Ollama.js"; import OpenAI from "../llm/llms/OpenAI.js"; import SageMaker from "../llm/llms/SageMaker.js"; +import Scaleway from "../llm/llms/Scaleway.js"; import SiliconFlow from "../llm/llms/SiliconFlow.js"; import ContinueProxy from "../llm/llms/stubs/ContinueProxy.js"; import TransformersJsEmbeddingsProvider from "../llm/llms/TransformersJsEmbeddingsProvider.js"; @@ -46,4 +47,5 @@ export const allEmbeddingsProviders: Record< watsonx: WatsonX, lmstudio: LMStudio, siliconflow: SiliconFlow, + scaleway: Scaleway, }; diff --git a/core/llm/autodetect.ts b/core/llm/autodetect.ts index 90d9f378d..a49749e2e 100644 --- a/core/llm/autodetect.ts +++ b/core/llm/autodetect.ts @@ -133,6 +133,7 @@ const PARALLEL_PROVIDERS: string[] = [ "nebius", "vertexai", "function-network", + "scaleway", ]; function llmCanGenerateInParallel(provider: string, model: string): boolean { diff --git a/gui/public/logos/scaleway.png b/gui/public/logos/scaleway.png new file mode 100644 index 000000000..4dd73d372 Binary files /dev/null and b/gui/public/logos/scaleway.png differ diff --git a/gui/src/pages/AddNewModel/configs/models.ts b/gui/src/pages/AddNewModel/configs/models.ts index a4f996ebe..f3e320305 100644 --- a/gui/src/pages/AddNewModel/configs/models.ts +++ b/gui/src/pages/AddNewModel/configs/models.ts @@ -70,6 +70,7 @@ export const models: { [key: string]: ModelPackage } = { "sambanova", "cerebras", "nebius", + "scaleway" ], isOpenSource: true, }, @@ -379,7 +380,7 @@ export const models: { [key: string]: ModelPackage } = { contextLength: 8192, }, icon: "meta.png", - providerOptions: ["groq"], + providerOptions: ["groq", "scaleway"], isOpenSource: false, }, llama3170bChat: { @@ -392,7 +393,7 @@ export const models: { [key: string]: ModelPackage } = { contextLength: 8192, }, icon: "meta.png", - providerOptions: ["groq"], + providerOptions: ["groq", "scaleway"], isOpenSource: false, }, llama31405bChat: { @@ -1107,6 +1108,19 @@ export const models: { [key: string]: ModelPackage } = { providerOptions: ["nebius"], isOpenSource: true, }, + Qwen25Coder32b: { + title: "Qwen 2.5 Coder 32b", + description: + "Qwen 2.5 is an auto-regressive language model that uses an optimized transformer architecture.", + params: { + title: "Qwen 2.5 Coder 32b", + model: "qwen2.5-coder-32b", + contextLength: 128_000, + }, + icon: "qwen.png", + providerOptions: ["scaleway"], + isOpenSource: true, + }, grokBeta: { title: "Grok Beta", description: "Generative artificial intelligence chatbot developed by xAI.", diff --git a/gui/src/pages/AddNewModel/configs/providers.ts b/gui/src/pages/AddNewModel/configs/providers.ts index a2ae69b13..b3b80e6e1 100644 --- a/gui/src/pages/AddNewModel/configs/providers.ts +++ b/gui/src/pages/AddNewModel/configs/providers.ts @@ -161,6 +161,35 @@ export const providers: Partial> = { packages: [models.llama31Chat, models.deepseek], apiKeyUrl: "https://function.network/join-waitlist", }, + scaleway: { + title: "Scaleway", + provider: "scaleway", + refPage: "scaleway", + description: "Use the Scaleway Generative APIs to instantly access leading open models", + longDescription: `Hosted in European data centers, ideal for developers requiring low latency, full data privacy, and compliance with EU AI Act. You can generate your API key in [Scaleway's console](https://console.scaleway.com/generative-api/models). Get started:\n1. Create an API key [here](https://console.scaleway.com/iam/api-keys/)\n2. Paste below\n3. Select a model preset`, + params: { + apiKey: "", + }, + collectInputFor: [ + { + inputType: "text", + key: "apiKey", + label: "API key", + placeholder: "Enter your Scaleway API key", + required: true, + }, + ...completionParamsInputsConfigs, + ], + icon: "scaleway.png", + tags: [ModelProviderTags.RequiresApiKey, ModelProviderTags.OpenSource], + packages: [ + models.llama318bChat, + models.llama3170bChat, + models.mistralNemo, + models.Qwen25Coder32b, + ], + apiKeyUrl: "https://console.scaleway.com/iam/api-keys", + }, azure: { title: "Azure OpenAI", provider: "azure", diff --git a/packages/config-types/src/index.ts b/packages/config-types/src/index.ts index 45b508c69..5331140b6 100644 --- a/packages/config-types/src/index.ts +++ b/packages/config-types/src/index.ts @@ -57,6 +57,7 @@ export const modelDescriptionSchema = z.object({ "azure", "continue-proxy", "nebius", + "scaleway" ]), model: z.string(), apiKey: z.string().optional(), @@ -109,6 +110,7 @@ export const embeddingsProviderSchema = z.object({ "gemini", "continue-proxy", "nebius", + "scaleway", ]), apiBase: z.string().optional(), apiKey: z.string().optional(),