Merge pull request #3310 from tgenaitay/scaleway-gui
Add Scaleway in GUI
This commit is contained in:
commit
b5283747fa
8 changed files with 55 additions and 3 deletions
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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(),
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
};
|
||||
|
|
|
|||
|
|
@ -133,6 +133,7 @@ const PARALLEL_PROVIDERS: string[] = [
|
|||
"nebius",
|
||||
"vertexai",
|
||||
"function-network",
|
||||
"scaleway",
|
||||
];
|
||||
|
||||
function llmCanGenerateInParallel(provider: string, model: string): boolean {
|
||||
|
|
|
|||
BIN
gui/public/logos/scaleway.png
Normal file
BIN
gui/public/logos/scaleway.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 3 KiB |
|
|
@ -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.",
|
||||
|
|
|
|||
|
|
@ -161,6 +161,35 @@ export const providers: Partial<Record<string, ProviderInfo>> = {
|
|||
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",
|
||||
|
|
|
|||
|
|
@ -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(),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue