Merge branch 'dev' of https://github.com/continuedev/continue into dallin/config-json-schema-validation

This commit is contained in:
Dallin Romney 2024-10-31 12:22:47 -07:00
commit 3c30b6cdf6
19 changed files with 219 additions and 202 deletions

View file

@ -598,7 +598,8 @@ declare global {
| "watsonx"
| "openrouter"
| "sambanova"
| "nvidia";
| "nvidia"
| "nebius";
export type ModelName =
| "AUTODETECT"
@ -765,7 +766,8 @@ declare global {
| "continue-proxy"
| "deepinfra"
| "voyage"
| "watsonx";
| "watsonx"
| "nebius";
export interface EmbedOptions {
apiBase?: string;

View file

@ -16,6 +16,7 @@ const modelDescriptionSchema = z.object({
"sagemaker",
"cloudflare",
"azure",
"nebius",
]),
model: z.string(),
apiKey: z.string().optional(),
@ -81,6 +82,7 @@ const embeddingsProviderSchema = z.object({
"cohere",
"free-trial",
"gemini",
"nebius",
]),
apiBase: z.string().optional(),
apiKey: z.string().optional(),

16
core/index.d.ts vendored
View file

@ -48,9 +48,9 @@ export interface IndexingProgressUpdate {
export type PromptTemplate =
| string
| ((
history: ChatMessage[],
otherData: Record<string, string>,
) => string | ChatMessage[]);
history: ChatMessage[],
otherData: Record<string, string>,
) => string | ChatMessage[]);
export interface ILLM extends LLMOptions {
get providerName(): ModelProvider;
@ -644,8 +644,9 @@ type ModelProvider =
| "vllm"
| "mock"
| "cerebras"
| "askSage"
| "vertexai"
| "askSage";
| "nebius";
export type ModelName =
| "AUTODETECT"
@ -827,6 +828,7 @@ export type EmbeddingsProviderName =
| "nvidia"
| "voyage"
| "mistral"
| "nebius"
| "vertexai"
| "watsonx";
@ -1051,9 +1053,9 @@ export interface Config {
embeddingsProvider?: EmbeddingsProviderDescription | EmbeddingsProvider;
/** The model that Continue will use for tab autocompletions. */
tabAutocompleteModel?:
| CustomLLM
| ModelDescription
| (CustomLLM | ModelDescription)[];
| CustomLLM
| ModelDescription
| (CustomLLM | ModelDescription)[];
/** Options for tab autocomplete */
tabAutocompleteOptions?: Partial<TabAutocompleteOptions>;
/** UI styles customization */

View file

@ -0,0 +1,13 @@
import { EmbeddingsProviderName, EmbedOptions } from "../..";
import OpenAIEmbeddingsProvider from "./OpenAIEmbeddingsProvider";
class NebiusEmbeddingsProvider extends OpenAIEmbeddingsProvider {
static providerName: EmbeddingsProviderName = "nebius";
static defaultOptions: Partial<EmbedOptions> | undefined = {
apiBase: "https://api.studio.nebius.ai/v1/",
model: "BAAI/bge-en-icl",
};
}
export default NebiusEmbeddingsProvider;

View file

@ -16,6 +16,7 @@ import NvidiaEmbeddingsProvider from "./NvidiaEmbeddingsProvider.js";
import VoyageEmbeddingsProvider from "./VoyageEmbeddingsProvider.js";
import VertexEmbeddingsProvider from "./VertexEmbeddingsProvider.js";
import WatsonxEmbeddingsProvider from "./WatsonxEmbeddingsProvider.js";
import NebiusEmbeddingsProvider from "./NebiusEmbeddingsProvider.js";
type EmbeddingsProviderConstructor = new (
...args: any[]
@ -39,6 +40,7 @@ export const allEmbeddingsProviders: Record<
nvidia: NvidiaEmbeddingsProvider,
voyage: VoyageEmbeddingsProvider,
mistral: MistralEmbeddingsProvider,
nebius: NebiusEmbeddingsProvider,
vertexai: VertexEmbeddingsProvider,
watsonx: WatsonxEmbeddingsProvider
};

View file

@ -119,6 +119,7 @@ const PARALLEL_PROVIDERS: ModelProvider[] = [
"replicate",
"together",
"sambanova",
"nebius",
"vertexai"
];

12
core/llm/llms/Nebius.ts Normal file
View file

@ -0,0 +1,12 @@
import { LLMOptions, ModelProvider } from "../..";
import OpenAI from "./OpenAI";
class Nebius extends OpenAI {
static providerName: ModelProvider = "nvidia";
static defaultOptions: Partial<LLMOptions> = {
apiBase: "https://api.studio.nebius.ai/v1/",
useLegacyCompletionsEndpoint: false,
};
}
export default Nebius;

View file

@ -30,6 +30,7 @@ import Llamafile from "./Llamafile";
import Mistral from "./Mistral";
import Mock from "./Mock";
import Msty from "./Msty";
import Nebius from "./Nebius";
import Nvidia from "./Nvidia";
import Ollama from "./Ollama";
import OpenAI from "./OpenAI";
@ -82,6 +83,7 @@ const LLMs = [
Mock,
Cerebras,
Asksage,
Nebius,
VertexAI
];

144
docs/package-lock.json generated
View file

@ -13,7 +13,6 @@
"@docusaurus/preset-classic": "^3.5.2",
"@mdx-js/react": "^3.0.0",
"clsx": "^2.1.0",
"docusaurus-json-schema-plugin": "^1.11.0",
"prism-react-renderer": "^2.3.1",
"react": "^18.2.0",
"react-dom": "^18.2.0"
@ -3145,70 +3144,6 @@
"micromark-util-symbol": "^1.0.1"
}
},
"node_modules/@stoplight/json": {
"version": "3.21.0",
"resolved": "https://registry.npmjs.org/@stoplight/json/-/json-3.21.0.tgz",
"integrity": "sha512-5O0apqJ/t4sIevXCO3SBN9AHCEKKR/Zb4gaj7wYe5863jme9g02Q0n/GhM7ZCALkL+vGPTe4ZzTETP8TFtsw3g==",
"dependencies": {
"@stoplight/ordered-object-literal": "^1.0.3",
"@stoplight/path": "^1.3.2",
"@stoplight/types": "^13.6.0",
"jsonc-parser": "~2.2.1",
"lodash": "^4.17.21",
"safe-stable-stringify": "^1.1"
},
"engines": {
"node": ">=8.3.0"
}
},
"node_modules/@stoplight/json-ref-resolver": {
"version": "3.1.6",
"resolved": "https://registry.npmjs.org/@stoplight/json-ref-resolver/-/json-ref-resolver-3.1.6.tgz",
"integrity": "sha512-YNcWv3R3n3U6iQYBsFOiWSuRGE5su1tJSiX6pAPRVk7dP0L7lqCteXGzuVRQ0gMZqUl8v1P0+fAKxF6PLo9B5A==",
"dependencies": {
"@stoplight/json": "^3.21.0",
"@stoplight/path": "^1.3.2",
"@stoplight/types": "^12.3.0 || ^13.0.0",
"@types/urijs": "^1.19.19",
"dependency-graph": "~0.11.0",
"fast-memoize": "^2.5.2",
"immer": "^9.0.6",
"lodash": "^4.17.21",
"tslib": "^2.6.0",
"urijs": "^1.19.11"
},
"engines": {
"node": ">=8.3.0"
}
},
"node_modules/@stoplight/ordered-object-literal": {
"version": "1.0.5",
"resolved": "https://registry.npmjs.org/@stoplight/ordered-object-literal/-/ordered-object-literal-1.0.5.tgz",
"integrity": "sha512-COTiuCU5bgMUtbIFBuyyh2/yVVzlr5Om0v5utQDgBCuQUOPgU1DwoffkTfg4UBQOvByi5foF4w4T+H9CoRe5wg==",
"engines": {
"node": ">=8"
}
},
"node_modules/@stoplight/path": {
"version": "1.3.2",
"resolved": "https://registry.npmjs.org/@stoplight/path/-/path-1.3.2.tgz",
"integrity": "sha512-lyIc6JUlUA8Ve5ELywPC8I2Sdnh1zc1zmbYgVarhXIp9YeAB0ReeqmGEOWNtlHkbP2DAA1AL65Wfn2ncjK/jtQ==",
"engines": {
"node": ">=8"
}
},
"node_modules/@stoplight/types": {
"version": "13.20.0",
"resolved": "https://registry.npmjs.org/@stoplight/types/-/types-13.20.0.tgz",
"integrity": "sha512-2FNTv05If7ib79VPDA/r9eUet76jewXFH2y2K5vuge6SXbRHtWBhcaRmu+6QpF4/WRNoJj5XYRSwLGXDxysBGA==",
"dependencies": {
"@types/json-schema": "^7.0.4",
"utility-types": "^3.10.0"
},
"engines": {
"node": "^12.20 || >=14.13"
}
},
"node_modules/@svgr/babel-plugin-add-jsx-attribute": {
"version": "8.0.0",
"resolved": "https://registry.npmjs.org/@svgr/babel-plugin-add-jsx-attribute/-/babel-plugin-add-jsx-attribute-8.0.0.tgz",
@ -3802,11 +3737,6 @@
"resolved": "https://registry.npmjs.org/@types/unist/-/unist-3.0.2.tgz",
"integrity": "sha512-dqId9J8K/vGi5Zr7oo212BGii5m3q5Hxlkwy3WpYuKPklmBEvsbMYYyLxAQpSffdLl/gdW0XUpKWFvYmyoWCoQ=="
},
"node_modules/@types/urijs": {
"version": "1.19.25",
"resolved": "https://registry.npmjs.org/@types/urijs/-/urijs-1.19.25.tgz",
"integrity": "sha512-XOfUup9r3Y06nFAZh3WvO0rBU4OtlfPB/vgxpjg+NRdGU6CN6djdc6OEiH+PcqHCY6eFLo9Ista73uarf4gnBg=="
},
"node_modules/@types/ws": {
"version": "8.5.10",
"resolved": "https://registry.npmjs.org/@types/ws/-/ws-8.5.10.tgz",
@ -5725,14 +5655,6 @@
"node": ">= 0.8"
}
},
"node_modules/dependency-graph": {
"version": "0.11.0",
"resolved": "https://registry.npmjs.org/dependency-graph/-/dependency-graph-0.11.0.tgz",
"integrity": "sha512-JeMq7fEshyepOWDfcfHK06N3MhyPhz++vtqWhMT5O9A3K42rdsEDpfdVqjaqaAhsw6a+ZqeDvQVtD0hFHQWrzg==",
"engines": {
"node": ">= 0.6.0"
}
},
"node_modules/dequal": {
"version": "2.0.3",
"resolved": "https://registry.npmjs.org/dequal/-/dequal-2.0.3.tgz",
@ -5831,22 +5753,6 @@
"node": ">=6"
}
},
"node_modules/docusaurus-json-schema-plugin": {
"version": "1.11.0",
"resolved": "https://registry.npmjs.org/docusaurus-json-schema-plugin/-/docusaurus-json-schema-plugin-1.11.0.tgz",
"integrity": "sha512-Nd2WCoO4+Ke0fDOltdlaLwGmseCRMBuDxZd+QsaPCwJbogvNggBIEqFwFpRxlW+rIOTqB7ayeZ0jS0SFHn27fA==",
"dependencies": {
"@stoplight/json-ref-resolver": "^3.1.5",
"monaco-editor": "^0.44.0",
"monaco-editor-webpack-plugin": "^7.0.1",
"react-monaco-editor": "^0.55.0"
},
"peerDependencies": {
"@docusaurus/core": "^3.0.0",
"@docusaurus/theme-classic": "^3.0.0",
"react": ">=17 <= 18"
}
},
"node_modules/dom-converter": {
"version": "0.2.0",
"resolved": "https://registry.npmjs.org/dom-converter/-/dom-converter-0.2.0.tgz",
@ -6393,11 +6299,6 @@
"resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz",
"integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw=="
},
"node_modules/fast-memoize": {
"version": "2.5.2",
"resolved": "https://registry.npmjs.org/fast-memoize/-/fast-memoize-2.5.2.tgz",
"integrity": "sha512-Ue0LwpDYErFbmNnZSF0UH6eImUwDmogUO1jyE+JbN2gsQz/jICm1Ve7t9QT0rNSsfJt+Hs4/S3GnsDVjL4HVrw=="
},
"node_modules/fast-url-parser": {
"version": "1.1.3",
"resolved": "https://registry.npmjs.org/fast-url-parser/-/fast-url-parser-1.1.3.tgz",
@ -8188,11 +8089,6 @@
"node": ">=6"
}
},
"node_modules/jsonc-parser": {
"version": "2.2.1",
"resolved": "https://registry.npmjs.org/jsonc-parser/-/jsonc-parser-2.2.1.tgz",
"integrity": "sha512-o6/yDBYccGvTz1+QFevz6l6OBZ2+fMVu2JZ9CIhzsYRX4mjaK5IyX9eldUdCmga16zlgQxyrj5pt9kzuj2C02w=="
},
"node_modules/jsonfile": {
"version": "6.1.0",
"resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz",
@ -10599,23 +10495,6 @@
"url": "https://github.com/sponsors/ljharb"
}
},
"node_modules/monaco-editor": {
"version": "0.44.0",
"resolved": "https://registry.npmjs.org/monaco-editor/-/monaco-editor-0.44.0.tgz",
"integrity": "sha512-5SmjNStN6bSuSE5WPT2ZV+iYn1/yI9sd4Igtk23ChvqB7kDk9lZbB9F5frsuvpB+2njdIeGGFf2G4gbE6rCC9Q=="
},
"node_modules/monaco-editor-webpack-plugin": {
"version": "7.1.0",
"resolved": "https://registry.npmjs.org/monaco-editor-webpack-plugin/-/monaco-editor-webpack-plugin-7.1.0.tgz",
"integrity": "sha512-ZjnGINHN963JQkFqjjcBtn1XBtUATDZBMgNQhDQwd78w2ukRhFXAPNgWuacaQiDZsUr4h1rWv5Mv6eriKuOSzA==",
"dependencies": {
"loader-utils": "^2.0.2"
},
"peerDependencies": {
"monaco-editor": ">= 0.31.0",
"webpack": "^4.5.0 || 5.x"
}
},
"node_modules/mrmime": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/mrmime/-/mrmime-2.0.0.tgz",
@ -12273,19 +12152,6 @@
"webpack": ">=4.41.1 || 5.x"
}
},
"node_modules/react-monaco-editor": {
"version": "0.55.0",
"resolved": "https://registry.npmjs.org/react-monaco-editor/-/react-monaco-editor-0.55.0.tgz",
"integrity": "sha512-GdEP0Q3Rn1dczfKEEyY08Nes5plWwIYU4sWRBQO0+jsQWQsKMHKCC6+hPRwR7G/4aA3V/iU9jSmWPzVJYMVFSQ==",
"dependencies": {
"prop-types": "^15.8.1"
},
"peerDependencies": {
"@types/react": ">=16 <= 18",
"monaco-editor": "^0.44.0",
"react": ">=16 <= 18"
}
},
"node_modules/react-router": {
"version": "5.3.4",
"resolved": "https://registry.npmjs.org/react-router/-/react-router-5.3.4.tgz",
@ -12872,11 +12738,6 @@
}
]
},
"node_modules/safe-stable-stringify": {
"version": "1.1.1",
"resolved": "https://registry.npmjs.org/safe-stable-stringify/-/safe-stable-stringify-1.1.1.tgz",
"integrity": "sha512-ERq4hUjKDbJfE4+XtZLFPCDi8Vb1JqaxAPTxWFLBx8XcAlf9Bda/ZJdVezs/NAfsMQScyIlUMx+Yeu7P7rx5jw=="
},
"node_modules/safer-buffer": {
"version": "2.1.2",
"resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz",
@ -14234,11 +14095,6 @@
"node": ">=6"
}
},
"node_modules/urijs": {
"version": "1.19.11",
"resolved": "https://registry.npmjs.org/urijs/-/urijs-1.19.11.tgz",
"integrity": "sha512-HXgFDgDommxn5/bIv0cnQZsPhHDA90NPHD6+c/v21U5+Sx5hoP8+dP9IZXBU1gIfvdRfhG8cel9QNPeionfcCQ=="
},
"node_modules/url-loader": {
"version": "4.1.1",
"resolved": "https://registry.npmjs.org/url-loader/-/url-loader-4.1.1.tgz",

View file

@ -199,8 +199,9 @@
"nvidia",
"vllm",
"cerebras",
"askSage",
"nebius",
"vertexai",
"askSage"
],
"markdownEnumDescriptions": [
"### OpenAI\nUse gpt-4, gpt-3.5-turbo, or any other OpenAI model. See [here](https://openai.com/product#made-for-developers) to obtain an API key.\n\n> [Reference](https://docs.continue.dev/reference/Model%20Providers/openai)",
@ -469,7 +470,8 @@
"replicate",
"together",
"cloudflare",
"sambanova"
"sambanova",
"nebius"
]
}
},
@ -1539,28 +1541,32 @@
},
"then": {
"properties": {
"watsonxUrl": {
"apiBase": {
"type": "string"
},
"watsonxApiKey": {
"apiKey": {
"type": "string"
},
"watsonxApiVersion": {
"apiVersion": {
"type": "string"
},
"watsonxProjectId": {
"projectId": {
"type": "string"
},
"watsonxStopToken": {
"type": "string"
},
"watsonxFullUrl": {
"deploymentId": {
"type": "string"
},
"model": {
"enum": [
"ibm/granite-13b-chat-v2",
"ibm/granite-3b-code-instruct",
"ibm/granite-8b-code-instruct",
"ibm/granite-20b-code-instruct",
"ibm/granite-3b-code-instruct",
"ibm/granite-8b-code-instruct",
"ibm/granite-34b-code-instruct",
"ibm/granite-3-8b-instruct",
"ibm/granite-3-2b-instruct",
"mistralai/mistral-large",
"meta-llama/llama-3-8b-instruct",
"meta-llama/llama-3-70b-instruct"
@ -1568,8 +1574,9 @@
}
},
"required": [
"watsonxUrl",
"watsonxProjectId"
"apiBase",
"apiKey",
"apiVersion"
]
}
},
@ -2681,6 +2688,7 @@
"nvidia",
"bedrock",
"sagemaker",
"nebius",
"vertexai"
]
},

View file

@ -1,4 +1,3 @@
@@ -1,18 +0,0 @@
<!doctype html>
<html lang="en">
<head>

View file

@ -199,8 +199,9 @@
"nvidia",
"vllm",
"cerebras",
"vertexai",
"askSage"
"askSage",
"nebius",
"vertexai"
],
"markdownEnumDescriptions": [
"### OpenAI\nUse gpt-4, gpt-3.5-turbo, or any other OpenAI model. See [here](https://openai.com/product#made-for-developers) to obtain an API key.\n\n> [Reference](https://docs.continue.dev/reference/Model%20Providers/openai)",
@ -469,7 +470,8 @@
"replicate",
"together",
"cloudflare",
"sambanova"
"sambanova",
"nebius"
]
}
},
@ -1539,28 +1541,32 @@
},
"then": {
"properties": {
"watsonxUrl": {
"apiBase": {
"type": "string"
},
"watsonxApiKey": {
"apiKey": {
"type": "string"
},
"watsonxApiVersion": {
"apiVersion": {
"type": "string"
},
"watsonxProjectId": {
"projectId": {
"type": "string"
},
"watsonxStopToken": {
"type": "string"
},
"watsonxFullUrl": {
"deploymentId": {
"type": "string"
},
"model": {
"enum": [
"ibm/granite-13b-chat-v2",
"ibm/granite-3b-code-instruct",
"ibm/granite-8b-code-instruct",
"ibm/granite-20b-code-instruct",
"ibm/granite-3b-code-instruct",
"ibm/granite-8b-code-instruct",
"ibm/granite-34b-code-instruct",
"ibm/granite-3-8b-instruct",
"ibm/granite-3-2b-instruct",
"mistralai/mistral-large",
"meta-llama/llama-3-8b-instruct",
"meta-llama/llama-3-70b-instruct"
@ -1568,8 +1574,9 @@
}
},
"required": [
"watsonxUrl",
"watsonxProjectId"
"apiBase",
"apiKey",
"apiVersion"
]
}
},
@ -2681,6 +2688,7 @@
"nvidia",
"bedrock",
"sagemaker",
"nebius",
"vertexai"
]
},
@ -3120,16 +3128,10 @@
"properties": {
"provider": {
"type": "string",
<<<<<<< HEAD
"enum": [
"posthog"
],
=======
"enum": [
"posthog",
"logstash"
],
>>>>>>> 6e622157f1a727ba54d3bc22b337079e832c7556
"description": "The 3rd party analytics provider to use.",
"default": "posthog",
"markdownEnumDescriptions": [

View file

@ -199,8 +199,9 @@
"nvidia",
"vllm",
"cerebras",
"vertexai",
"askSage"
"askSage",
"nebius",
"vertexai"
],
"markdownEnumDescriptions": [
"### OpenAI\nUse gpt-4, gpt-3.5-turbo, or any other OpenAI model. See [here](https://openai.com/product#made-for-developers) to obtain an API key.\n\n> [Reference](https://docs.continue.dev/reference/Model%20Providers/openai)",
@ -469,7 +470,8 @@
"replicate",
"together",
"cloudflare",
"sambanova"
"sambanova",
"nebius"
]
}
},
@ -1539,28 +1541,32 @@
},
"then": {
"properties": {
"watsonxUrl": {
"apiBase": {
"type": "string"
},
"watsonxApiKey": {
"apiKey": {
"type": "string"
},
"watsonxApiVersion": {
"apiVersion": {
"type": "string"
},
"watsonxProjectId": {
"projectId": {
"type": "string"
},
"watsonxStopToken": {
"type": "string"
},
"watsonxFullUrl": {
"deploymentId": {
"type": "string"
},
"model": {
"enum": [
"ibm/granite-13b-chat-v2",
"ibm/granite-3b-code-instruct",
"ibm/granite-8b-code-instruct",
"ibm/granite-20b-code-instruct",
"ibm/granite-3b-code-instruct",
"ibm/granite-8b-code-instruct",
"ibm/granite-34b-code-instruct",
"ibm/granite-3-8b-instruct",
"ibm/granite-3-2b-instruct",
"mistralai/mistral-large",
"meta-llama/llama-3-8b-instruct",
"meta-llama/llama-3-70b-instruct"
@ -1568,8 +1574,9 @@
}
},
"required": [
"watsonxUrl",
"watsonxProjectId"
"apiBase",
"apiKey",
"apiVersion"
]
}
},
@ -2681,6 +2688,7 @@
"nvidia",
"bedrock",
"sagemaker",
"nebius",
"vertexai"
]
},

View file

@ -1,12 +1,12 @@
{
"name": "continue",
"version": "0.9.222",
"version": "0.9.223",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "continue",
"version": "0.9.222",
"version": "0.9.223",
"license": "Apache-2.0",
"dependencies": {
"@electron/rebuild": "^3.2.10",

View file

@ -2,7 +2,7 @@
"name": "continue",
"icon": "media/icon.png",
"author": "Continue Dev, Inc",
"version": "0.9.222",
"version": "0.9.223",
"repository": {
"type": "git",
"url": "https://github.com/continuedev/continue"
@ -606,4 +606,4 @@
"ws": "^8.13.0",
"yarn": "^1.22.21"
}
}
}

BIN
gui/public/logos/nebius.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.6 KiB

View file

@ -200,6 +200,7 @@ export const models: { [key: string]: ModelPackage } = {
"together",
"llama.cpp",
"replicate",
"nebius",
],
isOpenSource: true,
},
@ -438,6 +439,7 @@ export const models: { [key: string]: ModelPackage } = {
"together",
"llama.cpp",
"replicate",
"nebius",
],
isOpenSource: true,
},
@ -866,6 +868,30 @@ export const models: { [key: string]: ModelPackage } = {
icon: "WatsonX.png",
isOpenSource: false,
},
granite3Instruct8b: {
title: "Granite 3.0 8b Instruct",
description: "The Granite model series is a family of IBM-trained, dense decoder-only models, which are particularly well-suited for generative tasks.",
params: {
model: "ibm/granite-3-8b-instruct",
contextLength: 8_000,
title: "Granite 3.0 8b Instruct"
},
providerOptions: ["watsonx"],
icon: "WatsonX.png",
isOpenSource: false
},
granite3Instruct2b: {
title: "Granite 3.0 2b Instruct",
description: "The Granite model series is a family of IBM-trained, dense decoder-only models, which are particularly well-suited for generative tasks.",
params: {
model: "ibm/granite-3-2b-instruct",
contextLength: 2_000,
title: "Granite 3.0 2b Instruct"
},
providerOptions: ["watsonx"],
icon: "WatsonX.png",
isOpenSource: false
},
MistralLarge: {
title: "Mistral Large",
description:
@ -979,6 +1005,60 @@ export const models: { [key: string]: ModelPackage } = {
icon: "openai.png",
isOpenSource: false,
},
MetaLlama3Large: {
title: "Llama 3.1 405b",
description:
"Llama 3 is an auto-regressive language model that uses an optimized transformer architecture.",
params: {
title: "Llama 3.1 405b",
model: "meta-llama/Meta-Llama-3.1-405B-Instruct",
contextLength: 128_000,
},
icon: "meta.png",
dimensions: [
{
name: "Parameter Count",
description: "The number of parameters in the model",
options: {
"70b": {
model: "meta-llama/Meta-Llama-3.1-70B-Instruct",
title: "Llama 3.1 70b",
},
"405bb": {
model: "meta-llama/Meta-Llama-3.1-405B-Instruct",
title: "Llama 3.1 405b",
},
},
},
],
providerOptions: ["nebius"],
isOpenSource: true,
},
Qwen2Coder: {
title: "Qwen 2.5 Coder 7b",
description:
"Qwen 2.5 is an auto-regressive language model that uses an optimized transformer architecture.",
params: {
title: "Qwen 2.5 Coder 7b",
model: "Qwen/Qwen2.5-Coder-7B-Instruct",
contextLength: 32_000,
},
icon: "meta.png",
dimensions: [
{
name: "Parameter Count",
description: "The number of parameters in the model",
options: {
"7b": {
model: "Qwen/Qwen2.5-Coder-7B-Instruct",
title: "Qwen 2.5 Coder 7b",
},
},
},
],
providerOptions: ["nebius"],
isOpenSource: true,
},
AUTODETECT: {
title: "Autodetect",
description:

View file

@ -530,6 +530,8 @@ To get started, [register](https://dataplatform.cloud.ibm.com/registration/stepo
icon: "WatsonX.png",
tags: [ModelProviderTags.RequiresApiKey],
packages: [
models.granite3Instruct8b,
models.granite3Instruct2b,
models.graniteCode3b,
models.graniteCode8b,
models.graniteCode20b,
@ -701,4 +703,28 @@ To get started, [register](https://dataplatform.cloud.ibm.com/registration/stepo
],
apiKeyUrl: "https://chat.asksage.ai/",
},
nebius: {
title: "Nebius AI Studio",
provider: "nebius",
refPage: "nebiusllm",
description: "Use the Nebius API to run open-source models",
longDescription: `Nebius AI Studio is a cheap hosted service with $100 trial. To get started with Nebius AI Studio:\n1. Obtain an API key from [here](https://studio.nebius.ai)\n2. Paste below\n3. Select a model preset`,
params: {
apiKey: "",
},
collectInputFor: [
{
inputType: "text",
key: "apiKey",
label: "API Key",
placeholder: "Enter your Nebius AI Studio API key",
required: true,
},
...completionParamsInputsConfigs,
],
icon: "nebius.png",
tags: [ModelProviderTags.RequiresApiKey, ModelProviderTags.OpenSource],
packages: [models.MetaLlama3Large, models.Qwen2Coder],
apiKeyUrl: "https://studio.nebius.ai/settings/api-keys",
},
};

View file

@ -55,6 +55,7 @@ export const modelDescriptionSchema = z.object({
"cloudflare",
"azure",
"continue-proxy",
"nebius",
]),
model: z.string(),
apiKey: z.string().optional(),
@ -106,6 +107,7 @@ export const embeddingsProviderSchema = z.object({
"free-trial",
"gemini",
"continue-proxy",
"nebius",
]),
apiBase: z.string().optional(),
apiKey: z.string().optional(),