Merge branch 'main' into nate/config-yaml
This commit is contained in:
commit
a8e5bbfd28
32 changed files with 508 additions and 203 deletions
6
.changes/extensions/vscode/0.8.62.md
Normal file
6
.changes/extensions/vscode/0.8.62.md
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
## 0.8.62 - 2024-12-10
|
||||
### Added
|
||||
* Tool use
|
||||
* Support for Model Context Protocol
|
||||
### Fixed
|
||||
* hotfix: context providers no longer hidden when not in edit mode
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
project: extensions/vscode
|
||||
kind: Added
|
||||
body: Tool use
|
||||
time: 2024-11-29T16:46:31.677532-08:00
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
project: extensions/vscode
|
||||
kind: Added
|
||||
body: Support for Model Context Protocol
|
||||
time: 2024-11-29T16:46:44.960691-08:00
|
||||
10
.github/auto_assign.yml
vendored
Normal file
10
.github/auto_assign.yml
vendored
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
# Reference: https://github.com/marketplace/actions/auto-assign-action
|
||||
addAssignees: true
|
||||
|
||||
assignees:
|
||||
- sestinj
|
||||
- Patrick-Erichsen
|
||||
- tomasz-stefaniak
|
||||
- RomneyDa
|
||||
|
||||
numberOfAssignees: 2
|
||||
10
.github/workflows/auto-assign-pr.yaml
vendored
Normal file
10
.github/workflows/auto-assign-pr.yaml
vendored
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
name: PR assignment
|
||||
on:
|
||||
pull_request:
|
||||
types: [opened, ready_for_review]
|
||||
|
||||
jobs:
|
||||
add-reviews:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: kentaro-m/auto-assign-action@v2.0.0
|
||||
267
.github/workflows/pr_checks.yaml
vendored
267
.github/workflows/pr_checks.yaml
vendored
|
|
@ -4,90 +4,215 @@ on:
|
|||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
|
||||
paths:
|
||||
- "extensions/vscode/**"
|
||||
- "core/**"
|
||||
- "gui/**"
|
||||
- ".github/workflows/**"
|
||||
|
||||
jobs:
|
||||
tsc-check:
|
||||
install-root:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
# 1. Check-out repository
|
||||
- name: Check-out repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
# 2. Install npm dependencies
|
||||
- name: Use Node.js from .nvmrc
|
||||
uses: actions/setup-node@v4
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version-file: ".nvmrc"
|
||||
|
||||
- name: Cache root node_modules
|
||||
uses: actions/cache@v3
|
||||
- uses: actions/cache@v4
|
||||
id: root-cache
|
||||
with:
|
||||
path: node_modules
|
||||
key: ${{ runner.os }}-node-${{ hashFiles('package-lock.json') }}
|
||||
key: ${{ runner.os }}-root-node-modules-${{ hashFiles('package-lock.json') }}
|
||||
|
||||
- name: Cache extension node_modules
|
||||
uses: actions/cache@v3
|
||||
- name: Install root dependencies
|
||||
if: steps.root-cache.outputs.cache-hit != 'true'
|
||||
run: npm ci
|
||||
|
||||
core-checks:
|
||||
needs: install-root
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
path: extensions/vscode/node_modules
|
||||
key: ${{ runner.os }}-node-${{ hashFiles('extensions/vscode/package-lock.json') }}
|
||||
node-version-file: ".nvmrc"
|
||||
|
||||
- name: Cache core node_modules
|
||||
uses: actions/cache@v3
|
||||
- uses: actions/cache@v4
|
||||
id: root-cache
|
||||
with:
|
||||
path: node_modules
|
||||
key: ${{ runner.os }}-root-node-modules-${{ hashFiles('package-lock.json') }}
|
||||
|
||||
- uses: actions/cache@v4
|
||||
id: core-cache
|
||||
with:
|
||||
path: core/node_modules
|
||||
key: ${{ runner.os }}-node-${{ hashFiles('core/package-lock.json') }}
|
||||
key: ${{ runner.os }}-core-node-modules-${{ hashFiles('core/package-lock.json') }}
|
||||
|
||||
- name: Cache gui node_modules
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: gui/node_modules
|
||||
key: ${{ runner.os }}-node-${{ hashFiles('gui/package-lock.json') }}
|
||||
|
||||
- name: Cache binary node_modules
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: binary/node_modules
|
||||
key: ${{ runner.os }}-node-${{ hashFiles('binary/package-lock.json') }}
|
||||
|
||||
- name: root install
|
||||
run: |
|
||||
npm ci
|
||||
|
||||
- name: extensions/vscode install
|
||||
run: |
|
||||
cd extensions/vscode
|
||||
npm ci
|
||||
env:
|
||||
# https://github.com/microsoft/vscode-ripgrep/issues/9#issuecomment-643965333
|
||||
GITHUB_TOKEN: ${{ secrets.CI_GITHUB_TOKEN }}
|
||||
|
||||
- name: core install
|
||||
- name: Install core dependencies
|
||||
if: steps.core-cache.outputs.cache-hit != 'true'
|
||||
run: |
|
||||
cd core
|
||||
npm ci
|
||||
|
||||
- name: gui install
|
||||
- name: Type check and lint
|
||||
run: |
|
||||
cd core
|
||||
npx tsc --noEmit
|
||||
npm run lint
|
||||
env:
|
||||
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
|
||||
|
||||
gui-checks:
|
||||
needs: [install-root, core-checks]
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version-file: ".nvmrc"
|
||||
|
||||
- uses: actions/cache@v4
|
||||
with:
|
||||
path: node_modules
|
||||
key: ${{ runner.os }}-root-node-modules-${{ hashFiles('package-lock.json') }}
|
||||
|
||||
- uses: actions/cache@v4
|
||||
with:
|
||||
path: core/node_modules
|
||||
key: ${{ runner.os }}-core-node-modules-${{ hashFiles('core/package-lock.json') }}
|
||||
|
||||
- uses: actions/cache@v4
|
||||
id: gui-cache
|
||||
with:
|
||||
path: gui/node_modules
|
||||
key: ${{ runner.os }}-gui-node-modules-${{ hashFiles('gui/package-lock.json') }}
|
||||
|
||||
- name: Install gui dependencies
|
||||
if: steps.gui-cache.outputs.cache-hit != 'true'
|
||||
run: |
|
||||
cd gui
|
||||
npm ci
|
||||
|
||||
- name: binary install
|
||||
- name: Type check
|
||||
run: |
|
||||
cd gui
|
||||
npx tsc --noEmit
|
||||
|
||||
binary-checks:
|
||||
needs: [install-root, core-checks]
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version-file: ".nvmrc"
|
||||
|
||||
- uses: actions/cache@v4
|
||||
with:
|
||||
path: node_modules
|
||||
key: ${{ runner.os }}-root-node-modules-${{ hashFiles('package-lock.json') }}
|
||||
|
||||
- uses: actions/cache@v4
|
||||
with:
|
||||
path: core/node_modules
|
||||
key: ${{ runner.os }}-core-node-modules-${{ hashFiles('core/package-lock.json') }}
|
||||
|
||||
- uses: actions/cache@v4
|
||||
id: binary-cache
|
||||
with:
|
||||
path: binary/node_modules
|
||||
key: ${{ runner.os }}-binary-node-modules-${{ hashFiles('binary/package-lock.json') }}
|
||||
|
||||
- name: Install binary dependencies
|
||||
if: steps.binary-cache.outputs.cache-hit != 'true'
|
||||
run: |
|
||||
cd binary
|
||||
npm ci
|
||||
|
||||
- name: extensions/vscode checks
|
||||
- name: Type check
|
||||
run: |
|
||||
cd binary
|
||||
npx tsc --noEmit
|
||||
|
||||
vscode-checks:
|
||||
needs: [install-root, core-checks]
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version-file: ".nvmrc"
|
||||
|
||||
- uses: actions/cache@v4
|
||||
with:
|
||||
path: node_modules
|
||||
key: ${{ runner.os }}-root-node-modules-${{ hashFiles('package-lock.json') }}
|
||||
|
||||
- uses: actions/cache@v4
|
||||
with:
|
||||
path: core/node_modules
|
||||
key: ${{ runner.os }}-core-node-modules-${{ hashFiles('core/package-lock.json') }}
|
||||
|
||||
- uses: actions/cache@v4
|
||||
id: vscode-cache
|
||||
with:
|
||||
path: extensions/vscode/node_modules
|
||||
key: ${{ runner.os }}-vscode-node-modules-${{ hashFiles('extensions/vscode/package-lock.json') }}
|
||||
|
||||
- name: Install vscode dependencies
|
||||
if: steps.vscode-cache.outputs.cache-hit != 'true'
|
||||
run: |
|
||||
cd extensions/vscode
|
||||
npm ci
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.CI_GITHUB_TOKEN }}
|
||||
|
||||
- name: Type check and lint
|
||||
run: |
|
||||
cd extensions/vscode
|
||||
npx tsc --noEmit
|
||||
npm run lint
|
||||
|
||||
core-tests:
|
||||
needs: [core-checks]
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version-file: ".nvmrc"
|
||||
|
||||
- uses: actions/cache@v4
|
||||
with:
|
||||
path: core/node_modules
|
||||
key: ${{ runner.os }}-core-node-modules-${{ hashFiles('core/package-lock.json') }}
|
||||
|
||||
- name: Run core tests
|
||||
run: |
|
||||
cd core
|
||||
npm test
|
||||
|
||||
vscode-tests:
|
||||
needs: [vscode-checks, core-checks]
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version-file: ".nvmrc"
|
||||
|
||||
- uses: actions/cache@v4
|
||||
with:
|
||||
path: extensions/vscode/node_modules
|
||||
key: ${{ runner.os }}-vscode-node-modules-${{ hashFiles('extensions/vscode/package-lock.json') }}
|
||||
|
||||
- uses: actions/cache@v4
|
||||
with:
|
||||
path: core/node_modules
|
||||
key: ${{ runner.os }}-core-node-modules-${{ hashFiles('core/package-lock.json') }}
|
||||
|
||||
- name: Install Xvfb for Linux and run e2e tests
|
||||
run: |
|
||||
sudo apt-get install -y xvfb # Install Xvfb
|
||||
|
|
@ -97,29 +222,31 @@ jobs:
|
|||
npm run package
|
||||
npm run e2e:ci
|
||||
|
||||
- name: core checks
|
||||
run: |
|
||||
cd core
|
||||
npm ci
|
||||
npx tsc --noEmit
|
||||
npm run lint
|
||||
gui-tests:
|
||||
needs: [gui-checks, core-checks]
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version-file: ".nvmrc"
|
||||
|
||||
- uses: actions/cache@v4
|
||||
id: gui-cache
|
||||
with:
|
||||
path: gui/node_modules
|
||||
key: ${{ runner.os }}-gui-node-modules-${{ hashFiles('gui/package-lock.json') }}
|
||||
|
||||
- uses: actions/cache@v4
|
||||
with:
|
||||
path: core/node_modules
|
||||
key: ${{ runner.os }}-core-node-modules-${{ hashFiles('core/package-lock.json') }}
|
||||
|
||||
- name: Install GUI dependencies
|
||||
if: steps.gui-cache.outputs.cache-hit != 'true'
|
||||
run: cd gui && npm ci
|
||||
env:
|
||||
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
|
||||
|
||||
- name: gui checks
|
||||
run: |
|
||||
cd gui
|
||||
npx tsc --noEmit
|
||||
|
||||
- name: binary checks
|
||||
run: |
|
||||
cd binary
|
||||
npx tsc --noEmit
|
||||
|
||||
- name: Run core tests
|
||||
run: |
|
||||
cd core
|
||||
npm test
|
||||
GITHUB_TOKEN: ${{ secrets.CI_GITHUB_TOKEN }}
|
||||
|
||||
- name: Run gui tests
|
||||
run: |
|
||||
|
|
|
|||
10
.vscode/tasks.json
vendored
10
.vscode/tasks.json
vendored
|
|
@ -28,6 +28,9 @@
|
|||
"vscode-extension:continue-ui:build",
|
||||
// // To bundle the code the same way we do for publishing
|
||||
"vscode-extension:esbuild",
|
||||
// To ensure extension.js is regenerated even if
|
||||
// vscode-extension:esbuild was already running in background
|
||||
"vscode-extension:esbuild-notify",
|
||||
// Start the React app that is used in the extension
|
||||
"gui:dev"
|
||||
],
|
||||
|
|
@ -36,6 +39,13 @@
|
|||
"isDefault": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"label": "vscode-extension:esbuild-notify",
|
||||
"dependsOn": ["vscode-extension:esbuild"],
|
||||
"type": "npm",
|
||||
"script": "esbuild-notify",
|
||||
"path": "extensions/vscode"
|
||||
},
|
||||
{
|
||||
"label": "vscode-extension:esbuild",
|
||||
"dependsOn": ["vscode-extension:continue-ui:build"],
|
||||
|
|
|
|||
|
|
@ -118,9 +118,6 @@ async function installNodeModuleInTempDirAndCopyToCurrent(packageName, toCopy) {
|
|||
}
|
||||
|
||||
(async () => {
|
||||
fs.mkdirSync("out/node_modules", { recursive: true });
|
||||
fs.mkdirSync("bin/node_modules", { recursive: true });
|
||||
|
||||
console.log("[info] Downloading prebuilt lancedb...");
|
||||
for (const target of targets) {
|
||||
if (targetToLanceDb[target]) {
|
||||
|
|
|
|||
|
|
@ -21,6 +21,7 @@ import {
|
|||
IdeSettings,
|
||||
IdeType,
|
||||
ILLM,
|
||||
LLMOptions,
|
||||
ModelDescription,
|
||||
RerankerDescription,
|
||||
SerializedContinueConfig,
|
||||
|
|
@ -454,8 +455,12 @@ async function intermediateToFinalConfig(
|
|||
) {
|
||||
config.embeddingsProvider = new embeddingsProviderClass();
|
||||
} else {
|
||||
const llmOptions: LLMOptions = {
|
||||
...options,
|
||||
model: "UNSPECIFIED",
|
||||
};
|
||||
config.embeddingsProvider = new embeddingsProviderClass(
|
||||
options,
|
||||
llmOptions,
|
||||
(url: string | URL, init: any) =>
|
||||
fetchwithRequestOptions(url, init, {
|
||||
...config.requestOptions,
|
||||
|
|
@ -483,7 +488,11 @@ async function intermediateToFinalConfig(
|
|||
config.reranker = new LLMReranker(llm);
|
||||
}
|
||||
} else if (rerankerClass) {
|
||||
config.reranker = new rerankerClass(params);
|
||||
const llmOptions: LLMOptions = {
|
||||
...params,
|
||||
model: "rerank-2",
|
||||
};
|
||||
config.reranker = new rerankerClass(llmOptions);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -136,53 +136,65 @@ class MCPConnection {
|
|||
}
|
||||
}
|
||||
|
||||
const capabilities = this.client.getServerCapabilities();
|
||||
|
||||
// Resources <—> Context Provider
|
||||
const { resources } = await this.client.listResources({}, { signal });
|
||||
if (capabilities?.resources) {
|
||||
const { resources } = await this.client.listResources({}, { signal });
|
||||
const submenuItems = resources.map((resource: any) => ({
|
||||
title: resource.name,
|
||||
description: resource.description,
|
||||
id: resource.uri,
|
||||
}));
|
||||
|
||||
const submenuItems = resources.map((resource: any) => ({
|
||||
title: resource.name,
|
||||
description: resource.description,
|
||||
id: MCPContextProvider.encodeMCPResourceId(mcpId, resource.uri),
|
||||
}));
|
||||
if (!config.contextProviders) {
|
||||
config.contextProviders = [];
|
||||
}
|
||||
|
||||
if (!config.contextProviders) {
|
||||
config.contextProviders = [];
|
||||
config.contextProviders.push(
|
||||
new MCPContextProvider({
|
||||
submenuItems,
|
||||
}),
|
||||
);
|
||||
}
|
||||
|
||||
config.contextProviders!.push(new MCPContextProvider({ submenuItems }));
|
||||
|
||||
// Tools <—> Tools
|
||||
const { tools } = await this.client.listTools({}, { signal });
|
||||
const continueTools: Tool[] = tools.map((tool) => ({
|
||||
displayTitle: tool.name,
|
||||
function: {
|
||||
description: tool.description,
|
||||
name: tool.name,
|
||||
parameters: tool.inputSchema,
|
||||
},
|
||||
readonly: false,
|
||||
type: "function",
|
||||
wouldLikeTo: `use the ${tool.name} tool`,
|
||||
uri: `mcp://${encodeURIComponent(mcpId)}/${tool.name}`,
|
||||
}));
|
||||
if (capabilities?.tools) {
|
||||
const { tools } = await this.client.listTools({}, { signal });
|
||||
const continueTools: Tool[] = tools.map((tool: any) => ({
|
||||
displayTitle: tool.name,
|
||||
function: {
|
||||
description: tool.description,
|
||||
name: tool.name,
|
||||
parameters: tool.inputSchema,
|
||||
},
|
||||
readonly: false,
|
||||
type: "function",
|
||||
wouldLikeTo: `use the ${tool.name} tool`,
|
||||
uri: `mcp://${tool.name}`,
|
||||
}));
|
||||
|
||||
config.tools = [...config.tools, ...continueTools];
|
||||
|
||||
// Prompts <—> Slash commands
|
||||
const { prompts } = await this.client.listPrompts({}, { signal });
|
||||
if (!config.slashCommands) {
|
||||
config.slashCommands = [];
|
||||
config.tools = [...config.tools, ...continueTools];
|
||||
}
|
||||
|
||||
const slashCommands: SlashCommand[] = prompts.map((prompt) => {
|
||||
return constructMcpSlashCommand(
|
||||
this.client,
|
||||
prompt.name,
|
||||
prompt.description,
|
||||
prompt.arguments?.map((a) => a.name),
|
||||
// Prompts <—> Slash commands
|
||||
if (capabilities?.prompts) {
|
||||
const { prompts } = await this.client.listPrompts({}, { signal });
|
||||
if (!config.slashCommands) {
|
||||
config.slashCommands = [];
|
||||
}
|
||||
|
||||
const slashCommands: SlashCommand[] = prompts.map((prompt: any) =>
|
||||
constructMcpSlashCommand(
|
||||
this.client,
|
||||
prompt.name,
|
||||
prompt.description,
|
||||
prompt.arguments?.map((a: any) => a.name),
|
||||
),
|
||||
);
|
||||
});
|
||||
config.slashCommands!.push(...slashCommands);
|
||||
|
||||
config.slashCommands.push(...slashCommands);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -65,6 +65,7 @@ const PROVIDER_SUPPORTS_IMAGES: string[] = [
|
|||
"openrouter",
|
||||
"vertexai",
|
||||
"azure",
|
||||
"scaleway",
|
||||
];
|
||||
|
||||
const MODEL_SUPPORTS_IMAGES: string[] = [
|
||||
|
|
|
|||
27
core/llm/llms/Scaleway.ts
Normal file
27
core/llm/llms/Scaleway.ts
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
import OpenAI from "./OpenAI";
|
||||
|
||||
import { LLMOptions } from "../../index.js";
|
||||
|
||||
|
||||
class Scaleway extends OpenAI {
|
||||
static providerName = "scaleway";
|
||||
static defaultOptions: Partial<LLMOptions> = {
|
||||
apiBase: "https://api.scaleway.ai/v1/",
|
||||
model: "qwen2.5-coder-32b-instruct",
|
||||
useLegacyCompletionsEndpoint: false,
|
||||
};
|
||||
|
||||
private static MODEL_IDS: { [name: string]: string } = {
|
||||
"llama3.1-8b": "llama-3.1-8b-instruct",
|
||||
"llama3.1-70b": "llama-3.1-70b-instruct",
|
||||
"mistral-nemo": "mistral-nemo-instruct-2407",
|
||||
"qwen2.5-coder-32b": "qwen2.5-coder-32b-instruct",
|
||||
"pixtral": "pixtral-12b-2409",
|
||||
};
|
||||
|
||||
protected _convertModelName(model: string) {
|
||||
return Scaleway.MODEL_IDS[model] || this.model;
|
||||
}
|
||||
}
|
||||
|
||||
export default Scaleway;
|
||||
|
|
@ -42,6 +42,7 @@ import OpenRouter from "./OpenRouter";
|
|||
import Replicate from "./Replicate";
|
||||
import SageMaker from "./SageMaker";
|
||||
import SambaNova from "./SambaNova";
|
||||
import Scaleway from "./Scaleway";
|
||||
import SiliconFlow from "./SiliconFlow";
|
||||
import ContinueProxy from "./stubs/ContinueProxy";
|
||||
import TestLLM from "./Test";
|
||||
|
|
@ -96,6 +97,7 @@ export const LLMClasses = [
|
|||
VertexAI,
|
||||
xAI,
|
||||
SiliconFlow,
|
||||
Scaleway,
|
||||
];
|
||||
|
||||
export async function llmFromDescription(
|
||||
|
|
|
|||
|
|
@ -1,11 +1,11 @@
|
|||
export enum BuiltInToolNames {
|
||||
ReadFile = "read_file",
|
||||
ReadCurrentlyOpenFile = "read_currently_open_file",
|
||||
CreateNewFile = "create_new_file",
|
||||
RunTerminalCommand = "run_terminal_command",
|
||||
ViewSubdirectory = "view_subdirectory",
|
||||
ViewRepoMap = "view_repo_map",
|
||||
ExactSearch = "exact_search",
|
||||
SearchWeb = "search_web",
|
||||
ViewDiff = "view_diff",
|
||||
}
|
||||
ReadFile = "builtin_read_file",
|
||||
ReadCurrentlyOpenFile = "builtin_read_currently_open_file",
|
||||
CreateNewFile = "builtin_create_new_file",
|
||||
RunTerminalCommand = "builtin_run_terminal_command",
|
||||
ViewSubdirectory = "builtin_view_subdirectory",
|
||||
ViewRepoMap = "builtin_view_repo_map",
|
||||
ExactSearch = "builtin_exact_search",
|
||||
SearchWeb = "builtin_search_web",
|
||||
ViewDiff = "builtin_view_diff",
|
||||
}
|
||||
49
docs/docs/customize/model-providers/more/scaleway.md
Normal file
49
docs/docs/customize/model-providers/more/scaleway.md
Normal file
|
|
@ -0,0 +1,49 @@
|
|||
---
|
||||
title: Scaleway
|
||||
---
|
||||
|
||||
:::info
|
||||
|
||||
Scaleway Generative APIs give you instant access to leading AI models 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).
|
||||
Read the [quickstart documentation here](https://www.scaleway.com/en/docs/ai-data/generative-apis/quickstart/).
|
||||
|
||||
:::
|
||||
|
||||
## Chat model
|
||||
|
||||
We recommend configuring **Qwen2.5-Coder-32B-Instruct** as your chat model.
|
||||
[Click here](https://www.scaleway.com/en/docs/ai-data/generative-apis/reference-content/supported-models/) to see the list of available chat models.
|
||||
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "Qwen2.5-Coder-32B-Instruct",
|
||||
"provider": "scaleway",
|
||||
"model": "qwen2.5-coder-32b-instruct",
|
||||
"apiKey": "[API_KEY]"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
## Autocomplete model
|
||||
|
||||
Scaleway 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 **BGE-Multilingual-Gemma2** as your embeddings model.
|
||||
|
||||
```json title="config.json"
|
||||
{
|
||||
"embeddingsProvider": {
|
||||
"provider": "scaleway",
|
||||
"model": "bge-multilingual-gemma2",
|
||||
"apiKey": "[API_KEY]"
|
||||
}
|
||||
}
|
||||
```
|
||||
|
|
@ -18,7 +18,7 @@ If you have any problems, see the [troubleshooting guide](troubleshooting.md) or
|
|||
|
||||
## JetBrains
|
||||
|
||||
1. Open your JetBrains IDE and open **Settings** using <kbd>cmd/ctrl</kbd> + <kbd>,</kbd>
|
||||
1. Open your JetBrains IDE and open **Settings** using <kbd>Ctrl</kbd> + <kbd>+Alt</kbd> + <kbd>S</kbd>
|
||||
2. Select **Plugins** on the sidebar and search for "Continue" in the marketplace
|
||||
3. Click `Install`, which will cause the Continue logo to show up on the right toolbar
|
||||
|
||||
|
|
|
|||
|
|
@ -365,6 +365,7 @@ Customizable UI settings to control interface appearance and behavior.
|
|||
- `fontSize`: Specifies font size for UI elements.
|
||||
- `displayRawMarkdown`: If `true`, shows raw markdown in responses.
|
||||
- `showChatScrollbar`: If `true`, enables a scrollbar in the chat window.
|
||||
- `codeWrap`: If `true`, enables text wrapping in code blocks.
|
||||
|
||||
Example:
|
||||
|
||||
|
|
@ -373,7 +374,9 @@ Example:
|
|||
"ui": {
|
||||
"codeBlockToolbarPosition": "bottom",
|
||||
"fontSize": 14,
|
||||
"displayRawMarkdown": false
|
||||
"displayRawMarkdown": false,
|
||||
"showChatScrollbar": false,
|
||||
"codeWrap": false
|
||||
}
|
||||
}
|
||||
```
|
||||
|
|
|
|||
|
|
@ -5,10 +5,12 @@ 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.62 - 2024-12-10
|
||||
### Added
|
||||
* Tool use
|
||||
* Support for Model Context Protocol
|
||||
### Fixed
|
||||
* hotfix: context providers no longer hidden when not in edit mode
|
||||
|
||||
## 0.8.59 - 2024-11-25
|
||||
### Fixed
|
||||
|
|
|
|||
|
|
@ -1,7 +1,8 @@
|
|||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"title": "config.json",
|
||||
"$ref": "#/definitions/SerializedContinueConfig",
|
||||
"definitions": {
|
||||
"$ref": "#/$defs/SerializedContinueConfig",
|
||||
"$defs": {
|
||||
"BaseCompletionOptions": {
|
||||
"title": "BaseCompletionOptions",
|
||||
"type": "object",
|
||||
|
|
@ -154,7 +155,7 @@
|
|||
"clientCertificate": {
|
||||
"title": "Client Certificate",
|
||||
"description": "Client certificate to use when making the HTTP request",
|
||||
"$ref": "#/definitions/ClientCertificateOptions"
|
||||
"$ref": "#/$defs/ClientCertificateOptions"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
@ -208,7 +209,8 @@
|
|||
"kindo",
|
||||
"moonshot",
|
||||
"siliconflow",
|
||||
"function-network"
|
||||
"function-network",
|
||||
"scaleway"
|
||||
],
|
||||
"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)",
|
||||
|
|
@ -248,7 +250,8 @@
|
|||
"### Secure AI management software that helps enterprises adopt and manage AI across their workforce. To get started, obtain an API key from [the Kindo console](https://app.kindo.ai/settings/api), and see the [website](https://app.kindo.ai//)",
|
||||
"### Moonshot\nTo get started with Moonshot AI, obtain your API key from [Moonshot AI](https://platform.moonshot.cn/). Moonshot AI provides high-quality large language models with competitive pricing.\n> [Reference](https://platform.moonshot.cn/docs/api)",
|
||||
"### SiliconFlow\nTo get started with SiliconFlow, obtain your API key from [SiliconCloud](https://cloud.siliconflow.cn/account/ak). SiliconCloud provides cost-effective GenAI services based on excellent open source basic models.\n> [Models](https://siliconflow.cn/zh-cn/models)",
|
||||
"### Function Network offers private, affordable user-owned AI\nTo get started with Function Network, obtain your API key from [Function Network](https://www.function.network/join-waitlist). Function Network provides a variety of models for chat, completion, and embeddings."
|
||||
"### Function Network offers private, affordable user-owned AI\nTo get started with Function Network, obtain your API key from [Function Network](https://www.function.network/join-waitlist). Function Network provides a variety of models for chat, completion, and embeddings.",
|
||||
"### Scaleway\n Generative APIs are serverless endpoints for the most popular AI models.\nHosted in European data centers and priced competitively per million tokens used, models served by Scaleway are ideal for users requiring low latency, full data privacy, and 100% compliance with EU AI Act. To get access to the Scaleway Generative APIs, read the [Quickstart guide](https://www.scaleway.com/en/docs/ai-data/generative-apis/quickstart/) and get a [valid API key](https://www.scaleway.com/en/docs/identity-and-access-management/iam/how-to/create-api-keys/)."
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
|
|
@ -386,7 +389,7 @@
|
|||
},
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/definitions/BaseCompletionOptions"
|
||||
"$ref": "#/$defs/BaseCompletionOptions"
|
||||
}
|
||||
]
|
||||
},
|
||||
|
|
@ -408,7 +411,7 @@
|
|||
},
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/definitions/RequestOptions"
|
||||
"$ref": "#/$defs/RequestOptions"
|
||||
}
|
||||
]
|
||||
},
|
||||
|
|
@ -476,7 +479,8 @@
|
|||
"sambanova",
|
||||
"nebius",
|
||||
"xAI",
|
||||
"kindo"
|
||||
"kindo",
|
||||
"scaleway"
|
||||
]
|
||||
}
|
||||
},
|
||||
|
|
@ -1266,6 +1270,38 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"if": {
|
||||
"properties": {
|
||||
"provider": {
|
||||
"enum": ["scaleway"]
|
||||
}
|
||||
},
|
||||
"required": ["provider"]
|
||||
},
|
||||
"then": {
|
||||
"properties": {
|
||||
"model": {
|
||||
"anyOf": [
|
||||
{
|
||||
"enum": [
|
||||
"llama-3.1-8b-instruct",
|
||||
"llama-3.1-70b-instruct",
|
||||
"mistral-nemo-instruct-2407",
|
||||
"qwen2.5-coder-32b-instruct",
|
||||
"pixtral-12b-2409"
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "string"
|
||||
}
|
||||
],
|
||||
"markdownDescription": "Select a pre-defined option, or find the exact model string from Scaleway [here](https://www.scaleway.com/en/docs/ai-data/generative-apis/reference-content/supported-models/).",
|
||||
"x-intellij-html-description": "Select a pre-defined option, or find the exact model string from Scaleway <a href='https://www.scaleway.com/en/docs/ai-data/generative-apis/reference-content/supported-models/'>here</a>."
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"if": {
|
||||
"properties": {
|
||||
|
|
@ -2194,7 +2230,7 @@
|
|||
},
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/definitions/RequestOptions"
|
||||
"$ref": "#/$defs/RequestOptions"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
@ -2416,7 +2452,7 @@
|
|||
],
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/ModelDescription"
|
||||
"$ref": "#/$defs/ModelDescription"
|
||||
}
|
||||
},
|
||||
"systemMessage": {
|
||||
|
|
@ -2438,7 +2474,7 @@
|
|||
},
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/definitions/BaseCompletionOptions"
|
||||
"$ref": "#/$defs/BaseCompletionOptions"
|
||||
}
|
||||
]
|
||||
},
|
||||
|
|
@ -2447,7 +2483,7 @@
|
|||
"description": "Default request options for all fetch requests from models and context providers. These will be overriden by any model-specific request options.",
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/definitions/RequestOptions"
|
||||
"$ref": "#/$defs/RequestOptions"
|
||||
}
|
||||
]
|
||||
},
|
||||
|
|
@ -2458,7 +2494,7 @@
|
|||
"default": [],
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/SlashCommand"
|
||||
"$ref": "#/$defs/SlashCommand"
|
||||
}
|
||||
},
|
||||
"customCommands": {
|
||||
|
|
@ -2474,7 +2510,7 @@
|
|||
],
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/CustomCommand"
|
||||
"$ref": "#/$defs/CustomCommand"
|
||||
}
|
||||
},
|
||||
"contextProviders": {
|
||||
|
|
@ -2484,7 +2520,7 @@
|
|||
"default": [],
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/ContextProviderWithParams"
|
||||
"$ref": "#/$defs/ContextProviderWithParams"
|
||||
}
|
||||
},
|
||||
"userToken": {
|
||||
|
|
@ -2533,7 +2569,8 @@
|
|||
"watsonx",
|
||||
"lmstudio",
|
||||
"siliconflow",
|
||||
"function-network"
|
||||
"function-network",
|
||||
"scaleway"
|
||||
]
|
||||
},
|
||||
"model": {
|
||||
|
|
@ -2548,7 +2585,7 @@
|
|||
"requestOptions": {
|
||||
"title": "Request Options",
|
||||
"description": "Request options to be used in any fetch requests made by the embeddings provider",
|
||||
"$ref": "#/definitions/RequestOptions"
|
||||
"$ref": "#/$defs/RequestOptions"
|
||||
},
|
||||
"maxChunkSize": {
|
||||
"title": "Maximum Chunk Size",
|
||||
|
|
@ -2567,7 +2604,7 @@
|
|||
"region": {
|
||||
"title": "Region",
|
||||
"description": "The region where the model is hosted",
|
||||
"$ref": "#/definitions/ModelDescription/properties/region"
|
||||
"$ref": "#/$defs/ModelDescription/properties/region"
|
||||
},
|
||||
"profile": {
|
||||
"title": "Profile",
|
||||
|
|
@ -2681,7 +2718,8 @@
|
|||
"rerank-english-v3.0",
|
||||
"rerank-multilingual-v3.0",
|
||||
"rerank-english-v2.0",
|
||||
"rerank-multilingual-v2.0"
|
||||
"rerank-multilingual-v2.0",
|
||||
"rerank-v3.5"
|
||||
]
|
||||
},
|
||||
"apiBase": {
|
||||
|
|
@ -2836,12 +2874,12 @@
|
|||
},
|
||||
"oneOf": [
|
||||
{
|
||||
"$ref": "#/definitions/ModelDescription"
|
||||
"$ref": "#/$defs/ModelDescription"
|
||||
},
|
||||
{
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/ModelDescription"
|
||||
"$ref": "#/$defs/ModelDescription"
|
||||
}
|
||||
}
|
||||
]
|
||||
|
|
@ -2996,7 +3034,7 @@
|
|||
"items": {
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/definitions/ContextProviderWithParams"
|
||||
"$ref": "#/$defs/ContextProviderWithParams"
|
||||
},
|
||||
{
|
||||
"properties": {
|
||||
|
|
|
|||
4
extensions/vscode/package-lock.json
generated
4
extensions/vscode/package-lock.json
generated
|
|
@ -1,12 +1,12 @@
|
|||
{
|
||||
"name": "continue",
|
||||
"version": "0.9.248",
|
||||
"version": "0.9.243",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "continue",
|
||||
"version": "0.9.248",
|
||||
"version": "0.9.243",
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"@continuedev/fetch": "^1.0.3",
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
"name": "continue",
|
||||
"icon": "media/icon.png",
|
||||
"author": "Continue Dev, Inc",
|
||||
"version": "0.9.248",
|
||||
"version": "0.9.243",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/continuedev/continue"
|
||||
|
|
@ -602,6 +602,7 @@
|
|||
"vscode:prepublish": "npm run esbuild-base -- --minify",
|
||||
"esbuild": "npm run esbuild-base -- --sourcemap",
|
||||
"esbuild-watch": "npm run esbuild-base -- --sourcemap --watch",
|
||||
"esbuild-notify": "npm run esbuild-base -- --sourcemap --notify",
|
||||
"esbuild:visualize": "esbuild-visualizer --metadata ./build/meta.json --filename ./build/stats.html --open",
|
||||
"tsc": "tsc -p ./",
|
||||
"tsc:check": "tsc -p ./ --noEmit",
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
const esbuild = require("esbuild");
|
||||
const fs = require("fs");
|
||||
|
||||
const flags = process.argv.slice(2);
|
||||
|
||||
|
|
@ -31,7 +32,6 @@ const esbuildConfig = {
|
|||
throw new Error(result.errors);
|
||||
} else {
|
||||
try {
|
||||
const fs = require("fs");
|
||||
fs.writeFileSync(
|
||||
"./build/meta.json",
|
||||
JSON.stringify(result.metafile, null, 2),
|
||||
|
|
@ -52,6 +52,28 @@ const esbuildConfig = {
|
|||
if (flags.includes("--watch")) {
|
||||
const ctx = await esbuild.context(esbuildConfig);
|
||||
await ctx.watch();
|
||||
} else if (flags.includes("--notify")) {
|
||||
const inFile = esbuildConfig.entryPoints[0];
|
||||
const outFile = esbuildConfig.outfile;
|
||||
|
||||
// The watcher automatically notices changes to source files
|
||||
// so the only thing it needs to be notified about is if the
|
||||
// output file gets removed.
|
||||
if (fs.existsSync (outFile)) {
|
||||
console.log("VS Code Extension esbuild up to date");
|
||||
return;
|
||||
}
|
||||
|
||||
fs.watchFile(outFile, (current, previous) => {
|
||||
if (current.size > 0) {
|
||||
console.log("VS Code Extension esbuild rebuild complete");
|
||||
fs.unwatchFile(outFile);
|
||||
process.exit(0);
|
||||
}
|
||||
});
|
||||
|
||||
console.log("Triggering VS Code Extension esbuild rebuild...");
|
||||
fs.utimesSync(inFile, new Date(), new Date());
|
||||
} else {
|
||||
await esbuild.build(esbuildConfig);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ const continueDir = path.join(__dirname, "..", "..", "..");
|
|||
function copyConfigSchema() {
|
||||
// Modify and copy for .continuerc.json
|
||||
const schema = JSON.parse(fs.readFileSync("config_schema.json", "utf8"));
|
||||
schema.definitions.SerializedContinueConfig.properties.mergeBehavior = {
|
||||
schema.$defs.SerializedContinueConfig.properties.mergeBehavior = {
|
||||
type: "string",
|
||||
enum: ["merge", "overwrite"],
|
||||
default: "merge",
|
||||
|
|
|
|||
|
|
@ -456,13 +456,16 @@ const getCommandsMap: (
|
|||
hideGUI();
|
||||
} else {
|
||||
void sidebar.webviewProtocol?.request(
|
||||
"focusContinueInput",
|
||||
"focusContinueInputWithNewSession",
|
||||
undefined,
|
||||
);
|
||||
}
|
||||
} else {
|
||||
focusGUI();
|
||||
sidebar.webviewProtocol?.request("focusContinueInput", undefined);
|
||||
sidebar.webviewProtocol?.request(
|
||||
"focusContinueInputWithNewSession",
|
||||
undefined,
|
||||
);
|
||||
void addHighlightedCodeToContext(sidebar.webviewProtocol);
|
||||
}
|
||||
},
|
||||
|
|
|
|||
|
|
@ -1,42 +1,13 @@
|
|||
# Welcome to your VS Code Extension
|
||||
|
||||
## What's in the folder
|
||||
|
||||
* This folder contains all of the files necessary for your extension.
|
||||
* `package.json` - this is the manifest file in which you declare your extension and command.
|
||||
* The sample plugin registers a command and defines its title and command name. With this information VS Code can show the command in the command palette. It doesn’t yet need to load the plugin.
|
||||
* `src/extension.ts` - this is the main file where you will provide the implementation of your command.
|
||||
* The file exports one function, `activate`, which is called the very first time your extension is activated (in this case by executing the command). Inside the `activate` function we call `registerCommand`.
|
||||
* We pass the function containing the implementation of the command as the second parameter to `registerCommand`.
|
||||
# Welcome to the Continue Visual Studio Code Extension
|
||||
|
||||
## Get up and running straight away
|
||||
|
||||
* Press `F5` to open a new window with your extension loaded.
|
||||
* Run your command from the command palette by pressing (`Ctrl+Shift+P` or `Cmd+Shift+P` on Mac) and typing `Hello World`.
|
||||
* Set breakpoints in your code inside `src/extension.ts` to debug your extension.
|
||||
* Find output from your extension in the debug console.
|
||||
- Open the root of the continue repository in visual studio code
|
||||
- Press `F5` to open a new window with your extension loaded.
|
||||
- The continue in the launched vs code instance uses `extensions/.continue-debug` as configuration folder
|
||||
- Find output from your extension in the debug console.
|
||||
|
||||
## Make changes
|
||||
|
||||
* You can relaunch the extension from the debug toolbar after changing code in `src/extension.ts`.
|
||||
* You can also reload (`Ctrl+R` or `Cmd+R` on Mac) the VS Code window with your extension to load your changes.
|
||||
|
||||
## Explore the API
|
||||
|
||||
* You can open the full set of our API when you open the file `node_modules/@types/vscode/index.d.ts`.
|
||||
|
||||
## Run tests
|
||||
|
||||
* Open the debug viewlet (`Ctrl+Shift+D` or `Cmd+Shift+D` on Mac) and from the launch configuration dropdown pick `Extension Tests`.
|
||||
* Press `F5` to run the tests in a new window with your extension loaded.
|
||||
* See the output of the test result in the debug console.
|
||||
* Make changes to `src/test/suite/extension.test.ts` or create new test files inside the `test/suite` folder.
|
||||
* The provided test runner will only consider files matching the name pattern `**.test.ts`.
|
||||
* You can create folders inside the `test` folder to structure your tests any way you want.
|
||||
|
||||
## Go further
|
||||
|
||||
* [Follow UX guidelines](https://code.visualstudio.com/api/ux-guidelines/overview) to create extensions that seamlessly integrate with VS Code's native interface and patterns.
|
||||
* Reduce the extension size and improve the startup time by [bundling your extension](https://code.visualstudio.com/api/working-with-extensions/bundling-extension).
|
||||
* [Publish your extension](https://code.visualstudio.com/api/working-with-extensions/publishing-extension) on the VS Code extension marketplace.
|
||||
* Automate builds by setting up [Continuous Integration](https://code.visualstudio.com/api/working-with-extensions/continuous-integration).
|
||||
- You can relaunch the extension from the debug toolbar after changing code.
|
||||
- You can also reload (`Ctrl+R` or `Cmd+R` on Mac) the VS Code window with your extension to load your changes.
|
||||
|
|
|
|||
|
|
@ -3,15 +3,15 @@ import { SessionMetadata } from "core";
|
|||
import React, { useContext, useEffect, useState } from "react";
|
||||
import { useNavigate } from "react-router-dom";
|
||||
import { Input } from "..";
|
||||
import HeaderButtonWithToolTip from "../gui/HeaderButtonWithToolTip";
|
||||
import { useAppDispatch, useAppSelector } from "../../redux/hooks";
|
||||
import { IdeMessengerContext } from "../../context/IdeMessenger";
|
||||
import { useAppDispatch, useAppSelector } from "../../redux/hooks";
|
||||
import {
|
||||
deleteSession,
|
||||
getSession,
|
||||
loadSession,
|
||||
updateSession,
|
||||
} from "../../redux/thunks/session";
|
||||
import HeaderButtonWithToolTip from "../gui/HeaderButtonWithToolTip";
|
||||
|
||||
function lastPartOfPath(path: string): string {
|
||||
const sep = path.includes("/") ? "/" : "\\";
|
||||
|
|
@ -88,7 +88,6 @@ export function HistoryTableRow({
|
|||
}}
|
||||
>
|
||||
<div className="flex-1 cursor-pointer space-y-1">
|
||||
{`history-row-${index}`}
|
||||
{editing ? (
|
||||
<div className="text-md">
|
||||
<Input
|
||||
|
|
|
|||
|
|
@ -312,7 +312,6 @@ Select the \`GPT-4o\` model below to complete your provider configuration, but n
|
|||
models.llama3170bChat,
|
||||
models.llama318bChat,
|
||||
{ ...models.mixtralTrial, title: "Mixtral" },
|
||||
models.llama270bChat,
|
||||
{
|
||||
...models.AUTODETECT,
|
||||
params: {
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"scripts": {
|
||||
"tsc:watch": "concurrently -n gui,vscode,core,binary -c cyan,magenta,yellow,green \"npm run tsc:watch:gui\" \"npm run tsc:watch:vscode\" \"npm run tsc:watch:core\" \"npm run tsc:watch:binary\"",
|
||||
"tsc:watch": "npx concurrently -n gui,vscode,core,binary -c cyan,magenta,yellow,green \"npm run tsc:watch:gui\" \"npm run tsc:watch:vscode\" \"npm run tsc:watch:core\" \"npm run tsc:watch:binary\"",
|
||||
"tsc:watch:gui": "tsc --project gui/tsconfig.json --watch --noEmit --pretty",
|
||||
"tsc:watch:vscode": "tsc --project extensions/vscode/tsconfig.json --watch --noEmit --pretty",
|
||||
"tsc:watch:core": "tsc --project core/tsconfig.json --watch --noEmit --pretty",
|
||||
|
|
|
|||
|
|
@ -53,6 +53,7 @@ They are concerned with:
|
|||
- [ ] Replicate
|
||||
- [ ] SageMaker
|
||||
- [x] SambaNova
|
||||
- [x] Scaleway
|
||||
- [ ] Silicon Flow
|
||||
- [x] TextGen Web UI
|
||||
- [x] Together
|
||||
|
|
|
|||
|
|
@ -67,6 +67,8 @@ export function constructLlmApi(config: LLMConfig): BaseLlmApi | undefined {
|
|||
return openAICompatible("http://localhost:10000", config);
|
||||
case "nvidia":
|
||||
return openAICompatible("https://integrate.api.nvidia.com/v1/", config);
|
||||
case "scaleway":
|
||||
return openAICompatible("https://api.scaleway.ai/v1/", config);
|
||||
case "fireworks":
|
||||
return openAICompatible("https://api.fireworks.ai/inference/v1/", config);
|
||||
case "together":
|
||||
|
|
@ -97,4 +99,5 @@ export {
|
|||
type CompletionCreateParamsStreaming,
|
||||
} from "openai/resources/index";
|
||||
|
||||
// export
|
||||
export type { BaseLlmApi } from "./apis/base.js";
|
||||
|
|
|
|||
|
|
@ -279,6 +279,12 @@ const COMPLETION_TESTS: ({ chatOnly?: boolean } & LlmApiConfig)[] = [
|
|||
apiKey: process.env.NEBIUS_API_KEY!,
|
||||
chatOnly: true,
|
||||
},
|
||||
{
|
||||
provider: "scaleway",
|
||||
model: "llama3.1-8b",
|
||||
apiKey: process.env.SCALEWAY_API_KEY!,
|
||||
chatOnly: true,
|
||||
},
|
||||
];
|
||||
|
||||
const FIM_TESTS: LlmApiConfig[] = [
|
||||
|
|
@ -322,6 +328,11 @@ const EMBEDDINGS_TESTS: LlmApiConfig[] = [
|
|||
model: "BAAI/bge-en-icl",
|
||||
apiKey: process.env.NEBIUS_API_KEY!,
|
||||
},
|
||||
{
|
||||
provider: "scaleway",
|
||||
model: "bge-multilingual-gemma2",
|
||||
apiKey: process.env.SCALEWAY_API_KEY!,
|
||||
},
|
||||
];
|
||||
|
||||
const RERANK_TESTS: LlmApiConfig[] = [
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue