Merge branch 'dev' of https://github.com/continuedev/continue into dallin/handle-on-delete-vscode

This commit is contained in:
Dallin Romney 2024-11-01 11:00:06 -07:00
commit 193eb9185d
50 changed files with 446 additions and 317 deletions

View file

@ -0,0 +1,9 @@
## 0.8.55 - 2024-10-25
### Added
* Web context provider
* Cerebras inference provider
* Automatic descriptions for previous chats
* Discord context provider
* Improved full screen UI
### Changed
* Easier way to accept/reject/re-prompt after cmd/ctrl+I

View file

@ -1,4 +0,0 @@
project: extensions/vscode
kind: Added
body: Web context provider
time: 2024-10-14T23:15:51.670444-07:00

View file

@ -1,4 +0,0 @@
project: extensions/vscode
kind: Added
body: Cerebras inference provider
time: 2024-10-14T23:16:22.754491-07:00

View file

@ -1,4 +0,0 @@
project: extensions/vscode
kind: Added
body: Automatic descriptions for previous chats
time: 2024-10-14T23:16:39.451261-07:00

View file

@ -1,4 +0,0 @@
project: extensions/vscode
kind: Added
body: Discord context provider
time: 2024-10-14T23:16:57.089953-07:00

View file

@ -1,4 +0,0 @@
project: extensions/vscode
kind: Added
body: Improved full screen UI
time: 2024-10-14T23:17:14.574917-07:00

View file

@ -1,4 +0,0 @@
project: extensions/vscode
kind: Changed
body: Easier way to accept/reject/re-prompt after cmd/ctrl+I
time: 2024-10-14T23:17:38.086964-07:00

9
.idea/continue.iml generated Normal file
View file

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="JAVA_MODULE" version="4">
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$" />
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>

8
.idea/modules.xml generated Normal file
View file

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/continue.iml" filepath="$PROJECT_DIR$/.idea/continue.iml" />
</modules>
</component>
</project>

View file

@ -120,7 +120,7 @@ This object allows you to customize the behavior of tab-autocomplete. The availa
### I want better completions, should I use GPT-4?
Perhaps surprisingly, the answer is no. The models that we suggest for autocomplete are trained with a highly specific prompt format, which allows them to respond to requests for completing code (see examples of these prompts [here](https://github.com/continuedev/continue/blob/d2bc6359e8ebf647892ec953e418042dc7f8a685/core/autocomplete/templates.ts)). Some of the best commercial models like GPT-4 or Claude are not trained with this prompt format, which means that they won't generate useful completions. Luckily, a huge model is not required for great autocomplete. Most of the state-of-the-art autocomplete models are no more than 10b parameters, and increasing beyond this does not significantly improve performance.
Perhaps surprisingly, the answer is no. The models that we suggest for autocomplete are trained with a highly specific prompt format, which allows them to respond to requests for completing code (see examples of these prompts [here](https://github.com/continuedev/continue/blob/main/core/autocomplete/templates.ts)). Some of the best commercial models like GPT-4 or Claude are not trained with this prompt format, which means that they won't generate useful completions. Luckily, a huge model is not required for great autocomplete. Most of the state-of-the-art autocomplete models are no more than 10b parameters, and increasing beyond this does not significantly improve performance.
### I'm not seeing any completions

View file

@ -49,7 +49,7 @@ declare global {
apiBase?: string;
cacheBehavior?: CacheBehavior;
engine?: string;
deployment?: string;
apiVersion?: string;
apiType?: string;
region?: string;
@ -322,7 +322,7 @@ declare global {
accountId?: string;
// Azure options
engine?: string;
deployment?: string;
apiVersion?: string;
apiType?: string;
@ -598,7 +598,8 @@ declare global {
| "watsonx"
| "openrouter"
| "sambanova"
| "nvidia";
| "nvidia"
| "nebius";
export type ModelName =
| "AUTODETECT"
@ -765,13 +766,14 @@ declare global {
| "continue-proxy"
| "deepinfra"
| "voyage"
| "watsonx";
| "watsonx"
| "nebius";
export interface EmbedOptions {
apiBase?: string;
apiKey?: string;
model?: string;
engine?: string;
deployment?: string;
apiType?: string;
apiVersion?: string;
requestOptions?: RequestOptions;

View file

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

22
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;
@ -72,7 +72,7 @@ export interface ILLM extends LLMOptions {
apiBase?: string;
cacheBehavior?: CacheBehavior;
engine?: string;
deployment?: string;
apiVersion?: string;
apiType?: string;
region?: string;
@ -351,7 +351,7 @@ export interface LLMOptions {
accountId?: string;
// Azure options
engine?: string;
deployment?: string;
apiVersion?: string;
apiType?: string;
@ -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";
@ -834,7 +836,7 @@ export interface EmbedOptions {
apiBase?: string;
apiKey?: string;
model?: string;
engine?: string;
deployment?: string;
apiType?: string;
apiVersion?: string;
requestOptions?: RequestOptions;
@ -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

@ -12,6 +12,7 @@ class OpenAIEmbeddingsProvider extends BaseEmbeddingsProvider {
static defaultOptions: Partial<EmbedOptions> | undefined = {
apiBase: "https://api.openai.com/v1/",
model: "text-embedding-3-small",
apiVersion: "2024-02-15-preview",
};
private _getEndpoint() {
@ -27,7 +28,7 @@ class OpenAIEmbeddingsProvider extends BaseEmbeddingsProvider {
if (this.options.apiType === "azure") {
return new URL(
`openai/deployments/${this.options.engine}/embeddings?api-version=${this.options.apiVersion}`,
`openai/deployments/${this.options.deployment}/embeddings?api-version=${this.options.apiVersion}`,
this.options.apiBase,
);
}

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"
];

View file

@ -1,5 +1,5 @@
import { ChatMessage, LLMOptions, ModelProvider } from "..";
import { BaseLLM } from ".";
import { ChatMessage, LLMOptions, ModelProvider } from "..";
class DummyLLM extends BaseLLM {
static providerName: ModelProvider = "openai";
@ -48,7 +48,7 @@ describe("BaseLLM", () => {
aiGatewaySlug: "testSlug",
apiBase: "https://api.example.com",
accountId: "testAccountId",
engine: "davinci",
deployment: "davinci",
apiVersion: "v1",
apiType: "public",
region: "us",
@ -71,7 +71,7 @@ describe("BaseLLM", () => {
expect(instance.aiGatewaySlug).toBe("testSlug");
expect(instance.apiBase).toBe("https://api.example.com/");
expect(instance.accountId).toBe("testAccountId");
expect(instance.engine).toBe("davinci");
expect(instance.deployment).toBe("davinci");
expect(instance.apiVersion).toBe("v1");
expect(instance.apiType).toBe("public");
expect(instance.region).toBe("us");

View file

@ -106,7 +106,7 @@ export abstract class BaseLLM implements ILLM {
cacheBehavior?: CacheBehavior;
capabilities?: ModelCapability;
engine?: string;
deployment?: string;
apiVersion?: string;
apiType?: string;
region?: string;
@ -190,7 +190,7 @@ export abstract class BaseLLM implements ILLM {
this.accountId = options.accountId;
this.capabilities = options.capabilities;
this.engine = options.engine;
this.deployment = options.deployment;
this.apiVersion = options.apiVersion;
this.apiType = options.apiType;
this.region = options.region;

View file

@ -11,7 +11,7 @@ class Azure extends OpenAI {
constructor(options: LLMOptions) {
super(options);
this.engine = options.model;
this.deployment = options.deployment ?? options.model;
}
}

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

@ -228,7 +228,7 @@ class Ollama extends BaseLLM {
options: this._getModelFileParams(options),
keep_alive: options.keepAlive ?? 60 * 30, // 30 minutes
stream: options.stream,
format: "json",
// format: options.format, // Not currently in base completion options
};
}
@ -245,8 +245,7 @@ class Ollama extends BaseLLM {
options: this._getModelFileParams(options),
keep_alive: options.keepAlive ?? 60 * 30, // 30 minutes
stream: options.stream,
format: "json"
// Not supported yet: context, images, system, template
// Not supported yet: context, images, system, template, format
};
}

View file

@ -166,7 +166,7 @@ class OpenAI extends BaseLLM {
) {
if (this.apiType === "azure") {
return new URL(
`openai/deployments/${this.engine}/${endpoint}?api-version=${this.apiVersion}`,
`openai/deployments/${this.deployment}/${endpoint}?api-version=${this.apiVersion}`,
this.apiBase,
);
}

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
];

View file

@ -93,7 +93,7 @@ This object allows you to customize the behavior of tab-autocomplete. The availa
### I want better completions, should I use GPT-4?
Perhaps surprisingly, the answer is no. The models that we suggest for autocomplete are trained with a highly specific prompt format, which allows them to respond to requests for completing code (see examples of these prompts [here](https://github.com/continuedev/continue/blob/d2bc6359e8ebf647892ec953e418042dc7f8a685/core/autocomplete/templates.ts)). Some of the best commercial models like GPT-4 or Claude are not trained with this prompt format, which means that they won't generate useful completions. Luckily, a huge model is not required for great autocomplete. Most of the state-of-the-art autocomplete models are no more than 10b parameters, and increasing beyond this does not significantly improve performance.
Perhaps surprisingly, the answer is no. The models that we suggest for autocomplete are trained with a highly specific prompt format, which allows them to respond to requests for completing code (see examples of these prompts [here](https://github.com/continuedev/continue/blob/main/core/autocomplete/templates.ts)). Some of the best commercial models like GPT-4 or Claude are not trained with this prompt format, which means that they won't generate useful completions. Luckily, a huge model is not required for great autocomplete. Most of the state-of-the-art autocomplete models are no more than 10b parameters, and increasing beyond this does not significantly improve performance.
### I'm not seeing any completions

View file

@ -0,0 +1,54 @@
---
title: NVIDIA
---
:::info
[View the docs](https://docs.nvidia.com/nim/large-language-models/latest/getting-started.html#option-1-from-api-catalog) to learn how to get an API key.
:::
## Chat model
We recommend configuring **Nemotron-4-340B-Instruct** as your chat model.
```json title="config.json"
{
"models": [
{
"title": "Nemotron-4-340B-Instruct",
"provider": "nvidia",
"model": "nvidia-nemotron-4-340b-instruct",
"apiKey": "[API_KEY]"
}
]
}
```
## Autocomplete model
NVIDIA currently does not offer any autocomplete models.
[Click here](../../model-types/autocomplete.md) to see a list of autocomplete model providers.
## Embeddings model
We recommend configuring **NVIDIA Retrieval QA Mistral 7B** as your embeddings model.
```json title="config.json"
{
"embeddingsProvider": [
{
"provider": "nvidia",
"model": "nvidia/nv-embedqa-mistral-7b-v2",
"apiKey": "[API_KEY]"
}
]
}
```
## Reranking model
NVIDIA currently does not offer any reranking models.
[Click here](../../model-types/reranking.md) to see a list of reranking model providers.

View file

@ -21,10 +21,8 @@ We recommend configuring **GPT-4o** as your chat model.
"provider": "azure",
"model": "gpt-4o",
"apiBase": "<YOUR_DEPLOYMENT_BASE>",
"engine": "<YOUR_ENGINE>",
"apiVersion": "<YOUR_API_VERSION>",
"apiType": "azure",
"apiKey": "<MY_API_KEY>"
"deployment": "<YOUR_DEPLOYMENT_NAME>",
"apiKey": "<MY_API_KEY>" // If you use subscription key, try using Azure gateway to rename it apiKey
}]
```
@ -44,11 +42,10 @@ We recommend configuring **text-embedding-3-large** as your embeddings model.
```json title="config.json"
"embeddingsProvider": {
"provider": "azure",
"provider": "openai",
"model": "text-embedding-3-large",
"apiBase": "<YOUR_DEPLOYMENT_BASE>",
"engine": "<YOUR_ENGINE>",
"apiVersion": "<YOUR_API_VERSION>",
"deployment": "<YOUR_DEPLOYMENT_NAME>",
"apiType": "azure",
"apiKey": "<MY_API_KEY>"
}
@ -72,20 +69,19 @@ You need to apply for access to the Azure OpenAI service. Response times are typ
## General model configuration
Azure OpenAI requires a handful of additional parameters to be configured, such as a model engine and API version.
Azure OpenAI requires a handful of additional parameters to be configured, such as a deployment name and API base URL.
To find this information in _Azure AI Studio_, first select the model that you would like to connect. Then visit _Endpoint_ > _Target URI_.
For example, a Target URI of `<https://just-an-example.openai.azure.com/openai/deployments/gpt-4o/chat/completions?api-version=2023-03-15-preview>` would map to the following:
For example, a Target URI of `https://just-an-example.openai.azure.com/openai/deployments/gpt-4o-july/chat/completions?api-version=2023-03-15-preview` would map to the following:
```json
{
"title": "GPT-4o Azure",
"model": "gpt-4o",
"provider": "azure",
"provider": "openai",
"apiBase": "https://just-an-example.openai.azure.com",
"apiType": "azure",
"engine": "gpt-4o",
"deployment": "gpt-4o-july",
"apiVersion": "2023-03-15-preview",
"apiKey": "<MY_API_KEY>"
}

View file

@ -24,7 +24,7 @@ Highlight the block of code you would like to modify, and press `cmd/ctrl + i` t
## Describe code changes
Describe the changes you would like the model to make to your highlighted code. For edits, a good prompt should be relatively short and concise. For longer, more complex tasks, we recommend using [Chat](chat/how-to-use-it.md).
Describe the changes you would like the model to make to your highlighted code. For edits, a good prompt should be relatively short and concise. For longer, more complex tasks, we recommend using [Chat](../chat/how-to-use-it.md).
## Accept or reject changes

View file

@ -10,7 +10,7 @@ Below are details for each property that can be set in `config.json`. The config
### `models`
Your **chat** models are defined here, which are used for [Chat](../chat/how-to-use-it.md), [Edit](../edit/how-to-use-it.md), and [Actions](../actions/how-to-use-it.md).
Your **chat** models are defined here, which are used for [Chat](./chat/how-to-use-it.md), [Edit](./edit/how-to-use-it.md), and [Actions](./actions/how-to-use-it.md).
Each model has specific configuration options tailored to its provider and functionality, which can be seen as suggestions while editing the json.
**Properties:**

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

@ -3,7 +3,7 @@ pluginGroup=com.github.continuedev.continueintellijextension
pluginName=continue-intellij-extension
pluginRepositoryUrl=https://github.com/continuedev/continue
# SemVer format -> https://semver.org
pluginVersion=0.0.79
pluginVersion=0.0.80
# Supported build number ranges and IntelliJ Platform versions -> https://plugins.jetbrains.com/docs/intellij/build-number-ranges.html
pluginSinceBuild=223
# IntelliJ Platform Properties -> https://plugins.jetbrains.com/docs/intellij/tools-gradle-intellij-plugin.html#configuration-intellij-extension

View file

@ -22,7 +22,7 @@ class ConfigJsonSchemaProviderFactory : JsonSchemaProviderFactory {
class ConfigJsonSchemaFileProvider : JsonSchemaFileProvider {
override fun isAvailable(file: VirtualFile): Boolean {
return file.name == "config.json" || file.name == ".continuerc.json"
return path.endsWith("/.continue/config.json")
}
override fun getName(): String {

View file

@ -0,0 +1,49 @@
package com.github.continuedev.continueintellijextension.`continue`
import com.github.continuedev.continueintellijextension.activities.ContinuePluginStartupActivity
import com.github.continuedev.continueintellijextension.constants.getContinueGlobalPath
import com.intellij.openapi.project.Project
import com.intellij.openapi.util.io.StreamUtil
import com.intellij.openapi.vfs.LocalFileSystem
import com.intellij.openapi.vfs.VirtualFile
import com.jetbrains.jsonSchema.extension.JsonSchemaFileProvider
import com.jetbrains.jsonSchema.extension.JsonSchemaProviderFactory
import com.jetbrains.jsonSchema.extension.SchemaType
import java.io.File
import java.io.IOException
import java.nio.charset.StandardCharsets
import java.nio.file.Paths
class ConfigRcJsonSchemaProviderFactory : JsonSchemaProviderFactory {
override fun getProviders(project: Project): MutableList<JsonSchemaFileProvider> {
return mutableListOf(ConfigRcJsonSchemaFileProvider())
}
}
class ConfigRcJsonSchemaFileProvider : JsonSchemaFileProvider {
override fun isAvailable(file: VirtualFile): Boolean {
return file.name == ".continuerc.json"
}
override fun getName(): String {
return ".continuerc.json"
}
override fun getSchemaFile(): VirtualFile? {
ContinuePluginStartupActivity::class.java.getClassLoader().getResourceAsStream("continue_rc_schema.json")
.use { `is` ->
if (`is` == null) {
throw IOException("Resource not found: continue_rc_schema.json")
}
val content = StreamUtil.readText(`is`, StandardCharsets.UTF_8)
val filepath = Paths.get(getContinueGlobalPath(), "continue_rc_schema.json").toString()
File(filepath).writeText(content)
return LocalFileSystem.getInstance().findFileByPath(filepath)
}
}
override fun getSchemaType(): SchemaType {
return SchemaType.embeddedSchema
}
}

View file

@ -1,6 +1,7 @@
package com.github.continuedev.continueintellijextension.editor
import com.github.continuedev.continueintellijextension.utils.getAltKeyLabel
import com.github.continuedev.continueintellijextension.utils.getShiftKeyLabel
import com.intellij.openapi.Disposable
import com.intellij.openapi.command.WriteCommandAction
import com.intellij.openapi.editor.Editor
@ -131,10 +132,12 @@ class VerticalDiffBlock(
refreshEditor()
}
private fun createButtons(): Pair<JButton, JButton> {
val rejectBtn =
createButton("${getAltKeyLabel()}↑N", JBColor(0x99FF0000.toInt(), 0x99FF0000.toInt())).apply {
createButton(
"${getAltKeyLabel()}${getShiftKeyLabel()}N",
JBColor(0x99FF0000.toInt(), 0x99FF0000.toInt())
).apply {
addActionListener {
handleReject();
onAcceptReject(this@VerticalDiffBlock, false)
@ -143,7 +146,11 @@ class VerticalDiffBlock(
}
val acceptBtn =
createButton("${getAltKeyLabel()}↑Y", JBColor(0x9900FF00.toInt(), 0x9900FF00.toInt())).apply {
createButton(
"${getAltKeyLabel()}${
getShiftKeyLabel()
}Y", JBColor(0x7700BB00.toInt(), 0x7700BB00.toInt())
).apply {
addActionListener {
handleAccept();
onAcceptReject(this@VerticalDiffBlock, true)

View file

@ -29,4 +29,11 @@ fun getAltKeyLabel(): String {
Os.WINDOWS -> "Alt"
Os.LINUX -> "Alt"
}
}
fun getShiftKeyLabel(): String {
return when (getOs()) {
Os.MAC -> "⇧"
Os.WINDOWS, Os.LINUX -> "↑"
}
}

View file

@ -15,6 +15,10 @@
<ProviderFactory
implementation="com.github.continuedev.continueintellijextension.continue.ConfigJsonSchemaProviderFactory"/>
</extensions>
<extensions defaultExtensionNs="JavaScript.JsonSchema">
<ProviderFactory
implementation="com.github.continuedev.continueintellijextension.continue.ConfigRcJsonSchemaProviderFactory"/>
</extensions>
<extensions defaultExtensionNs="com.intellij">
<editorFactoryListener

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

@ -5,7 +5,7 @@ adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html),
and is generated by [Changie](https://github.com/miniscruff/changie).
Pre-release Changes
## 0.8.55 - 2024-10-25
### Added
* Web context provider
* Cerebras inference provider
@ -15,6 +15,10 @@ Pre-release Changes
### Changed
* Easier way to accept/reject/re-prompt after cmd/ctrl+I
## 0.8.54 - 2024-10-15
### Fixed
* Hotfix: throttle transformers.js embeddings provider
## 0.8.53 - 2024-10-11
### Added
* Improved loading/accept/reject UI for apply

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)",
@ -413,9 +414,9 @@
"description": "Azure OpenAI API version (e.g. 2023-07-01-preview)",
"type": "string"
},
"engine": {
"title": "Engine",
"description": "Azure OpenAI engine",
"deployment": {
"title": "Deployment",
"description": "Azure OpenAI deployment",
"type": "string"
},
"capabilities": {
@ -469,7 +470,8 @@
"replicate",
"together",
"cloudflare",
"sambanova"
"sambanova",
"nebius"
]
}
},
@ -537,7 +539,7 @@
},
"then": {
"properties": {
"engine": {
"deployment": {
"type": "string"
},
"apiType": {
@ -1299,11 +1301,7 @@
]
},
"then": {
"required": [
"engine",
"apiVersion",
"apiBase"
]
"required": ["deployment", "apiBase"]
}
},
{
@ -1539,28 +1537,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 +1570,9 @@
}
},
"required": [
"watsonxUrl",
"watsonxProjectId"
"apiBase",
"apiKey",
"apiVersion"
]
}
},
@ -2681,6 +2684,7 @@
"nvidia",
"bedrock",
"sagemaker",
"nebius",
"vertexai"
]
},
@ -3120,16 +3124,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"
@ -500,7 +500,7 @@
},
"jsonValidation": [
{
"fileMatch": "config.json",
"fileMatch": "**/.continue/config.json",
"url": "./config_schema.json"
},
{
@ -606,4 +606,4 @@
"ws": "^8.13.0",
"yarn": "^1.22.21"
}
}
}

View file

@ -85,7 +85,7 @@ function isWin() {
async function package(target, os, arch, exe) {
console.log("[info] Packaging extension for target ", target);
// Copy config_schema.json to config.json in intellij
// Copy config_schema to intellij
copyConfigSchema();
// Install node_modules

View file

@ -7,6 +7,7 @@ const {
execCmdSync,
autodetectPlatformAndArch,
} = require("../../../scripts/util/index");
const { copyConfigSchema } = require("./utils");
// Clear folders that will be packaged to ensure clean slate
rimrafSync(path.join(__dirname, "..", "bin"));
@ -48,29 +49,8 @@ const exe = os === "win32" ? ".exe" : "";
(async () => {
console.log("[info] Packaging extension for target ", target);
// Copy config_schema.json to config.json in intellij
fs.copyFileSync(
"config_schema.json",
path.join(
"..",
"intellij",
"src",
"main",
"resources",
"config_schema.json",
),
);
// Modify and copy for .continuerc.json
const schema = JSON.parse(fs.readFileSync("config_schema.json", "utf8"));
schema.definitions.SerializedContinueConfig.properties.mergeBehavior = {
type: "string",
enum: ["merge", "overwrite"],
default: "merge",
title: "Merge behavior",
markdownDescription:
"If set to 'merge', .continuerc.json will be applied on top of config.json (arrays and objects are merged). If set to 'overwrite', then every top-level property of .continuerc.json will overwrite that property from config.json.",
};
fs.writeFileSync("continue_rc_schema.json", JSON.stringify(schema, null, 2));
// Copy config schemas to intellij
copyConfigSchema();
if (!process.cwd().endsWith("vscode")) {
// This is sometimes run from root dir instead (e.g. in VS Code tasks)

View file

@ -11,17 +11,6 @@ const {
const continueDir = path.join(__dirname, "..", "..", "..");
function copyConfigSchema() {
fs.copyFileSync(
"config_schema.json",
path.join(
"..",
"intellij",
"src",
"main",
"resources",
"config_schema.json",
),
);
// Modify and copy for .continuerc.json
const schema = JSON.parse(fs.readFileSync("config_schema.json", "utf8"));
schema.definitions.SerializedContinueConfig.properties.mergeBehavior = {
@ -33,6 +22,30 @@ function copyConfigSchema() {
"If set to 'merge', .continuerc.json will be applied on top of config.json (arrays and objects are merged). If set to 'overwrite', then every top-level property of .continuerc.json will overwrite that property from config.json.",
};
fs.writeFileSync("continue_rc_schema.json", JSON.stringify(schema, null, 2));
// Copy config schemas to intellij
fs.copyFileSync(
"config_schema.json",
path.join(
"..",
"intellij",
"src",
"main",
"resources",
"config_schema.json",
),
);
fs.copyFileSync(
"continue_rc_schema.json",
path.join(
"..",
"intellij",
"src",
"main",
"resources",
"continue_rc_schema.json",
),
);
}
function copyTokenizers() {

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

@ -1,10 +1,10 @@
import { ModelProvider } from "core";
import { HTMLInputTypeAttribute } from "react";
import { ModelProviderTags } from "../../../components/modelSelection/utils";
import { FREE_TRIAL_LIMIT_REQUESTS } from "../../../util/freeTrial";
import { completionParamsInputs } from "./completionParamsInputs";
import type { ModelPackage } from "./models";
import { models } from "./models";
import { ModelProviderTags } from "../../../components/modelSelection/utils";
export interface InputDescriptor {
inputType: HTMLInputTypeAttribute;
@ -132,7 +132,7 @@ Select the \`GPT-4o\` model below to complete your provider configuration, but n
packages: [models.gpt4o],
params: {
apiKey: "",
engine: "",
deployment: "",
apiBase: "",
apiVersion: "",
apiType: "azure",
@ -147,9 +147,9 @@ Select the \`GPT-4o\` model below to complete your provider configuration, but n
},
{
inputType: "text",
key: "engine",
label: "Engine",
placeholder: "Enter the engine name",
key: "deployment",
label: "Deployment",
placeholder: "Enter the deployment name",
required: true,
},
{ ...apiBaseInput, required: true },
@ -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,11 +107,12 @@ export const embeddingsProviderSchema = z.object({
"free-trial",
"gemini",
"continue-proxy",
"nebius",
]),
apiBase: z.string().optional(),
apiKey: z.string().optional(),
model: z.string().optional(),
engine: z.string().optional(),
deployment: z.string().optional(),
apiType: z.string().optional(),
apiVersion: z.string().optional(),
requestOptions: requestOptionsSchema.optional(),