Merge branch 'dallin/dev-data' of https://github.com/continuedev/continue into dallin/dev-data
This commit is contained in:
commit
d1f7ffae84
174 changed files with 10285 additions and 9292 deletions
7
.github/ISSUE_TEMPLATE/bug_report.yml
vendored
7
.github/ISSUE_TEMPLATE/bug_report.yml
vendored
|
|
@ -27,14 +27,15 @@ body:
|
|||
- **Continue version**: v0.9.4
|
||||
- **IDE version**: VSCode 1.85.1
|
||||
- Model: Claude Sonnet 3.5
|
||||
- config.json: `{ "models": ... }`
|
||||
- config.yaml: `models: ...`
|
||||
- OR config.json: `{ "models": ... }`
|
||||
value: |
|
||||
- OS:
|
||||
- Continue version:
|
||||
- IDE version:
|
||||
- Model:
|
||||
- config.json:
|
||||
```json
|
||||
- config:
|
||||
```yaml
|
||||
|
||||
```
|
||||
render: Markdown
|
||||
|
|
|
|||
14
.vscode/tasks.json
vendored
14
.vscode/tasks.json
vendored
|
|
@ -6,16 +6,14 @@
|
|||
"type": "npm",
|
||||
"script": "tsc:watch",
|
||||
"isBackground": true,
|
||||
"problemMatcher": {
|
||||
"base": "$tsc-watch",
|
||||
"background": {
|
||||
"activeOnStart": true,
|
||||
"beginsPattern": "Starting compilation in watch mode...",
|
||||
"endsPattern": "Found 0 errors"
|
||||
}
|
||||
"problemMatcher": ["$tsc-watch"],
|
||||
"group": {
|
||||
"kind": "build",
|
||||
"isDefault": true
|
||||
},
|
||||
"presentation": {
|
||||
"revealProblems": "onProblem"
|
||||
"reveal": "always",
|
||||
"panel": "new"
|
||||
}
|
||||
},
|
||||
// Compile and bundle the extension
|
||||
|
|
|
|||
|
|
@ -10,8 +10,8 @@ import { defaultConfig } from "./default";
|
|||
describe.skip("Test the ConfigHandler and E2E config loading", () => {
|
||||
test("should show only local profile", () => {
|
||||
const profiles = testConfigHandler.listProfiles();
|
||||
expect(profiles.length).toBe(1);
|
||||
expect(profiles[0].id).toBe("local");
|
||||
expect(profiles?.length).toBe(1);
|
||||
expect(profiles?.[0].id).toBe("local");
|
||||
|
||||
const currentProfile = testConfigHandler.currentProfile;
|
||||
expect(currentProfile?.profileDescription.id).toBe("local");
|
||||
|
|
|
|||
|
|
@ -47,59 +47,65 @@ type ConfigUpdateFunction = (payload: ConfigResult<ContinueConfig>) => void;
|
|||
export class ConfigHandler {
|
||||
private readonly globalContext = new GlobalContext();
|
||||
private additionalContextProviders: IContextProvider[] = [];
|
||||
private profiles: ProfileLifecycleManager[];
|
||||
private selectedProfileId: string | null;
|
||||
private selectedOrgId: string | null;
|
||||
private profiles: ProfileLifecycleManager[] | null = null; // null until profiles are loaded
|
||||
private selectedProfileId: string | null = null;
|
||||
private localProfileManager: ProfileLifecycleManager;
|
||||
controlPlaneClient: ControlPlaneClient;
|
||||
|
||||
initializedPromise: Promise<void>;
|
||||
|
||||
constructor(
|
||||
private readonly ide: IDE,
|
||||
private ideSettingsPromise: Promise<IdeSettings>,
|
||||
private readonly writeLog: (text: string) => Promise<void>,
|
||||
private controlPlaneClient: ControlPlaneClient,
|
||||
sessionInfoPromise: Promise<ControlPlaneSessionInfo | undefined>,
|
||||
) {
|
||||
this.ide = ide;
|
||||
this.ideSettingsPromise = ideSettingsPromise;
|
||||
this.writeLog = writeLog;
|
||||
this.controlPlaneClient = new ControlPlaneClient(
|
||||
sessionInfoPromise,
|
||||
ideSettingsPromise,
|
||||
);
|
||||
|
||||
// Set local profile as default
|
||||
const localProfileLoader = new LocalProfileLoader(
|
||||
ide,
|
||||
ideSettingsPromise,
|
||||
controlPlaneClient,
|
||||
this.controlPlaneClient,
|
||||
writeLog,
|
||||
);
|
||||
this.localProfileManager = new ProfileLifecycleManager(
|
||||
localProfileLoader,
|
||||
this.ide,
|
||||
);
|
||||
this.profiles = [this.localProfileManager];
|
||||
this.selectedProfileId = localProfileLoader.description.id;
|
||||
this.selectedOrgId = null;
|
||||
|
||||
void this.init();
|
||||
// Profiles are loaded asynchronously
|
||||
this.initializedPromise = new Promise((resolve, reject) => {
|
||||
this.init()
|
||||
.then(() => {
|
||||
resolve();
|
||||
})
|
||||
.catch((e) => {
|
||||
reject(e);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
private async init() {
|
||||
// Always load local profile immediately in case control plane doesn't load
|
||||
try {
|
||||
await this.loadConfig();
|
||||
await this.fetchControlPlaneProfiles();
|
||||
} catch (e) {
|
||||
// If this fails, make sure at least local profile is loaded
|
||||
console.error("Failed to fetch control plane profiles: ", e);
|
||||
await this.updateAvailableProfiles([this.localProfileManager]);
|
||||
}
|
||||
try {
|
||||
const configResult = await this.loadConfig();
|
||||
this.notifyConfigListeners(configResult);
|
||||
} catch (e) {
|
||||
console.error("Failed to load config: ", e);
|
||||
}
|
||||
|
||||
const workspaceId = await this.getWorkspaceId();
|
||||
const lastSelectedOrgIds =
|
||||
this.globalContext.get("lastSelectedOrgIdForWorkspace") ?? {};
|
||||
const selectedOrgId = lastSelectedOrgIds[workspaceId];
|
||||
|
||||
// We want to set the org ID before fetching control plane profiles
|
||||
if (selectedOrgId) {
|
||||
this.selectedOrgId = selectedOrgId;
|
||||
}
|
||||
|
||||
// Load control plane profiles
|
||||
void this.fetchControlPlaneProfiles();
|
||||
}
|
||||
|
||||
get currentProfile() {
|
||||
|
|
@ -110,14 +116,14 @@ export class ConfigHandler {
|
|||
// We must fall back to null, not the first or local profiles
|
||||
// Because GUI must be the source of truth for selected profile
|
||||
return (
|
||||
this.profiles.find(
|
||||
this.profiles?.find(
|
||||
(p) => p.profileDescription.id === this.selectedProfileId,
|
||||
) ?? this.profiles[0]
|
||||
) ?? null
|
||||
);
|
||||
}
|
||||
|
||||
get inactiveProfiles() {
|
||||
return this.profiles.filter(
|
||||
return (this.profiles ?? []).filter(
|
||||
(p) => p.profileDescription.id !== this.selectedProfileId,
|
||||
);
|
||||
}
|
||||
|
|
@ -138,73 +144,83 @@ export class ConfigHandler {
|
|||
}
|
||||
}
|
||||
|
||||
async loadPlatformProfiles() {
|
||||
async listOrganizations() {
|
||||
return await this.controlPlaneClient.listOrganizations();
|
||||
}
|
||||
|
||||
async loadAssistantsForSelectedOrg() {
|
||||
// Get the profiles and create their lifecycle managers
|
||||
this.controlPlaneClient
|
||||
.listAssistants(this.selectedOrgId)
|
||||
.then(async (assistants) => {
|
||||
const hubProfiles = await Promise.all(
|
||||
assistants.map(async (assistant) => {
|
||||
let renderedConfig: AssistantUnrolled | undefined = undefined;
|
||||
if (assistant.configResult.config) {
|
||||
renderedConfig = await clientRenderHelper(
|
||||
{
|
||||
ownerSlug: assistant.ownerSlug,
|
||||
packageSlug: assistant.packageSlug,
|
||||
},
|
||||
YAML.stringify(assistant.configResult.config),
|
||||
this.ide,
|
||||
this.controlPlaneClient,
|
||||
);
|
||||
}
|
||||
const userId = await this.controlPlaneClient.userId;
|
||||
const selectedOrgId = await this.getSelectedOrgId();
|
||||
|
||||
const profileLoader = new PlatformProfileLoader(
|
||||
{ ...assistant.configResult, config: renderedConfig },
|
||||
assistant.ownerSlug,
|
||||
assistant.packageSlug,
|
||||
assistant.iconUrl,
|
||||
assistant.configResult.config?.version ?? "latest",
|
||||
this.controlPlaneClient,
|
||||
let profiles: ProfileLifecycleManager[] | null = null;
|
||||
if (!userId) {
|
||||
// Not logged in
|
||||
profiles = [this.localProfileManager];
|
||||
} else {
|
||||
// Logged in
|
||||
const assistants =
|
||||
await this.controlPlaneClient.listAssistants(selectedOrgId);
|
||||
const hubProfiles = await Promise.all(
|
||||
assistants.map(async (assistant) => {
|
||||
let renderedConfig: AssistantUnrolled | undefined = undefined;
|
||||
if (assistant.configResult.config) {
|
||||
renderedConfig = await clientRenderHelper(
|
||||
{
|
||||
ownerSlug: assistant.ownerSlug,
|
||||
packageSlug: assistant.packageSlug,
|
||||
},
|
||||
YAML.stringify(assistant.configResult.config),
|
||||
this.ide,
|
||||
this.ideSettingsPromise,
|
||||
this.writeLog,
|
||||
this.reloadConfig.bind(this),
|
||||
this.controlPlaneClient,
|
||||
);
|
||||
}
|
||||
|
||||
return new ProfileLifecycleManager(profileLoader, this.ide);
|
||||
}),
|
||||
);
|
||||
|
||||
this.profiles =
|
||||
this.selectedOrgId === null
|
||||
? [this.localProfileManager, ...hubProfiles]
|
||||
: hubProfiles;
|
||||
|
||||
this.notifyProfileListeners(
|
||||
this.profiles.map((profile) => profile.profileDescription),
|
||||
);
|
||||
|
||||
// Check the last selected workspace, and reload if it isn't local
|
||||
const workspaceId = await this.getWorkspaceId();
|
||||
const lastSelectedIds =
|
||||
this.globalContext.get("lastSelectedProfileForWorkspace") ?? {};
|
||||
|
||||
const selectedProfileId = lastSelectedIds[workspaceId];
|
||||
if (selectedProfileId) {
|
||||
this.selectedProfileId = selectedProfileId;
|
||||
await this.loadConfig();
|
||||
} else {
|
||||
// Otherwise we stick with local profile, and record choice
|
||||
lastSelectedIds[workspaceId] = this.selectedProfileId;
|
||||
this.globalContext.update(
|
||||
"lastSelectedProfileForWorkspace",
|
||||
lastSelectedIds,
|
||||
const profileLoader = new PlatformProfileLoader(
|
||||
{ ...assistant.configResult, config: renderedConfig },
|
||||
assistant.ownerSlug,
|
||||
assistant.packageSlug,
|
||||
assistant.iconUrl,
|
||||
assistant.configResult.config?.version ?? "latest",
|
||||
this.controlPlaneClient,
|
||||
this.ide,
|
||||
this.ideSettingsPromise,
|
||||
this.writeLog,
|
||||
this.reloadConfig.bind(this),
|
||||
);
|
||||
}
|
||||
})
|
||||
.catch((e) => {
|
||||
console.error("Failed to list assistants: ", e);
|
||||
});
|
||||
|
||||
return new ProfileLifecycleManager(profileLoader, this.ide);
|
||||
}),
|
||||
);
|
||||
|
||||
if (selectedOrgId === null) {
|
||||
// Personal
|
||||
profiles = [...hubProfiles, this.localProfileManager];
|
||||
} else {
|
||||
// Organization
|
||||
profiles = hubProfiles;
|
||||
}
|
||||
}
|
||||
|
||||
await this.updateAvailableProfiles(profiles);
|
||||
}
|
||||
|
||||
private async updateAvailableProfiles(profiles: ProfileLifecycleManager[]) {
|
||||
this.profiles = profiles;
|
||||
|
||||
// If the last selected profile is in the list choose that
|
||||
// Otherwise, choose the first profile
|
||||
const previouslySelectedProfileId =
|
||||
await this.getPersistedSelectedProfileId();
|
||||
const selectedProfileId =
|
||||
previouslySelectedProfileId ?? profiles[0].profileDescription.id ?? null;
|
||||
|
||||
// Notify listeners
|
||||
const profileDescriptions = profiles.map(
|
||||
(profile) => profile.profileDescription,
|
||||
);
|
||||
this.notifyProfileListeners(profileDescriptions, selectedProfileId);
|
||||
await this.setSelectedProfile(selectedProfileId);
|
||||
}
|
||||
|
||||
private platformProfilesRefreshInterval: NodeJS.Timeout | undefined;
|
||||
|
|
@ -230,8 +246,9 @@ export class ConfigHandler {
|
|||
}
|
||||
|
||||
private async reloadHubAssistants() {
|
||||
const selectedOrgId = await this.getSelectedOrgId();
|
||||
const newFullSlugsList =
|
||||
await this.controlPlaneClient.listAssistantFullSlugs(this.selectedOrgId);
|
||||
await this.controlPlaneClient.listAssistantFullSlugs(selectedOrgId);
|
||||
|
||||
if (newFullSlugsList) {
|
||||
const shouldReload = this.fullSlugsListsDiffer(
|
||||
|
|
@ -239,7 +256,7 @@ export class ConfigHandler {
|
|||
this.lastFullSlugsList,
|
||||
);
|
||||
if (shouldReload) {
|
||||
await this.loadPlatformProfiles();
|
||||
await this.loadAssistantsForSelectedOrg();
|
||||
}
|
||||
this.lastFullSlugsList = newFullSlugsList;
|
||||
}
|
||||
|
|
@ -248,7 +265,7 @@ export class ConfigHandler {
|
|||
private async fetchControlPlaneProfiles() {
|
||||
if (await useHub(this.ideSettingsPromise)) {
|
||||
clearInterval(this.platformProfilesRefreshInterval);
|
||||
await this.loadPlatformProfiles();
|
||||
await this.loadAssistantsForSelectedOrg();
|
||||
|
||||
// Every 5 seconds we ask the platform whether there are any assistant updates in the last 5 seconds
|
||||
// If so, we do the full (more expensive) reload
|
||||
|
|
@ -257,54 +274,45 @@ export class ConfigHandler {
|
|||
PlatformProfileLoader.RELOAD_INTERVAL,
|
||||
);
|
||||
} else {
|
||||
this.controlPlaneClient
|
||||
.listWorkspaces()
|
||||
.then(async (workspaces) => {
|
||||
this.profiles = [this.localProfileManager];
|
||||
workspaces.forEach((workspace) => {
|
||||
const profileLoader = new ControlPlaneProfileLoader(
|
||||
workspace.id,
|
||||
workspace.name,
|
||||
this.controlPlaneClient,
|
||||
this.ide,
|
||||
this.ideSettingsPromise,
|
||||
this.writeLog,
|
||||
this.reloadConfig.bind(this),
|
||||
);
|
||||
this.profiles.push(
|
||||
new ProfileLifecycleManager(profileLoader, this.ide),
|
||||
);
|
||||
});
|
||||
|
||||
this.notifyProfileListeners(
|
||||
this.profiles.map((profile) => profile.profileDescription),
|
||||
try {
|
||||
const workspaces = await this.controlPlaneClient.listWorkspaces();
|
||||
const profiles = [this.localProfileManager];
|
||||
workspaces.forEach((workspace) => {
|
||||
const profileLoader = new ControlPlaneProfileLoader(
|
||||
workspace.id,
|
||||
workspace.name,
|
||||
this.controlPlaneClient,
|
||||
this.ide,
|
||||
this.ideSettingsPromise,
|
||||
this.writeLog,
|
||||
this.reloadConfig.bind(this),
|
||||
);
|
||||
|
||||
// Check the last selected workspace, and reload if it isn't local
|
||||
const workspaceId = await this.getWorkspaceId();
|
||||
const lastSelectedIds =
|
||||
this.globalContext.get("lastSelectedProfileForWorkspace") ?? {};
|
||||
const selectedProfileId = lastSelectedIds[workspaceId];
|
||||
if (selectedProfileId) {
|
||||
this.selectedProfileId = selectedProfileId;
|
||||
await this.loadConfig();
|
||||
} else {
|
||||
// Otherwise we stick with local profile, and record choice
|
||||
lastSelectedIds[workspaceId] = this.selectedProfileId;
|
||||
this.globalContext.update(
|
||||
"lastSelectedProfileForWorkspace",
|
||||
lastSelectedIds,
|
||||
);
|
||||
}
|
||||
})
|
||||
.catch((e) => {
|
||||
console.error(e);
|
||||
profiles.push(new ProfileLifecycleManager(profileLoader, this.ide));
|
||||
});
|
||||
|
||||
await this.updateAvailableProfiles(profiles);
|
||||
} catch (e: any) {
|
||||
console.error("Failed to load profiles: ", e);
|
||||
await this.updateAvailableProfiles([this.localProfileManager]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
async getPersistedSelectedProfileId(): Promise<string | null> {
|
||||
const workspaceId = await this.getWorkspaceId();
|
||||
const lastSelectedIds =
|
||||
this.globalContext.get("lastSelectedProfileForWorkspace") ?? {};
|
||||
return lastSelectedIds[workspaceId] ?? null;
|
||||
}
|
||||
|
||||
async getSelectedOrgId(): Promise<string | null> {
|
||||
const selectedOrgs =
|
||||
this.globalContext.get("lastSelectedOrgIdForWorkspace") ?? {};
|
||||
return selectedOrgs[await this.getWorkspaceId()] ?? null;
|
||||
}
|
||||
|
||||
async setSelectedOrgId(orgId: string | null) {
|
||||
this.selectedOrgId = orgId;
|
||||
const selectedOrgs =
|
||||
this.globalContext.get("lastSelectedOrgIdForWorkspace") ?? {};
|
||||
selectedOrgs[await this.getWorkspaceId()] = orgId;
|
||||
|
|
@ -348,16 +356,25 @@ export class ConfigHandler {
|
|||
});
|
||||
}
|
||||
|
||||
private profilesListeners: ((profiles: ProfileDescription[]) => void)[] = [];
|
||||
private profilesListeners: ((
|
||||
profiles: ProfileDescription[],
|
||||
selectedProfileId: string | null,
|
||||
) => void)[] = [];
|
||||
onDidChangeAvailableProfiles(
|
||||
listener: (profiles: ProfileDescription[]) => void,
|
||||
listener: (
|
||||
profiles: ProfileDescription[],
|
||||
selectedProfileId: string | null,
|
||||
) => void,
|
||||
) {
|
||||
this.profilesListeners.push(listener);
|
||||
}
|
||||
|
||||
private notifyProfileListeners(profiles: ProfileDescription[]) {
|
||||
private notifyProfileListeners(
|
||||
profiles: ProfileDescription[],
|
||||
selectedProfileId: string | null,
|
||||
) {
|
||||
for (const listener of this.profilesListeners) {
|
||||
listener(profiles);
|
||||
listener(profiles, selectedProfileId);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -410,8 +427,8 @@ export class ConfigHandler {
|
|||
);
|
||||
}
|
||||
|
||||
listProfiles(): ProfileDescription[] {
|
||||
return this.profiles.map((p) => p.profileDescription);
|
||||
listProfiles(): ProfileDescription[] | null {
|
||||
return this.profiles?.map((p) => p.profileDescription) ?? null;
|
||||
}
|
||||
|
||||
async loadConfig(): Promise<ConfigResult<ContinueConfig>> {
|
||||
|
|
|
|||
|
|
@ -164,6 +164,7 @@ class MCPConnection {
|
|||
config.contextProviders.push(
|
||||
new MCPContextProvider({
|
||||
submenuItems,
|
||||
mcpId,
|
||||
}),
|
||||
);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -9,6 +9,7 @@ import {
|
|||
import { MCPManagerSingleton } from "../mcp";
|
||||
|
||||
interface MCPContextProviderOptions {
|
||||
mcpId: string;
|
||||
submenuItems: ContextSubmenuItem[];
|
||||
}
|
||||
|
||||
|
|
@ -74,10 +75,10 @@ class MCPContextProvider extends BaseContextProvider {
|
|||
args: LoadSubmenuItemsArgs,
|
||||
): Promise<ContextSubmenuItem[]> {
|
||||
return (this.options as MCPContextProviderOptions).submenuItems.map(
|
||||
(item, index) => ({
|
||||
(item) => ({
|
||||
...item,
|
||||
id: JSON.stringify({
|
||||
mcpId: String(index),
|
||||
mcpId: (this.options as MCPContextProviderOptions).mcpId,
|
||||
uri: item.id,
|
||||
}),
|
||||
}),
|
||||
|
|
|
|||
|
|
@ -7,7 +7,6 @@ import {
|
|||
IContextProvider,
|
||||
} from "../..";
|
||||
import { ConfigHandler } from "../../config/ConfigHandler";
|
||||
import { ControlPlaneClient } from "../../control-plane/client";
|
||||
import { TEST_DIR } from "../../test/testDir";
|
||||
import FileSystemIde from "../../util/filesystem";
|
||||
|
||||
|
|
@ -31,8 +30,9 @@ async function getContextProviderExtras(
|
|||
ide,
|
||||
ideSettingsPromise,
|
||||
async (text) => {},
|
||||
new ControlPlaneClient(Promise.resolve(undefined), ideSettingsPromise),
|
||||
Promise.resolve(undefined),
|
||||
);
|
||||
await configHandler.initializedPromise;
|
||||
const { config } = await configHandler.loadConfig();
|
||||
if (!config) {
|
||||
throw new Error("Config not found");
|
||||
|
|
|
|||
21
core/core.ts
21
core/core.ts
|
|
@ -17,7 +17,6 @@ import { addContextProvider, addModel, deleteModel } from "./config/util";
|
|||
import { recentlyEditedFilesCache } from "./context/retrieval/recentlyEditedFilesCache";
|
||||
import { ContinueServerClient } from "./continueServer/stubs/client";
|
||||
import { getAuthUrlForTokenPage } from "./control-plane/auth/index";
|
||||
import { ControlPlaneClient } from "./control-plane/client";
|
||||
import { getControlPlaneEnv } from "./control-plane/env";
|
||||
import { streamDiffLines } from "./edit/streamDiffLines";
|
||||
import { CodebaseIndexer, PauseToken } from "./indexing/CodebaseIndexer";
|
||||
|
|
@ -63,7 +62,6 @@ export class Core {
|
|||
completionProvider: CompletionProvider;
|
||||
continueServerClientPromise: Promise<ContinueServerClient>;
|
||||
codebaseIndexingState: IndexingProgressUpdate;
|
||||
controlPlaneClient: ControlPlaneClient;
|
||||
private docsService: DocsService;
|
||||
private globalContext = new GlobalContext();
|
||||
|
||||
|
|
@ -111,16 +109,11 @@ export class Core {
|
|||
useOnboarding: false,
|
||||
});
|
||||
|
||||
this.controlPlaneClient = new ControlPlaneClient(
|
||||
sessionInfoPromise,
|
||||
ideSettingsPromise,
|
||||
);
|
||||
|
||||
this.configHandler = new ConfigHandler(
|
||||
this.ide,
|
||||
ideSettingsPromise,
|
||||
this.onWrite,
|
||||
this.controlPlaneClient,
|
||||
sessionInfoPromise,
|
||||
);
|
||||
|
||||
this.docsService = DocsService.createSingleton(
|
||||
|
|
@ -138,8 +131,12 @@ export class Core {
|
|||
});
|
||||
});
|
||||
|
||||
this.configHandler.onDidChangeAvailableProfiles((profiles) =>
|
||||
this.messenger.send("didChangeAvailableProfiles", { profiles }),
|
||||
this.configHandler.onDidChangeAvailableProfiles(
|
||||
(profiles, selectedProfileId) =>
|
||||
this.messenger.send("didChangeAvailableProfiles", {
|
||||
profiles,
|
||||
selectedProfileId,
|
||||
}),
|
||||
);
|
||||
|
||||
// Dev Data Logger
|
||||
|
|
@ -326,7 +323,7 @@ export class Core {
|
|||
});
|
||||
|
||||
on("controlPlane/listOrganizations", async (msg) => {
|
||||
return await this.controlPlaneClient.listOrganizations();
|
||||
return await this.configHandler.listOrganizations();
|
||||
});
|
||||
|
||||
// Context providers
|
||||
|
|
@ -943,7 +940,7 @@ export class Core {
|
|||
on("didChangeSelectedOrg", (msg) => {
|
||||
void this.configHandler.setSelectedOrgId(msg.data.id);
|
||||
void this.configHandler.reloadConfig();
|
||||
void this.configHandler.loadPlatformProfiles();
|
||||
void this.configHandler.loadAssistantsForSelectedOrg();
|
||||
});
|
||||
|
||||
on("didChangeControlPlaneSessionInfo", async (msg) => {
|
||||
|
|
|
|||
|
|
@ -1,8 +1,6 @@
|
|||
import fs from "fs";
|
||||
import path from "path";
|
||||
|
||||
import { getDevDataFilePath } from "../util/paths.js";
|
||||
import { Core } from "../core.js";
|
||||
import {
|
||||
allDevEventNames,
|
||||
DataLogLevel,
|
||||
|
|
@ -10,11 +8,13 @@ import {
|
|||
devDataVersionedSchemas,
|
||||
} from "@continuedev/config-yaml";
|
||||
import { fetchwithRequestOptions } from "@continuedev/fetch";
|
||||
import { joinPathsToUri } from "../util/uri.js";
|
||||
import * as URI from "uri-js";
|
||||
import { fileURLToPath } from "url";
|
||||
import { ZodObject } from "zod";
|
||||
import { Core } from "../core.js";
|
||||
import { IdeInfo, IdeSettings } from "../index.js";
|
||||
import { getDevDataFilePath } from "../util/paths.js";
|
||||
import { joinPathsToUri } from "../util/uri.js";
|
||||
|
||||
const DEFAULT_DEV_DATA_LEVEL: DataLogLevel = "all";
|
||||
export const LOCAL_DEV_DATA_VERSION = "0.2.0";
|
||||
|
|
@ -174,7 +174,7 @@ export class DataLogger {
|
|||
) {
|
||||
//
|
||||
const accessToken =
|
||||
await this.core?.controlPlaneClient.getAccessToken();
|
||||
await this.core?.configHandler.controlPlaneClient.getAccessToken();
|
||||
headers["Authorization"] = `Bearer ${accessToken}`;
|
||||
}
|
||||
const profileId =
|
||||
|
|
|
|||
|
|
@ -2,7 +2,6 @@
|
|||
* @jest-environment jsdom
|
||||
*/
|
||||
import { ConfigHandler } from "../../config/ConfigHandler.js";
|
||||
import { ControlPlaneClient } from "../../control-plane/client.js";
|
||||
import { SiteIndexingConfig } from "../../index.js";
|
||||
import FileSystemIde from "../../util/filesystem.js";
|
||||
import { editConfigJson } from "../../util/paths.js";
|
||||
|
|
@ -50,16 +49,7 @@ describe.skip("DocsService Integration Tests", () => {
|
|||
ide,
|
||||
ideSettingsPromise,
|
||||
async () => {},
|
||||
new ControlPlaneClient(
|
||||
Promise.resolve({
|
||||
accessToken: "",
|
||||
account: {
|
||||
id: "",
|
||||
label: "",
|
||||
},
|
||||
}),
|
||||
ideSettingsPromise,
|
||||
),
|
||||
Promise.resolve(undefined),
|
||||
);
|
||||
|
||||
docsService = DocsService.createSingleton(configHandler, ide);
|
||||
|
|
|
|||
3511
core/package-lock.json
generated
3511
core/package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
|
@ -46,7 +46,7 @@
|
|||
"@aws-sdk/client-sagemaker-runtime": "^3.621.0",
|
||||
"@aws-sdk/credential-providers": "^3.620.1",
|
||||
"@continuedev/config-types": "^1.0.13",
|
||||
"@continuedev/config-yaml": "^1.0.32",
|
||||
"@continuedev/config-yaml": "^1.0.35",
|
||||
"@continuedev/fetch": "^1.0.4",
|
||||
"@continuedev/llm-info": "^1.0.2",
|
||||
"@continuedev/openai-adapters": "^1.0.10",
|
||||
|
|
|
|||
|
|
@ -14,11 +14,11 @@ import type {
|
|||
ContextSubmenuItem,
|
||||
DiffLine,
|
||||
DocsIndexingDetails,
|
||||
ExperimentalModelRoles,
|
||||
FileSymbolMap,
|
||||
IdeSettings,
|
||||
LLMFullCompletionOptions,
|
||||
ModelDescription,
|
||||
ExperimentalModelRoles,
|
||||
PromptLog,
|
||||
RangeInFile,
|
||||
SerializedContinueConfig,
|
||||
|
|
@ -69,7 +69,7 @@ export type ToCoreFromIdeOrWebviewProtocol = {
|
|||
"config/deleteModel": [{ title: string }, void];
|
||||
"config/addContextProvider": [ContextProviderWithParams, void];
|
||||
"config/reload": [undefined, ConfigResult<BrowserSerializedContinueConfig>];
|
||||
"config/listProfiles": [undefined, ProfileDescription[]];
|
||||
"config/listProfiles": [undefined, ProfileDescription[] | null];
|
||||
"config/openProfile": [{ profileId: string | undefined }, void];
|
||||
"config/updateSharedConfig": [SharedConfigSchema, void];
|
||||
"context/getContextItems": [
|
||||
|
|
|
|||
|
|
@ -8,5 +8,8 @@ export type ToCoreFromWebviewProtocol = ToCoreFromIdeOrWebviewProtocol & {
|
|||
didChangeSelectedOrg: [{ id: string | null }, void];
|
||||
};
|
||||
export type ToWebviewFromCoreProtocol = ToWebviewFromIdeOrCoreProtocol & {
|
||||
didChangeAvailableProfiles: [{ profiles: ProfileDescription[] }, void];
|
||||
didChangeAvailableProfiles: [
|
||||
{ profiles: ProfileDescription[]; selectedProfileId: string | null },
|
||||
void,
|
||||
];
|
||||
};
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ export const testConfigHandler = new ConfigHandler(
|
|||
testIde,
|
||||
ideSettingsPromise,
|
||||
async (text) => {},
|
||||
testControlPlaneClient,
|
||||
Promise.resolve(undefined),
|
||||
);
|
||||
|
||||
export const testLLM = new Mock({
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ sidebar_position: 3
|
|||
|
||||
## Slash commands
|
||||
|
||||
Slash commands can be combined with additional instructions, including [context providers](chat/context-selection.md) or [highlighted code](chat/context-selection.md).
|
||||
Slash commands can be combined with additional instructions, including [context providers](../customize/context-providers.mdx) or [highlighted code](../edit/context-selection#highlighted-code).
|
||||
|
||||
For example, with the “/edit” slash command you should describe the edit that you want the LLM to perform.
|
||||
|
||||
|
|
|
|||
|
|
@ -7,6 +7,6 @@ sidebar_position: 4
|
|||
|
||||
While many Actions are based on templated prompts and can be customized with .prompt files, there are a number that execute more complex code under the hood.
|
||||
|
||||
Actions that generate inline diffs, like “/edit”, “/comment”, or right click actions, use the same prompt and response processing logic as [Edit](edit/how-it-works.md).
|
||||
Actions that generate inline diffs, like “/edit”, “/comment”, or right click actions, use the same prompt and response processing logic as [Edit](../edit/how-it-works.md).
|
||||
|
||||
To learn how other slash commands work, see the full reference [here](../customize/slash-commands.md).
|
||||
To learn how other slash commands work, see the full reference [here](../customize/slash-commands.mdx).
|
||||
|
|
@ -7,7 +7,7 @@ sidebar_position: 5
|
|||
|
||||
## Built-in slash commands
|
||||
|
||||
Continue has a large library of built-in slash commands, but when you first install we only display the most commonly used ones, like “/edit”, “/comment”, and “/share”. To add more actions, you can open [config.json](../reference.md) and add them to the `slashCommands` array.
|
||||
Continue has a large library of built-in slash commands, but when you first install we only display the most commonly used ones, like “/edit”, “/comment”, and “/share”. To add more actions, you can open [config.json](../json-reference.md) and add them to the `slashCommands` array.
|
||||
|
||||
## Custom slash commands
|
||||
|
||||
|
|
@ -18,11 +18,6 @@ There are two ways to add custom slash commands:
|
|||
|
||||
### Custom Slash Commands with `config.ts`
|
||||
|
||||
<!-- TODO: We need a config.ts reference -->
|
||||
<!-- :::tip[config.ts]
|
||||
Before adding a custom slash command, we recommend reading the [introduction to `config.ts`](../customize/deep-dives/ways-to-configure.md).
|
||||
::: -->
|
||||
|
||||
If you want to go a step further than writing custom commands with natural language, you can write a custom function that returns the response. This requires using `config.ts` instead of `config.json`.
|
||||
|
||||
To do this, push a new `SlashCommand` object to the `slashCommands` list. This object contains "name", the name that you will type to invoke the slash command, "description", the description seen in the dropdown menu, and "run". The `run` function is any async generator that should yield strings as you want them to be streamed to the UI. As an argument to the function, you have access to a `ContinueSDK` object with utilities such as access to certain information/actions within the IDE, the current language model, and a few other utilities. For example, here is a slash command that generates a commit message:
|
||||
|
|
@ -51,9 +46,6 @@ export function modifyConfig(config: Config): Config {
|
|||
}
|
||||
```
|
||||
|
||||
<!-- TODO: We need a config.ts reference -->
|
||||
<!-- For full `config.ts` reference, see [here](reference/config-ts.md). -->
|
||||
|
||||
## Other custom actions
|
||||
|
||||
Currently the other action triggers are not open for configuration, but we plan to allow this via .prompt files in the future.
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ The most common way to invoke an action is with a slash command. These are short
|
|||
|
||||

|
||||
|
||||
A few of the most useful slash commands are available by default, like “/edit”, “/comment”, and “/share”, but Continue has a large built-in library of other options. To enable these, learn more [here](../customize/slash-commands.md).
|
||||
A few of the most useful slash commands are available by default, like “/edit”, “/comment”, and “/share”, but Continue has a large built-in library of other options. To enable these, learn more [here](../customize/slash-commands.mdx).
|
||||
|
||||
### Prompt files
|
||||
|
||||
|
|
@ -36,7 +36,7 @@ Below is a quick example of setting up a prompt file to write unit tests using J
|
|||
2. Add a file called `test.prompt` to this folder. The name of this file will be the name of the slash command you will use to generate your prompt.
|
||||
3. Write the following contents to `test.prompt` and save.
|
||||
|
||||
```
|
||||
```.prompt
|
||||
{{{ input }}}
|
||||
|
||||
Write unit tests for the above selected code, following each of these instructions:
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ In order to display suggestions quickly, without sending too many requests, we d
|
|||
|
||||
## Context
|
||||
|
||||
As explained on the [context selection](context-selection.md) page, Continue uses a number of retrieval methods to find relevant snippets from your codebase to include in the prompt.
|
||||
As explained on the [context selection](./context-selection.md) page, Continue uses a number of retrieval methods to find relevant snippets from your codebase to include in the prompt.
|
||||
|
||||
## Filtering
|
||||
|
||||
|
|
@ -28,4 +28,4 @@ Language models aren't perfect, but can be made much closer by adjusting their o
|
|||
|
||||
We will also occasionally entirely filter out responses if they are bad. This is often due to extreme repetition.
|
||||
|
||||
You can learn more about how it works in the [Autocomplete deep dive](../customize/deep-dives/autocomplete.md).
|
||||
You can learn more about how it works in the [Autocomplete deep dive](../customize/deep-dives/autocomplete.mdx).
|
||||
|
|
|
|||
|
|
@ -5,18 +5,20 @@ keywords: [customize]
|
|||
sidebar_position: 5
|
||||
---
|
||||
|
||||
Continue offers a handful of parameters in [`config.json`](../reference.md) that can be tuned to find the perfect balance between suggestion quality and system performance for your specific needs and hardware capabilities:
|
||||
Continue offers a handful of parameters in [`config.json`](../json-reference.md) that can be tuned to find the perfect balance between suggestion quality and system performance for your specific needs and hardware capabilities:
|
||||
|
||||
```json title="config.json"
|
||||
"tabAutocompleteOptions": {
|
||||
"maxPromptTokens": 400,
|
||||
"prefixPercentage": 0.5,
|
||||
"multilineCompletions": "always"
|
||||
}
|
||||
{
|
||||
"tabAutocompleteOptions": {
|
||||
"maxPromptTokens": 400,
|
||||
"prefixPercentage": 0.5,
|
||||
"multilineCompletions": "always"
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
- `maxPromptTokens`: Sets the maximum number of tokens for the prompt, balancing context and speed.
|
||||
- `prefixPercentage`: Defines the proportion of the prompt dedicated to the code before the cursor.
|
||||
- `multilineCompletions`: Controls whether suggestions can span multiple lines ("always", "never", or "auto").
|
||||
|
||||
For a comprehensive guide on all configuration options and their impacts, see the [Autocomplete deep dive](../customize/deep-dives/autocomplete.md).
|
||||
For a comprehensive guide on all configuration options and their impacts, see the [Autocomplete deep dive](../customize/deep-dives/autocomplete.mdx).
|
||||
|
|
|
|||
|
|
@ -1,68 +0,0 @@
|
|||
---
|
||||
title: Model setup
|
||||
description: Autocomplete \-model setup
|
||||
keywords: [model, autocomplete]
|
||||
sidebar_position: 2
|
||||
---
|
||||
|
||||
:::info
|
||||
This page recommends models and providers for Autocomplete. Read more about how to set up your `config.json` [here](../reference.md).
|
||||
:::
|
||||
|
||||
## Best overall experience
|
||||
|
||||
For the best Autocomplete experience, we recommend using Codestral through the [Mistral API](https://console.mistral.ai/). This model offers high-quality completions with an excellent understanding of code context:
|
||||
|
||||
```json title="config.json""
|
||||
{
|
||||
"tabAutocompleteModel": {
|
||||
"title": "Codestral",
|
||||
"provider": "mistral",
|
||||
"model": "codestral-latest",
|
||||
"apiKey": "YOUR_API_KEY"
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
:::tip[Codestral API Key]
|
||||
The API keys for Codestral and the general Mistral APIs are different. If you are using Codestral, you probably want a Codestral API key, but if you are sharing the key as a team or otherwise want to use `api.mistral.ai`, then make sure to set `"apiBase": "https://api.mistral.ai/v1"` in your `tabAutocompleteModel`.
|
||||
:::
|
||||
|
||||
## Local, offline / self-hosted experience
|
||||
|
||||
For those preferring local execution or self-hosting,`Qwen2.5-Coder 1.5B` offers a good balance of performance and quality for most users (e.g. using [Ollama](../customize/model-providers/top-level/ollama.md) or [LM Studio](../customize/model-providers/more/lmstudio.md)).
|
||||
|
||||
```json title="config.json""
|
||||
{
|
||||
"tabAutocompleteModel": {
|
||||
"title": "Qwen2.5-Coder 1.5B",
|
||||
"model": "qwen2.5-coder:1.5b-base",
|
||||
"provider": "ollama"
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
Have more compute? Use `qwen2.5-coder:7b-base` for potentially higher-quality suggestions.
|
||||
|
||||
:::note
|
||||
|
||||
For LM Studio users, navigate to the "My Models" section, find your desired model, and copy the path (e.g., `Qwen/Qwen2.5-Coder-1.5B-Instruct-GGUF/qwen2.5-coder-1.5b-instruct-q4_k_m.gguf`). Use this path as the `model` value in your configuration.
|
||||
|
||||
:::
|
||||
### Using a remote instance
|
||||
|
||||
When using a remote instance you need to set the `"apiBase"` value in the configuration:
|
||||
|
||||
```json title="config.json""
|
||||
{
|
||||
"tabAutocompleteModel": {
|
||||
"title": "Qwen2.5-Coder 1.5B",
|
||||
"model": "qwen2.5-coder:1.5b-base",
|
||||
"provider": "ollama"
|
||||
"apiBase": "http://<my endpoint>:11434"
|
||||
}
|
||||
}
|
||||
```
|
||||
## Other experiences
|
||||
|
||||
There are many more models and providers you can use with Autocomplete. Check them out [here](../customize/model-types/autocomplete.md). You can also see more examples of Autocomplete configuration [here](../customize/deep-dives/autocomplete.md)
|
||||
115
docs/docs/autocomplete/model-setup.mdx
Normal file
115
docs/docs/autocomplete/model-setup.mdx
Normal file
|
|
@ -0,0 +1,115 @@
|
|||
---
|
||||
title: Model setup
|
||||
description: Autocomplete \-model setup
|
||||
keywords: [model, autocomplete]
|
||||
sidebar_position: 2
|
||||
---
|
||||
|
||||
import Tabs from "@theme/Tabs";
|
||||
import TabItem from "@theme/TabItem";
|
||||
|
||||
:::info
|
||||
This page recommends models and providers for Autocomplete. Read more about how to set up your `config.yaml` [here](../reference.md).
|
||||
:::
|
||||
|
||||
## Best overall experience
|
||||
|
||||
For the best Autocomplete experience, we recommend using Codestral through the [Mistral API](https://console.mistral.ai/). This model offers high-quality completions with an excellent understanding of code context:
|
||||
|
||||
<Tabs groupId="config-example">
|
||||
<TabItem value="yaml" label="YAML">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: Codestral
|
||||
provider: mistral
|
||||
model: codestral-latest
|
||||
apiKey: <YOUR_CODESTRAL_API_KEY>
|
||||
roles:
|
||||
- autocomplete
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"tabAutocompleteModel": {
|
||||
"title": "Codestral",
|
||||
"provider": "mistral",
|
||||
"model": "codestral-latest",
|
||||
"apiKey": "<YOUR_API_KEY>"
|
||||
}
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
:::tip[Codestral API Key]
|
||||
The API keys for Codestral and the general Mistral APIs are different. If you are using Codestral, you probably want a Codestral API key, but if you are sharing the key as a team or otherwise want to use `api.mistral.ai`, then make sure to set `"apiBase": "https://api.mistral.ai/v1"` in your `tabAutocompleteModel`.
|
||||
:::
|
||||
|
||||
## Local, offline / self-hosted experience
|
||||
|
||||
For those preferring local execution or self-hosting,`Qwen2.5-Coder 1.5B` offers a good balance of performance and quality for most users (e.g. using [Ollama](../customize/model-providers/top-level/ollama.mdx) or [LM Studio](../customize/model-providers/more/lmstudio.mdx)).
|
||||
|
||||
<Tabs groupId="config-example">
|
||||
<TabItem value="yaml" label="YAML">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: Qwen2.5-Coder 1.5B
|
||||
model: qwen2.5-coder:1.5b-base
|
||||
provider: ollama
|
||||
roles:
|
||||
- autocomplete
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"tabAutocompleteModel": {
|
||||
"title": "Qwen2.5-Coder 1.5B",
|
||||
"model": "qwen2.5-coder:1.5b-base",
|
||||
"provider": "ollama"
|
||||
}
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
Have more compute? Use `qwen2.5-coder:7b-base` for potentially higher-quality suggestions.
|
||||
|
||||
:::note
|
||||
For LM Studio users, navigate to the "My Models" section, find your desired model, and copy the path (e.g., `Qwen/Qwen2.5-Coder-1.5B-Instruct-GGUF/qwen2.5-coder-1.5b-instruct-q4_k_m.gguf`). Use this path as the `model` value in your configuration.
|
||||
:::
|
||||
|
||||
### Using a remote instance
|
||||
|
||||
When using a remote instance you need to set the `"apiBase"` value in the configuration:
|
||||
|
||||
<Tabs groupId="config-example">
|
||||
<TabItem value="yaml" label="YAML">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: Qwen2.5-Coder 1.5B
|
||||
model: qwen2.5-coder:1.5b-base
|
||||
provider: ollama
|
||||
apiBase: http://<my endpoint>:11434
|
||||
roles:
|
||||
- autocomplete
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"tabAutocompleteModel": {
|
||||
"title": "Qwen2.5-Coder 1.5B",
|
||||
"model": "qwen2.5-coder:1.5b-base",
|
||||
"provider": "ollama",
|
||||
"apiBase": "http://<my endpoint>:11434"
|
||||
}
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
## Other experiences
|
||||
|
||||
There are many more models and providers you can use with Autocomplete. Check them out [here](../customize/model-types/autocomplete.md). You can also see more examples of Autocomplete configuration [here](../customize/deep-dives/autocomplete.mdx)
|
||||
|
|
@ -19,28 +19,28 @@ You can include the currently open file as context by pressing <kbd>opt</kbd> +
|
|||
|
||||
## Specific file
|
||||
|
||||
You can include a specific file in your current workspace as context by typing [`@Files`](../customize/context-providers.md#file) and selecting the file.
|
||||
You can include a specific file in your current workspace as context by typing [`@Files`](../customize/context-providers.mdx#file) and selecting the file.
|
||||
|
||||
## Specific folder
|
||||
|
||||
You can include a folder in your current workspace as context by typing [`@Folder`](../customize/context-providers.md#folder) and selecting the directory. It [works like `@Codebase`](../customize/deep-dives/codebase.md) but only includes the files in the selected folder.
|
||||
You can include a folder in your current workspace as context by typing [`@Folder`](../customize/context-providers.mdx#folder) and selecting the directory. It [works like `@Codebase`](../customize/deep-dives/codebase.mdx) but only includes the files in the selected folder.
|
||||
|
||||
## Codebase search
|
||||
|
||||
You can automatically include relevant files from your codebase as context by typing [`@Codebase`](../customize/context-providers.md#codebase). You can learn about how @Codebase works [here](../customize/deep-dives/codebase.md).
|
||||
You can automatically include relevant files from your codebase as context by typing [`@Codebase`](../customize/context-providers.mdx#codebase). You can learn about how @Codebase works [here](../customize/deep-dives/codebase.mdx).
|
||||
|
||||
## Documentation site
|
||||
|
||||
You can include a documentation site as context by typing [`@Docs`](../customize/context-providers.md#docs) and selecting the documentation site. You can learn about how @Docs works [here](../customize/deep-dives/docs.md).
|
||||
You can include a documentation site as context by typing [`@Docs`](../customize/context-providers.mdx#docs) and selecting the documentation site. You can learn about how @Docs works [here](../customize/deep-dives/docs.mdx).
|
||||
|
||||
## Terminal contents
|
||||
|
||||
You can include the contents of the terminal in your IDE as context by typing [`@Terminal`](../customize/context-providers.md#terminal).
|
||||
You can include the contents of the terminal in your IDE as context by typing [`@Terminal`](../customize/context-providers.mdx#terminal).
|
||||
|
||||
## Git diff
|
||||
|
||||
You can include all of the changes you've made to your current branch by typing [`@Git Diff`](../customize/context-providers.md#git-diff).
|
||||
You can include all of the changes you've made to your current branch by typing [`@Git Diff`](../customize/context-providers.mdx#git-diff).
|
||||
|
||||
## Other context
|
||||
|
||||
You can see a full list of built-in context providers [here](../customize/context-providers.md) and how to create your own custom context provider [here](../customize/tutorials/build-your-own-context-provider.md).
|
||||
You can see a full list of built-in context providers [here](../customize/context-providers.mdx) and how to create your own custom context provider [here](../customize/tutorials/build-your-own-context-provider.md).
|
||||
|
|
|
|||
|
|
@ -9,6 +9,6 @@ Using any selected code sections, all context that you have selected with @, and
|
|||
|
||||
The model response is then streamed directly back to the sidebar. Each code section included in the response will be placed into its own code block, which gives you buttons to either “Apply to current file”, “Insert at cursor”, or “Copy” for each section. When you press <kbd>cmd/ctrl</kbd> + <kbd>L</kbd> (VS Code) or <kbd>cmd/ctrl</kbd> + <kbd>J</kbd> (JetBrains) at the end of a session, all context is cleared and a new session is started, so that you can begin a new task.
|
||||
|
||||
If you would like to view the exact prompt that is sent to the model during Chat, you can [view this in the prompt logs](troubleshooting.md#llm-prompt-logs).
|
||||
If you would like to view the exact prompt that is sent to the model during Chat, you can [view this in the prompt logs](troubleshooting.mdx#llm-prompt-logs).
|
||||
|
||||
You can learn more about how `@Codebase` works [here](../customize/deep-dives/codebase.md) and `@Docs` [here](../customize/deep-dives/docs.md).
|
||||
You can learn more about how `@Codebase` works [here](../customize/deep-dives/codebase.mdx) and `@Docs` [here](../customize/deep-dives/docs.mdx).
|
||||
|
|
|
|||
|
|
@ -8,8 +8,8 @@ sidebar_position: 5
|
|||
There are a number of different ways to customize Chat
|
||||
|
||||
- You can add a [`.continuerules`](../customize/deep-dives/rules.md) file to the root of your project to customize the system prompt
|
||||
- You can configure [`@Codebase`](../customize/deep-dives/codebase.md)
|
||||
- You can create your own [custom code RAG](../customize/tutorials/custom-code-rag.md)
|
||||
- You can configure [`@Docs`](../customize/deep-dives/docs.md)
|
||||
- You can configure [`@Codebase`](../customize/deep-dives/codebase.mdx)
|
||||
- You can create your own [custom code RAG](../customize/tutorials/custom-code-rag.mdx)
|
||||
- You can configure [`@Docs`](../customize/deep-dives/docs.mdx)
|
||||
- You can [build your own context provider](../customize/tutorials/build-your-own-context-provider.md)
|
||||
- You can configure and create custom [tools](../customize/tools.md)
|
||||
- You can configure and create custom [tools](../customize/tools.mdx)
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ import Tabs from "@theme/Tabs";
|
|||
import TabItem from "@theme/TabItem";
|
||||
|
||||
:::info
|
||||
This page recommends models and providers for Chat. Read more about how to set up your `config.json` [here](../reference.md).
|
||||
This page recommends models and providers for Chat. Read more about how to set up your config [here](../reference.md).
|
||||
:::
|
||||
|
||||
## Best overall experience
|
||||
|
|
@ -18,116 +18,226 @@ For the best overall Chat experience, you will want to use a 400B+ parameter mod
|
|||
|
||||
### Claude Sonnet 3.5 from Anthropic
|
||||
|
||||
Our current top recommendation is Claude Sonnet 3.5 from [Anthropic](../customize/model-providers/top-level/anthropic.md).
|
||||
Our current top recommendation is Claude Sonnet 3.5 from [Anthropic](../customize/model-providers/top-level/anthropic.mdx).
|
||||
|
||||
```json title="config.json"
|
||||
"models": [
|
||||
{
|
||||
"title": "Claude 3.5 Sonnet",
|
||||
"provider": "anthropic",
|
||||
"model": "claude-3-5-sonnet-latest",
|
||||
"apiKey": "[ANTHROPIC_API_KEY]"
|
||||
}
|
||||
]
|
||||
```
|
||||
<Tabs groupId="config-example">
|
||||
<TabItem value="yaml" label="YAML">
|
||||
```yaml title="Package or config.yaml"
|
||||
models:
|
||||
- name: Claude 3.5 Sonnet
|
||||
provider: anthropic
|
||||
model: claude-3-5-sonnet-latest
|
||||
apiKey: <YOUR_ANTHROPIC_API_KEY>
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "Claude 3.5 Sonnet",
|
||||
"provider": "anthropic",
|
||||
"model": "claude-3-5-sonnet-latest",
|
||||
"apiKey": "<YOUR_ANTHROPIC_API_KEY>"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
### Llama 3.1 405B from Meta
|
||||
|
||||
If you prefer to use an open-weight model, then Llama 3.1 405B from Meta is your best option right now. You will need to decide if you use it through a SaaS model provider (e.g. [Together](../customize/model-providers/more/together.md) or [Groq](../customize/model-providers/more/groq.md)) or self-host it (e.g. using [vLLM](../customize/model-providers//more/vllm.md) or [Ollama](../customize/model-providers/top-level/ollama.md)).
|
||||
If you prefer to use an open-weight model, then Llama 3.1 405B from Meta is your best option right now. You will need to decide if you use it through a SaaS model provider (e.g. [Together](../customize/model-providers/more/together.mdx) or [Groq](../customize/model-providers/more/groq.mdx)) or self-host it (e.g. using [vLLM](../customize/model-providers//more/vllm.mdx) or [Ollama](../customize/model-providers/top-level/ollama.mdx)).
|
||||
|
||||
<Tabs groupId="providers">
|
||||
<TabItem value="Together">
|
||||
```json title="config.json"
|
||||
"models": [
|
||||
{
|
||||
"title": "Llama 3.1 405B",
|
||||
"provider": "together",
|
||||
"model": "llama3.1-405b",
|
||||
"apiKey": "[TOGETHER_API_KEY]"
|
||||
}
|
||||
]
|
||||
<Tabs groupId="config-example">
|
||||
<TabItem value="yaml" label="YAML">
|
||||
<Tabs groupId="providers">
|
||||
<TabItem value="Together">
|
||||
```yaml title="Package or config.yaml"
|
||||
models:
|
||||
- name: "Llama 3.1 405B"
|
||||
provider: "together"
|
||||
model: "llama3.1-405b"
|
||||
apiKey: <YOUR_TOGETHER_API_KEY>
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="Groq">
|
||||
```json title="config.json"
|
||||
"models": [
|
||||
{
|
||||
"title": "Llama 3.1 405B",
|
||||
"provider": "groq",
|
||||
"model": "llama3.1-405b",
|
||||
"apiKey": "[GROQ_API_KEY]"
|
||||
}
|
||||
]
|
||||
</TabItem>
|
||||
<TabItem value="Groq">
|
||||
```yaml title="Package or config.yaml"
|
||||
models:
|
||||
- name: "Llama 3.1 405B"
|
||||
provider: "groq"
|
||||
model: "llama3.1-405b"
|
||||
apiKey: <YOUR_GROQ_API_KEY>
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="vLLM">
|
||||
```json title="config.json"
|
||||
"models": [
|
||||
{
|
||||
"title": "Llama 3.1 405B",
|
||||
"provider": "vllm",
|
||||
"model": "llama3.1-405b"
|
||||
}
|
||||
]
|
||||
</TabItem>
|
||||
<TabItem value="vLLM">
|
||||
```yaml title="Package or config.yaml"
|
||||
models:
|
||||
- name: "Llama 3.1 405B"
|
||||
provider: "vllm"
|
||||
model: "llama3.1-405b"
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="Ollama">
|
||||
```json title="config.json"
|
||||
"models": [
|
||||
{
|
||||
"title": "Llama 3.1 405B",
|
||||
"provider": "ollama",
|
||||
"model": "llama3.1:405b"
|
||||
}
|
||||
]
|
||||
</TabItem>
|
||||
<TabItem value="Ollama">
|
||||
```yaml title="Package or config.yaml"
|
||||
models:
|
||||
- name: "Llama 3.1 405B"
|
||||
provider: "ollama"
|
||||
model: "llama3.1:405b"
|
||||
```
|
||||
</TabItem>
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
<Tabs groupId="providers">
|
||||
<TabItem value="Together">
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "Llama 3.1 405B",
|
||||
"provider": "together",
|
||||
"model": "llama3.1-405b",
|
||||
"apiKey": "<YOUR_TOGETHER_API_KEY>"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="Groq">
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "Llama 3.1 405B",
|
||||
"provider": "groq",
|
||||
"model": "llama3.1-405b",
|
||||
"apiKey": "<YOUR_GROQ_API_KEY>"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="vLLM">
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "Llama 3.1 405B",
|
||||
"provider": "vllm",
|
||||
"model": "llama3.1-405b"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="Ollama">
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "Llama 3.1 405B",
|
||||
"provider": "ollama",
|
||||
"model": "llama3.1:405b"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
### GPT-4o from OpenAI
|
||||
|
||||
If you prefer to use a model from [OpenAI](../customize/model-providers/top-level/openai.md), then we recommend GPT-4o.
|
||||
If you prefer to use a model from [OpenAI](../customize/model-providers/top-level/openai.mdx), then we recommend GPT-4o.
|
||||
|
||||
```json title="config.json"
|
||||
"models": [
|
||||
{
|
||||
"title": "GPT-4o",
|
||||
"provider": "openai",
|
||||
"model": "",
|
||||
"apiKey": "[OPENAI_API_KEY]"
|
||||
}
|
||||
]
|
||||
```
|
||||
<Tabs groupId="config-example">
|
||||
<TabItem value="yaml" label="YAML">
|
||||
```yaml title="Package or config.yaml"
|
||||
models:
|
||||
- name: GPT-4o
|
||||
provider: openai
|
||||
model: ''
|
||||
apiKey: <YOUR_OPENAI_API_KEY>
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "GPT-4o",
|
||||
"provider": "openai",
|
||||
"model": "",
|
||||
"apiKey": "<YOUR_OPENAI_API_KEY>"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
### Grok-2 from xAI
|
||||
|
||||
If you prefer to use a model from [xAI](../customize/model-providers/top-level/xAI.md), then we recommend Grok-2.
|
||||
If you prefer to use a model from [xAI](../customize/model-providers/top-level/xAI.mdx), then we recommend Grok-2.
|
||||
|
||||
```json title="config.json"
|
||||
"models": [
|
||||
{
|
||||
"title": "Grok-2",
|
||||
"provider": "xAI",
|
||||
"model": "grok-2-latest",
|
||||
"apiKey": "[XAI_API_KEY]"
|
||||
}
|
||||
]
|
||||
```
|
||||
<Tabs groupId="config-example">
|
||||
<TabItem value="yaml" label="YAML">
|
||||
```yaml title="Package or config.yaml"
|
||||
models:
|
||||
- name: Grok-2
|
||||
provider: xAI
|
||||
model: grok-2-latest
|
||||
apiKey: <YOUR_XAI_API_KEY>
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "Grok-2",
|
||||
"provider": "xAI",
|
||||
"model": "grok-2-latest",
|
||||
"apiKey": "<YOUR_XAI_API_KEY>"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
### Gemini 1.5 Pro from Google
|
||||
|
||||
If you prefer to use a model from [Google](../customize/model-providers/top-level/gemini.md), then we recommend Gemini 1.5 Pro.
|
||||
If you prefer to use a model from [Google](../customize/model-providers/top-level/gemini.mdx), then we recommend Gemini 1.5 Pro.
|
||||
|
||||
```json title="config.json"
|
||||
"models": [
|
||||
{
|
||||
"title": "Gemini 1.5 Pro",
|
||||
"provider": "gemini",
|
||||
"model": "gemini-1.5-pro-latest",
|
||||
"apiKey": "[GEMINI_API_KEY]"
|
||||
}
|
||||
]
|
||||
```
|
||||
<Tabs groupId="config-example">
|
||||
<TabItem value="yaml" label="YAML">
|
||||
```yaml title="Package or config.yaml"
|
||||
models:
|
||||
- name: Gemini 1.5 Pro
|
||||
provider: gemini
|
||||
model: gemini-1.5-pro-latest
|
||||
apiKey: <YOUR_GEMINI_API_KEY>
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "Gemini 1.5 Pro",
|
||||
"provider": "gemini",
|
||||
"model": "gemini-1.5-pro-latest",
|
||||
"apiKey": "<YOUR_GEMINI_API_KEY>"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
## Local, offline experience
|
||||
|
||||
|
|
@ -135,65 +245,117 @@ For the best local, offline Chat experience, you will want to use a model that i
|
|||
|
||||
### Llama 3.1 8B
|
||||
|
||||
If your local machine can run an 8B parameter model, then we recommend running Llama 3.1 8B on your machine (e.g. using [Ollama](../customize/model-providers/top-level/ollama.md) or [LM Studio](../customize/model-providers/more/lmstudio.md)).
|
||||
If your local machine can run an 8B parameter model, then we recommend running Llama 3.1 8B on your machine (e.g. using [Ollama](../customize/model-providers/top-level/ollama.mdx) or [LM Studio](../customize/model-providers/more/lmstudio.mdx)).
|
||||
|
||||
<Tabs groupId="providers">
|
||||
<TabItem value="Ollama">
|
||||
```json title="config.json"
|
||||
"models": [
|
||||
{
|
||||
"title": "Llama 3.1 8B",
|
||||
"provider": "ollama",
|
||||
"model": "llama3.1:8b",
|
||||
"apiBase": "http://localhost:11434"
|
||||
}
|
||||
]
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="LM Studio">
|
||||
```json title="config.json"
|
||||
"models": [
|
||||
{
|
||||
"title": "Llama 3.1 8B",
|
||||
"provider": "lmstudio",
|
||||
"model": "llama3.1-8b"
|
||||
}
|
||||
]
|
||||
```
|
||||
</TabItem>
|
||||
<Tabs groupId="config-example">
|
||||
<TabItem value="yaml" label="YAML">
|
||||
<Tabs groupId="providers">
|
||||
<TabItem value="Ollama">
|
||||
```yaml title="Package or config.yaml"
|
||||
models:
|
||||
- name: Llama 3.1 8B
|
||||
provider: ollama
|
||||
model: llama3.1:8b
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="LM Studio">
|
||||
```yaml title="Package or config.yaml"
|
||||
models:
|
||||
- name: Llama 3.1 8B
|
||||
provider: lmstudio
|
||||
model: llama3.1:8b
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
<Tabs groupId="providers">
|
||||
<TabItem value="Ollama">
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "Llama 3.1 8B",
|
||||
"provider": "ollama",
|
||||
"model": "llama3.1:8b"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="LM Studio">
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "Llama 3.1 8B",
|
||||
"provider": "lmstudio",
|
||||
"model": "llama3.1-8b"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
### DeepSeek Coder 2 16B
|
||||
|
||||
If your local machine can run a 16B parameter model, then we recommend running DeepSeek Coder 2 16B (e.g. using [Ollama](../customize/model-providers/top-level/ollama.md) or [LM Studio](../customize/model-providers/more/lmstudio.md)).
|
||||
If your local machine can run a 16B parameter model, then we recommend running DeepSeek Coder 2 16B (e.g. using [Ollama](../customize/model-providers/top-level/ollama.mdx) or [LM Studio](../customize/model-providers/more/lmstudio.mdx)).
|
||||
|
||||
<Tabs groupId="providers">
|
||||
<TabItem value="Ollama">
|
||||
```json title="config.json"
|
||||
"models": [
|
||||
{
|
||||
"title": "DeepSeek Coder 2 16B",
|
||||
"provider": "ollama",
|
||||
"model": "deepseek-coder-v2:16b",
|
||||
"apiBase": "http://localhost:11434"
|
||||
}
|
||||
]
|
||||
<Tabs groupId="config-example">
|
||||
<TabItem value="yaml" label="YAML">
|
||||
<Tabs groupId="providers">
|
||||
<TabItem value="Ollama">
|
||||
```yaml title="Package or config.yaml"
|
||||
models:
|
||||
- name: DeepSeek Coder 2 16B
|
||||
provider: ollama
|
||||
model: deepseek-coder-v2:16b
|
||||
```
|
||||
|
||||
</TabItem>
|
||||
<TabItem value="LM Studio">
|
||||
|
||||
```json title="config.json"
|
||||
"models": [
|
||||
{
|
||||
"title": "DeepSeek Coder 2 16B",
|
||||
"provider": "lmstudio",
|
||||
"model": "deepseek-coder-v2:16b"
|
||||
}
|
||||
]
|
||||
</TabItem>
|
||||
<TabItem value="LM Studio">
|
||||
```yaml title="Package or config.yaml"
|
||||
models:
|
||||
- name: DeepSeek Coder 2 16B
|
||||
provider: lmstudio
|
||||
model: deepseek-coder-v2:16b
|
||||
```
|
||||
</TabItem>
|
||||
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
<Tabs groupId="providers">
|
||||
<TabItem value="Ollama">
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "DeepSeek Coder 2 16B",
|
||||
"provider": "ollama",
|
||||
"model": "deepseek-coder-v2:16b",
|
||||
"apiBase": "http://localhost:11434"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="LM Studio">
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "DeepSeek Coder 2 16B",
|
||||
"provider": "lmstudio",
|
||||
"model": "deepseek-coder-v2:16b"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
## Other experiences
|
||||
|
|
|
|||
|
|
@ -1,676 +0,0 @@
|
|||
---
|
||||
title: Context providers
|
||||
description: Type '@' to select content to the LLM as context
|
||||
keywords: [context, "@", provider, LLM]
|
||||
---
|
||||
|
||||
Context Providers allow you to type '@' and see a dropdown of content that can all be fed to the LLM as context. Every context provider is a plugin, which means if you want to reference some source of information that you don't see here, you can request (or build!) a new context provider.
|
||||
|
||||
As an example, say you are working on solving a new GitHub Issue. You type '@Issue' and select the one you are working on. Continue can now see the issue title and contents. You also know that the issue is related to the files 'readme.md' and 'helloNested.py', so you type '@readme' and '@hello' to find and select them. Now these 3 "Context Items" are displayed inline with the rest of your input.
|
||||
|
||||

|
||||
|
||||
## Built-in Context Providers
|
||||
|
||||
To use any of the built-in context providers, open `config.json` and add it to the `contextProviders` list.
|
||||
|
||||
### `@File`
|
||||
|
||||
Reference any file in your current workspace.
|
||||
|
||||
```json title="config.json"
|
||||
{
|
||||
"contextProviders": [
|
||||
{
|
||||
"name": "file"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
### `@Code`
|
||||
|
||||
Reference specific functions or classes from throughout your project.
|
||||
|
||||
```json title="config.json"
|
||||
{
|
||||
"contextProviders": [
|
||||
{
|
||||
"name": "code"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
### `@Git Diff`
|
||||
|
||||
Reference all of the changes you've made to your current branch. This is useful if you want to summarize what you've done or ask for a general review of your work before committing.
|
||||
|
||||
```json title="config.json"
|
||||
{
|
||||
"contextProviders": [
|
||||
{
|
||||
"name": "diff"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
### `@Current File`
|
||||
|
||||
Reference the currently open file.
|
||||
|
||||
```json title="config.json"
|
||||
{
|
||||
"contextProviders": [
|
||||
{
|
||||
"name": "currentFile"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
### `@Terminal`
|
||||
|
||||
Reference the last command you ran in your IDE's terminal and its output.
|
||||
|
||||
```json title="config.json"
|
||||
{
|
||||
"contextProviders": [
|
||||
{
|
||||
"name": "terminal"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
### `@Docs`
|
||||
|
||||
Reference the contents from any documentation site.
|
||||
|
||||
```json title="config.json"
|
||||
{
|
||||
"contextProviders": [
|
||||
{
|
||||
"name": "docs"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
Note that this will only enable the `@Docs` context provider.
|
||||
|
||||
To use it, you need to add a documentation site to your `config.json`. See the [docs](../customize/deep-dives/docs.md) page for more information.
|
||||
|
||||
### `@Open`
|
||||
|
||||
Reference the contents of all of your open files. Set `onlyPinned` to `true` to only reference pinned files.
|
||||
|
||||
```json title="config.json"
|
||||
{
|
||||
"contextProviders": [
|
||||
{
|
||||
"name": "open",
|
||||
"params": {
|
||||
"onlyPinned": true
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
### `@Web`
|
||||
|
||||
Reference relevant pages from across the web, automatically determined from your input.
|
||||
|
||||
Optionally, set "n" to limit the number of results returned (default 6).
|
||||
|
||||
```json title="config.json"
|
||||
{
|
||||
"contextProviders": [
|
||||
{
|
||||
"name": "web",
|
||||
"params": {
|
||||
"n": 5
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
### `@Codebase`
|
||||
|
||||
Reference the most relevant snippets from your codebase.
|
||||
|
||||
```json title="config.json"
|
||||
{
|
||||
"contextProviders": [
|
||||
{
|
||||
"name": "codebase"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
Read more about indexing and retrieval [here](../customize/deep-dives/codebase.md).
|
||||
|
||||
### `@Folder`
|
||||
|
||||
Uses the same retrieval mechanism as `@Codebase`, but only on a single folder.
|
||||
|
||||
```json title="config.json"
|
||||
{
|
||||
"contextProviders": [
|
||||
{
|
||||
"name": "folder"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
### `@Search`
|
||||
|
||||
Reference the results of codebase search, just like the results you would get from VS Code search.
|
||||
|
||||
```json title="config.json"
|
||||
{
|
||||
"contextProviders": [
|
||||
{
|
||||
"name": "search"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
This context provider is powered by [ripgrep](https://github.com/BurntSushi/ripgrep).
|
||||
|
||||
### `@Url`
|
||||
|
||||
Reference the markdown converted contents of a given URL.
|
||||
|
||||
```json title="config.json"
|
||||
{
|
||||
"contextProviders": [
|
||||
{
|
||||
"name": "url"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
### `@Clipboard`
|
||||
|
||||
Reference recent clipboard items
|
||||
|
||||
```json title="config.json"
|
||||
{
|
||||
"contextProviders": [
|
||||
{
|
||||
"name": "clipboard"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
### `@Tree`
|
||||
|
||||
Reference the structure of your current workspace.
|
||||
|
||||
```json title="config.json"
|
||||
{
|
||||
"contextProviders": [
|
||||
{
|
||||
"name": "tree"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
### `@Problems`
|
||||
|
||||
Get Problems from the current file.
|
||||
|
||||
```json title="config.json"
|
||||
{
|
||||
"contextProviders": [
|
||||
{
|
||||
"name": "problems"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
### `@Debugger`
|
||||
|
||||
Reference the contents of the local variables in the debugger. Currently only available in VS Code.
|
||||
|
||||
```json title="config.json"
|
||||
{
|
||||
"contextProviders": [
|
||||
{
|
||||
"name": "debugger",
|
||||
"params": {
|
||||
"stackDepth": 3
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
Uses the top _n_ levels (defaulting to 3) of the call stack for that thread.
|
||||
|
||||
### `@Repository Map`
|
||||
|
||||
Reference the outline of your codebase. By default, signatures are included along with file in the repo map.
|
||||
|
||||
`includeSignatures` params can be set to false to exclude signatures. This could be necessary for large codebases and/or to reduce context size significantly. Signatures will not be included if indexing is disabled.
|
||||
|
||||
```json title="config.json"
|
||||
{
|
||||
"contextProviders": [
|
||||
{
|
||||
"name": "repo-map",
|
||||
"params": {
|
||||
"includeSignatures": false // default true
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
Provides a list of files and the call signatures of top-level classes, functions, and methods in those files. This helps the model better understand how a particular piece of code relates to the rest of the codebase.
|
||||
|
||||
In the submenu that appears, you can select either `Entire codebase`, or specify a subfolder to generate the repostiory map from.
|
||||
|
||||
This context provider is inpsired by [Aider's repository map](https://aider.chat/2023/10/22/repomap.html).
|
||||
|
||||
### `@Operating System`
|
||||
|
||||
Reference the architecture and platform of your current operating system.
|
||||
|
||||
```json title="config.json"
|
||||
{
|
||||
"contextProviders": [
|
||||
{
|
||||
"name": "os"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
### Model Context Protocol
|
||||
|
||||
The [Model Context Protocol](https://modelcontextprotocol.io/introduction) is a standard proposed by Anthropic to unify prompts, context, and tool use. Continue supports any MCP server with the MCP context provider. Read their [quickstart](https://modelcontextprotocol.io/quickstart) to learn how to set up a local server and then configure your `config.json` like this:
|
||||
|
||||
```json
|
||||
{
|
||||
"experimental": {
|
||||
"modelContextProtocolServers": [
|
||||
{
|
||||
"transport": {
|
||||
"type": "stdio",
|
||||
"command": "uvx",
|
||||
"args": ["mcp-server-sqlite", "--db-path", "/Users/NAME/test.db"]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
You'll then be able to type "@" and see "MCP" in the context providers dropdown.
|
||||
|
||||
### Prompt Files
|
||||
|
||||
See [Prompt Files](/customize/deep-dives/prompt-files). Prompt files are not added directly to the config file; prompt files are parsed and injected into the config automatically, to be used like other context providers.
|
||||
|
||||
### `@Issue`
|
||||
|
||||
Reference the conversation in a GitHub issue.
|
||||
|
||||
```json title="config.json"
|
||||
{
|
||||
"contextProviders": [
|
||||
{
|
||||
"name": "issue",
|
||||
"params": {
|
||||
"repos": [
|
||||
{
|
||||
"owner": "continuedev",
|
||||
"repo": "continue"
|
||||
}
|
||||
],
|
||||
"githubToken": "ghp_xxx"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
Make sure to include your own [GitHub personal access token](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens#creating-a-fine-grained-personal-access-token) to avoid being rate-limited.
|
||||
|
||||
### `@Database`
|
||||
|
||||
Reference table schemas from Sqlite, Postgres, MSSQL, and MySQL databases.
|
||||
|
||||
```json title="config.json"
|
||||
{
|
||||
"contextProviders": [
|
||||
{
|
||||
"name": "database",
|
||||
"params": {
|
||||
"connections": [
|
||||
{
|
||||
"name": "examplePostgres",
|
||||
"connection_type": "postgres",
|
||||
"connection": {
|
||||
"user": "username",
|
||||
"host": "localhost",
|
||||
"database": "exampleDB",
|
||||
"password": "yourPassword",
|
||||
"port": 5432
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "exampleMssql",
|
||||
"connection_type": "mssql",
|
||||
"connection": {
|
||||
"user": "username",
|
||||
"server": "localhost",
|
||||
"database": "exampleDB",
|
||||
"password": "yourPassword"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "exampleSqlite",
|
||||
"connection_type": "sqlite",
|
||||
"connection": {
|
||||
"filename": "/path/to/your/sqlite/database.db"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
Each connection should include a unique name, the `connection_type`, and the necessary connection parameters specific to each database type.
|
||||
|
||||
Available connection types:
|
||||
|
||||
- `postgres`
|
||||
- `mysql`
|
||||
- `sqlite`
|
||||
|
||||
### `@Postgres`
|
||||
|
||||
Reference the schema of a table, and some sample rows
|
||||
|
||||
```json title="config.json"
|
||||
{
|
||||
"contextProviders": [
|
||||
{
|
||||
"name": "postgres",
|
||||
"params": {
|
||||
"host": "localhost",
|
||||
"port": 5436,
|
||||
"user": "myuser",
|
||||
"password": "catsarecool",
|
||||
"database": "animals",
|
||||
"schema": "public",
|
||||
"sampleRows": 3
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
The only required settings are those for creating the database connection: `host`, `port`, `user`, `password`, and `database`.
|
||||
|
||||
By default, the `schema` filter is set to `public`, and the `sampleRows` is set to 3. You may unset the schema if you want to include tables from all schemas.
|
||||
|
||||
[Here is a short demo.](https://github.com/continuedev/continue/pull/859)
|
||||
|
||||
### `@Google`
|
||||
|
||||
Reference the results of a Google search.
|
||||
|
||||
```json title="config.json"
|
||||
{
|
||||
"contextProviders": [
|
||||
{
|
||||
"name": "google",
|
||||
"params": {
|
||||
"serperApiKey": "<your serper.dev api key>"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
For example, type "@Google python tutorial" if you want to search and discuss ways of learning Python.
|
||||
|
||||
Note: You can get an API key for free at [serper.dev](https://serper.dev).
|
||||
|
||||
### `@Gitlab Merge Request`
|
||||
|
||||
Reference an open MR for this branch on GitLab.
|
||||
|
||||
```json title="config.json"
|
||||
{
|
||||
"contextProviders": [
|
||||
{
|
||||
"name": "gitlab-mr",
|
||||
"params": {
|
||||
"token": "..."
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
You will need to create a [personal access token](https://docs.gitlab.com/ee/user/profile/personal_access_tokens.html) with the `read_api` scope.
|
||||
|
||||
#### Using Self-Hosted GitLab
|
||||
|
||||
You can specify the domain to communicate with by setting the `domain` parameter in your configurtion. By default this is set to `gitlab.com`.
|
||||
|
||||
```json title="config.json"
|
||||
{
|
||||
"contextProviders": [
|
||||
{
|
||||
"name": "gitlab-mr",
|
||||
"params": {
|
||||
"token": "...",
|
||||
"domain": "gitlab.example.com"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
#### Filtering Comments
|
||||
|
||||
If you select some code to be edited, you can have the context provider filter out comments for other files. To enable this feature, set `filterComments` to `true`.
|
||||
|
||||
### `@Jira`
|
||||
|
||||
Reference the conversation in a Jira issue.
|
||||
|
||||
```json title="config.json"
|
||||
{
|
||||
"contextProviders": [
|
||||
{
|
||||
"name": "jira",
|
||||
"params": {
|
||||
"domain": "company.atlassian.net",
|
||||
"token": "ATATT..."
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
Make sure to include your own [Atlassian API Token](https://id.atlassian.com/manage-profile/security/api-tokens), or use your `email` and `token`, with token set to your password for basic authentication. If you use your own Atlassian API Token, don't configure your email.
|
||||
|
||||
#### Jira Datacenter Support
|
||||
|
||||
This context provider supports both Jira API version 2 and 3. It will use version 3 by default since
|
||||
that's what the cloud version uses, but if you have the datacenter version of Jira, you'll need
|
||||
to set the API Version to 2 using the `apiVersion` property.
|
||||
|
||||
```json title="config.json"
|
||||
{
|
||||
"contextProviders": [
|
||||
{
|
||||
"name": "jira",
|
||||
"params": {
|
||||
"apiVersion": "2"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
#### Issue Query
|
||||
|
||||
By default, the following query will be used to find issues:
|
||||
|
||||
```jql
|
||||
assignee = currentUser() AND resolution = Unresolved order by updated DESC
|
||||
```
|
||||
|
||||
You can override this query by setting the `issueQuery` parameter.
|
||||
|
||||
### `@Discord`
|
||||
|
||||
Reference the messages in a Discord channel.
|
||||
|
||||
```json title="config.json"
|
||||
{
|
||||
"contextProviders": [
|
||||
{
|
||||
"name": "discord",
|
||||
"params": {
|
||||
"discordKey": "bot token",
|
||||
"guildId": "1234567890",
|
||||
"channels": [
|
||||
{
|
||||
"id": "123456",
|
||||
"name": "example-channel"
|
||||
},
|
||||
{
|
||||
"id": "678901",
|
||||
"name": "example-channel-2"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
Make sure to include your own [Bot Token](https://discord.com/developers/applications), and join it to your related server . If you want more granular control over which channels are searched, you can specify a list of channel IDs to search in. If you don't want to specify any channels, just include the guild id(Server ID) and all channels will be included. The provider only reads text channels.
|
||||
|
||||
### `@HTTP`
|
||||
|
||||
The HttpContextProvider makes a POST request to the url passed in the configuration. The server must return 200 OK with a ContextItem object or an array of ContextItems.
|
||||
|
||||
```json title="config.json"
|
||||
{
|
||||
"contextProviders": [
|
||||
{
|
||||
"name": "http",
|
||||
"params": {
|
||||
"url": "https://api.example.com/v1/users"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
The receiving URL should expect to receive the following parameters:
|
||||
|
||||
```js title="POST parameters"
|
||||
{
|
||||
query: string,
|
||||
fullInput: string
|
||||
}
|
||||
```
|
||||
|
||||
The response 200 OK should be a JSON object with the following structure:
|
||||
|
||||
```json title="Response"
|
||||
[
|
||||
{
|
||||
"name": "",
|
||||
"description": "",
|
||||
"content": ""
|
||||
}
|
||||
]
|
||||
|
||||
// OR
|
||||
{
|
||||
"name": "",
|
||||
"description": "",
|
||||
"content": ""
|
||||
}
|
||||
```
|
||||
|
||||
### `@Commits`
|
||||
|
||||
Reference specific git commit metadata and diff or all of the recent commits.
|
||||
|
||||
```json title="config.json"
|
||||
{
|
||||
"contextProviders": [
|
||||
{
|
||||
"name": "commit",
|
||||
"params": {
|
||||
"Depth": 50,
|
||||
"LastXCommitsDepth": 10
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
The depth is how many commits will be loaded into the submenu, defaults to 50.
|
||||
The LastXCommitsDepth is how many recent commits will be included, defaults to 10.
|
||||
|
||||
### `@Clipboard`
|
||||
|
||||
Reference recent clipboard items
|
||||
|
||||
```json title="config.json"
|
||||
{
|
||||
"contextProviders": [
|
||||
{
|
||||
"name": "clipboard"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
### `@Greptile`
|
||||
|
||||
Query a [Greptile](https://www.greptile.com/) index of the current repo/branch.
|
||||
|
||||
```json title="config.json"
|
||||
{
|
||||
"contextProviders": [
|
||||
{
|
||||
"name": "greptile",
|
||||
"params": {
|
||||
"GreptileToken": "...",
|
||||
"GithubToken": "..."
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
### Requesting Context Providers
|
||||
|
||||
Not seeing what you want? Create an issue [here](https://github.com/continuedev/continue/issues/new?assignees=TyDunn&labels=enhancement&projects=&template=feature-request-%F0%9F%92%AA.md&title=) to request a new Context Provider.
|
||||
1050
docs/docs/customize/context-providers.mdx
Normal file
1050
docs/docs/customize/context-providers.mdx
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -3,20 +3,38 @@ title: Autocomplete
|
|||
keywords: [autocomplete]
|
||||
---
|
||||
|
||||
import Tabs from "@theme/Tabs";
|
||||
import TabItem from "@theme/TabItem";
|
||||
|
||||
### Setting up with Codestral (recommended)
|
||||
|
||||
If you want to have the best autocomplete experience, we recommend using Codestral, which is available through the [Mistral API](https://console.mistral.ai/). To do this, obtain an API key and add it to your `config.json`:
|
||||
If you want to have the best autocomplete experience, we recommend using Codestral, which is available through the [Mistral API](https://console.mistral.ai/). To do this, obtain an API key and add it to your config:
|
||||
|
||||
```json
|
||||
{
|
||||
"tabAutocompleteModel": {
|
||||
"title": "Codestral",
|
||||
"provider": "mistral",
|
||||
"model": "codestral-latest",
|
||||
"apiKey": "YOUR_API_KEY"
|
||||
<Tabs groupId="config-example">
|
||||
<TabItem value="yaml" label="YAML">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: Codestral
|
||||
provider: mistral
|
||||
model: codestral-latest
|
||||
apiKey: <YOUR_CODESTRAL_API_KEY>
|
||||
roles:
|
||||
- autocomplete
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"tabAutocompleteModel": {
|
||||
"title": "Codestral",
|
||||
"provider": "mistral",
|
||||
"model": "codestral-latest",
|
||||
"apiKey": "<YOUR_CODESTRAL_API_KEY>"
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
### Setting up with Ollama (default)
|
||||
|
||||
|
|
@ -32,17 +50,31 @@ Once it has been downloaded, you should begin to see completions in VS Code.
|
|||
|
||||
All of the configuration options available for chat models are available to use for tab-autocomplete. For example, if you wanted to use a remote Ollama instance you would edit your `config.json` like this (note that it is not inside the models array):
|
||||
|
||||
```json title="config.json"
|
||||
{
|
||||
<Tabs groupId="config-example">
|
||||
<TabItem value="yaml" label="YAML">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: Tab Autocomplete Model
|
||||
provider: ollama
|
||||
model: qwen2.5-coder:1.5b-base
|
||||
apiBase: https://<my endpoint>
|
||||
roles:
|
||||
- autocomplete
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"tabAutocompleteModel": {
|
||||
"title": "Tab Autocomplete Model",
|
||||
"provider": "ollama",
|
||||
"model": "qwen2.5-coder:1.5b-base",
|
||||
"apiBase": "https://<my endpoint>"
|
||||
},
|
||||
...
|
||||
}
|
||||
```
|
||||
"title": "Tab Autocomplete Model",
|
||||
"provider": "ollama",
|
||||
"model": "qwen2.5-coder:1.5b-base",
|
||||
"apiBase": "https://<my endpoint>"
|
||||
}
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
If you aren't yet familiar with the available options, you can find the full reference [here](./configuration.md).
|
||||
|
||||
|
|
@ -70,21 +102,36 @@ This object allows you to customize the behavior of tab-autocomplete. The availa
|
|||
|
||||
### Full example
|
||||
|
||||
```json title="config.json"
|
||||
{
|
||||
"tabAutocompleteModel": {
|
||||
"title": "Tab Autocomplete Model",
|
||||
"provider": "ollama",
|
||||
"model": "qwen2.5-coder:1.5b-base",
|
||||
"apiBase": "https://<my endpoint>"
|
||||
},
|
||||
"tabAutocompleteOptions": {
|
||||
"debounceDelay": 500,
|
||||
"maxPromptTokens": 1500,
|
||||
"disableInFiles": ["*.md"]
|
||||
<Tabs groupId="config-example">
|
||||
<TabItem value="yaml" label="YAML">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: Tab Autocomplete Model
|
||||
provider: ollama
|
||||
model: qwen2.5-coder:1.5b-base
|
||||
apiBase: https://<my endpoint>
|
||||
roles:
|
||||
- autocomplete
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"tabAutocompleteModel": {
|
||||
"title": "Tab Autocomplete Model",
|
||||
"provider": "ollama",
|
||||
"model": "qwen2.5-coder:1.5b-base",
|
||||
"apiBase": "https://<my endpoint>"
|
||||
},
|
||||
"tabAutocompleteOptions": {
|
||||
"debounceDelay": 500,
|
||||
"maxPromptTokens": 1500,
|
||||
"disableInFiles": ["*.md"]
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
## FAQs
|
||||
|
||||
|
|
@ -3,12 +3,15 @@ description: Talk to your codebase
|
|||
keywords: [talk, embeddings, reranker, codebase, experimental]
|
||||
---
|
||||
|
||||
import Tabs from "@theme/Tabs";
|
||||
import TabItem from "@theme/TabItem";
|
||||
|
||||
# @Codebase
|
||||
|
||||
Continue indexes your codebase so that it can later automatically pull in the most relevant context from throughout your workspace. This is done via a combination of embeddings-based retrieval and keyword search. By default, all embeddings are calculated locally using `transformers.js` and stored locally in `~/.continue/index`.
|
||||
|
||||
:::info[`transformers.js cannot be used in JetBrains`]
|
||||
Currently, `transformers.js` cannot be used in JetBrains IDEs. However, you can select a differet embeddings model from [the list here](../model-types/embeddings.md).
|
||||
Currently, `transformers.js` cannot be used in JetBrains IDEs. However, you can select a differet embeddings model from [the list here](../model-types/embeddings.mdx).
|
||||
:::
|
||||
|
||||
Currently, the codebase retrieval feature is available as the "codebase" and "folder" context providers. You can use them by typing `@Codebase` or `@Folder` in the input box, and then asking a question. The contents of the input box will be compared with the embeddings from the rest of the codebase (or folder) to determine relevant files.
|
||||
|
|
@ -38,22 +41,36 @@ Here are use cases where it is not useful:
|
|||
|
||||
## Configuration
|
||||
|
||||
There are a few options that let you configure the behavior of the codebase context provider. These can be set in `config.json`, and are the same for the codebase, docs, and folder context providers:
|
||||
There are a few options that let you configure the behavior of the `@codebase` context provider, which are the same for the `@folder` context provider:
|
||||
|
||||
```json title="config.json"
|
||||
{
|
||||
"contextProviders": [
|
||||
{
|
||||
"name": "codebase",
|
||||
"params": {
|
||||
"nRetrieve": 25,
|
||||
"nFinal": 5,
|
||||
"useReranking": true
|
||||
<Tabs groupId="config-example">
|
||||
<TabItem value="yaml" label="YAML">
|
||||
```yaml title="Package or config.yaml"
|
||||
context:
|
||||
- provider: codebase
|
||||
params:
|
||||
nRetrieve: 25,
|
||||
nFinal: 5,
|
||||
useReranking: true
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"contextProviders": [
|
||||
{
|
||||
"name": "codebase",
|
||||
"params": {
|
||||
"nRetrieve": 25,
|
||||
"nFinal": 5,
|
||||
"useReranking": true
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
]
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
### `nRetrieve`
|
||||
|
||||
|
|
@ -79,4 +96,4 @@ If you need to force a refresh of the index, reload the VS Code window with <kbd
|
|||
|
||||
## Repository map
|
||||
|
||||
Models in the Claude 3, Llama 3.1/3.2, Gemini 1.5, and GPT-4o families will automatically use a [repository map](../context-providers.md#repository-map) during codebase retrieval, which allows the model to understand the structure of your codebase and use it to answer questions. Currently, the repository map only contains the filepaths in the codebase.
|
||||
Models in the Claude 3, Llama 3.1/3.2, Gemini 1.5, and GPT-4o families will automatically use a [repository map](../context-providers.mdx#repository-map) during codebase retrieval, which allows the model to understand the structure of your codebase and use it to answer questions. Currently, the repository map only contains the filepaths in the codebase.
|
||||
|
|
@ -5,27 +5,34 @@ keywords: [config, settings, customize]
|
|||
|
||||
# Configuration
|
||||
|
||||
Continue can be deeply customized. User-level configuration is stored and can be edited in your home directory in [`config.json`](#configjson):
|
||||
## YAML Config
|
||||
|
||||
- `~/.continue/config.json` (MacOS / Linux)
|
||||
- `%USERPROFILE%\.continue\config.json` (Windows)
|
||||
Continue can be deeply customized. Local user-level configuration is stored and can be edited in your home directory in `config.yaml`:
|
||||
|
||||
To open `config.json`, you can click the "gear" icon in the header of the Continue Chat sidebar to open the settings page, and then click `Open [your config location]` to open the file. When editing this file, you can see the available options suggested as you type, or check the reference below.
|
||||
To open `config.yaml`, you can click the "gear" icon in the header of the Continue Chat sidebar to open the settings page, and then click `Open Config File` to open the file. When editing this file, you can see the available options suggested as you type, or check the reference below.
|
||||
|
||||
When you save `config.json`, Continue will automatically refresh to take into account your changes. `config.json` is automatically created the first time you use Continue. `config.json` is automatically generated if it doesn't exist.
|
||||
- `~/.continue/config.yaml` (MacOS / Linux)
|
||||
- `%USERPROFILE%\.continue\config.yaml` (Windows)
|
||||
|
||||
In the vast majority of cases, you will only need to edit `config.json`. However, Continue offers two additional ways to customize configuration:
|
||||
To open your configuration file, you can click the "gear" icon in the bottom right corner of the Continue Chat sidebar. When editing this file, you can see the available options suggested as you type, or check the reference below.
|
||||
|
||||
- [`.continuerc.json`](#continuercjson) - Workspace-level configuration. If you'd like to scope certain settings to a particular workspace, you can add a `.continuerc.json` to the root of your project. This can be set to merge with _or_ override the user-level `config.json`
|
||||
When you save a config file from the IDE, Continue will automatically refresh to take into account your changes. A config file is automatically created the first time you use Continue, and always automatically generated with default values if it doesn't exist.
|
||||
|
||||
See the full reference for `config.yaml` [here](../../reference.md).
|
||||
|
||||
## Deprecated configuration methods
|
||||
|
||||
:::info
|
||||
View the `config.json` migration guide [here](../../yaml-migration.md)
|
||||
:::
|
||||
|
||||
- [`config.json`](../../json-reference.md) - The original configuration format which is stored in a file at the same location as `config.yaml`
|
||||
- [`.continuerc.json`](#continuercjson) - Workspace-level configuration
|
||||
- [`config.ts`](#configts) - Advanced configuration (probably unnecessary) - a TypeScript file in your home directory that can be used to programmatically modify (_merged_) the `config.json` schema:
|
||||
- `~/.continue/config.ts` (MacOS / Linux)
|
||||
- `%USERPROFILE%\.continue\config.ts` (Windows)
|
||||
|
||||
## `config.json`
|
||||
|
||||
See the full reference for `config.json` [here](../../reference.md).
|
||||
|
||||
## `.continuerc.json`
|
||||
### `.continuerc.json`
|
||||
|
||||
The format of `.continuerc.json` is the same as `config.json`, plus one _additional_ property `mergeBehavior`, which can be set to either "merge" or "overwrite". If set to "merge" (the default), `.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`.
|
||||
|
||||
|
|
@ -40,7 +47,7 @@ Example
|
|||
}
|
||||
```
|
||||
|
||||
## `config.ts`
|
||||
### `config.ts`
|
||||
|
||||
To programatically extend `config.json`, you can place a `config.ts` script in same directory as `config.json` and export a `modifyConfig` function, like:
|
||||
|
||||
|
|
|
|||
|
|
@ -14,23 +14,36 @@ keywords:
|
|||
toc_max_heading_level: 5
|
||||
---
|
||||
|
||||
import Tabs from "@theme/Tabs";
|
||||
import TabItem from "@theme/TabItem";
|
||||
|
||||
# @Docs
|
||||
|
||||
The [`@Docs` context provider](customize/context-providers.md#docs) allows you to efficiently reference locally-indexed documentation directly within Continue.
|
||||
The [`@Docs` context provider](customize/context-providers.mdx#docs) allows you to efficiently reference documentation directly within Continue.
|
||||
|
||||
## Enabling the `@Docs` context provider
|
||||
|
||||
To enable the `@Docs` context provider, add it to the list of context providers in your `config.json` file.
|
||||
|
||||
```json title="config.json"
|
||||
{
|
||||
"contextProviders": [
|
||||
{
|
||||
"name": "docs"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
<Tabs groupId="config-example">
|
||||
<TabItem value="yaml" label="YAML">
|
||||
```yaml title="config.yaml"
|
||||
context:
|
||||
- provider: docs
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"contextProviders": [
|
||||
{
|
||||
"name": "docs"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
## How It Works
|
||||
|
||||
|
|
@ -76,17 +89,29 @@ Documentation sources may be suggested based on package files in your repo. This
|
|||
|
||||
For bulk documentation site adds or edits, we recommend editing your global configuration file directly. Documentation sites are stored in an array within `docs` in your global configuration, as follows:
|
||||
|
||||
```json title="config.json"
|
||||
{
|
||||
"docs": [
|
||||
{
|
||||
"title": "Nest.js",
|
||||
"startUrl": "https://docs.nestjs.com/",
|
||||
"faviconUrl": "https://docs.nestjs.com/favicon.ico"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
<Tabs groupId="config-example">
|
||||
<TabItem value="yaml" label="YAML">
|
||||
```yaml title="config.yaml"
|
||||
docs:
|
||||
- title: Nest.js
|
||||
startUrl: https://docs.nestjs.com/
|
||||
faviconUrl: https://docs.nestjs.com/favicon.ico
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"docs": [
|
||||
{
|
||||
"title": "Nest.js",
|
||||
"startUrl": "https://docs.nestjs.com/",
|
||||
"faviconUrl": "https://docs.nestjs.com/favicon.ico"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
See [the config reference](../../reference) for all documentation site configuration options.
|
||||
|
||||
|
|
@ -96,43 +121,69 @@ Indexing will re-sync upon saving the configuration file.
|
|||
|
||||
### Using Your Embeddings Provider
|
||||
|
||||
If you have set up an [embeddings provider](../model-types/embeddings.md), @docs will use your embeddings provider. Switching embeddings providers will trigger a re-index of all documentation sites in your configuration.
|
||||
If you have set up an [embeddings provider](../model-types/embeddings.mdx), @docs will use your embeddings provider. Switching embeddings providers will trigger a re-index of all documentation sites in your configuration.
|
||||
|
||||
### Reranking
|
||||
|
||||
As with [@Codebase context provider configuration](./codebase#configuration), you can adjust the reranking behavior of the `@Docs` context provider with the `nRetrieve`, `nFinal`, and `useReranking`.
|
||||
|
||||
```json title="config.json"
|
||||
{
|
||||
"contextProviders": [
|
||||
{
|
||||
"name": "docs",
|
||||
"params": {
|
||||
"nRetrieve": 25, // The number of docs to retreive from the embeddings query
|
||||
"nFinal": 5, // The number of docs chunks to return IF reranking
|
||||
"useReranking": true // use reranking if a reranker is configured (defaults to true)
|
||||
<Tabs groupId="config-example">
|
||||
<TabItem value="yaml" label="YAML">
|
||||
```yaml title="config.yaml"
|
||||
context:
|
||||
- provider: docs
|
||||
params:
|
||||
nRetrieve: 25 # The number of docs to retreive from the embeddings query
|
||||
nFinal: 5 # The number of docs chunks to return IF reranking
|
||||
useReranking: true # use reranking if a reranker is configured (defaults to true)
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"contextProviders": [
|
||||
{
|
||||
"name": "docs",
|
||||
"params": {
|
||||
"nRetrieve": 25, // The number of docs to retreive from the embeddings query
|
||||
"nFinal": 5, // The number of docs chunks to return IF reranking
|
||||
"useReranking": true // use reranking if a reranker is configured (defaults to true)
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
]
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
### Github
|
||||
|
||||
The Github API rate limits public requests to 60 per hour. If you want to reliably index Github repos, you can add a github token to your config file:
|
||||
|
||||
```json title="config.json"
|
||||
{
|
||||
"contextProviders": [
|
||||
{
|
||||
"name": "docs",
|
||||
"params": {
|
||||
"githubToken": "github_..."
|
||||
<Tabs groupId="config-example">
|
||||
<TabItem value="yaml" label="YAML">
|
||||
```yaml title="config.yaml"
|
||||
context:
|
||||
- provider: docs
|
||||
params:
|
||||
githubToken: <GITHUB_TOKEN>
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"contextProviders": [
|
||||
{
|
||||
"name": "docs",
|
||||
"params": {
|
||||
"githubToken": "github_..."
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
]
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
### Local Crawling
|
||||
|
||||
|
|
@ -140,18 +191,31 @@ By default, Continue crawls documentation sites using a specialized crawling ser
|
|||
|
||||
If your documentation is private, you can skip the default crawler and use a local crawler instead by setting `useLocalCrawling` to `true`.
|
||||
|
||||
```json title="config.json"
|
||||
{
|
||||
"docs": [
|
||||
{
|
||||
"title": "My Private Docs",
|
||||
"startUrl": "http://10.2.1.2/docs",
|
||||
"faviconUrl": "http://10.2.1.2/docs/assets/favicon.ico",
|
||||
"useLocalCrawling": true
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
<Tabs groupId="config-example">
|
||||
<TabItem value="yaml" label="YAML">
|
||||
```yaml title="config.yaml"
|
||||
docs:
|
||||
- title: My Private Docs
|
||||
startUrl: http://10.2.1.2/docs
|
||||
faviconUrl: http://10.2.1.2/docs/assets/favicon.ico,
|
||||
useLocalCrawling: true
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"docs": [
|
||||
{
|
||||
"title": "My Private Docs",
|
||||
"startUrl": "http://10.2.1.2/docs",
|
||||
"faviconUrl": "http://10.2.1.2/docs/assets/favicon.ico",
|
||||
"useLocalCrawling": true
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
The default local crawler is a lightweight tool that cannot render sites that are dynamically generated using JavaScript. If your sites need to be rendered, you can enable the experimental `Use Chromium for Docs Crawling` feature from your [User Settings Page](../settings.md) This will download and install Chromium to `~/.continue/.utils`, and use it as the local crawler.
|
||||
|
||||
|
|
@ -182,41 +246,78 @@ You can also use the following IDE command to force a re-index of all docs: `Con
|
|||
|
||||
The following configuration example works out of the box for VS Code. This uses the built-in embeddings provider with no reranking. Pre-indexed docs will be accessible.
|
||||
|
||||
```json title="config.json"
|
||||
"contextProviders": [
|
||||
{
|
||||
"name": "docs",
|
||||
}
|
||||
],
|
||||
"docs": [
|
||||
{
|
||||
"title": "Nest.js",
|
||||
"startUrl": "https://docs.nestjs.com/",
|
||||
},
|
||||
],
|
||||
```
|
||||
<Tabs groupId="config-example">
|
||||
<TabItem value="yaml" label="YAML">
|
||||
```yaml title="config.yaml"
|
||||
context:
|
||||
- provider: docs
|
||||
|
||||
docs:
|
||||
- title: Nest.js
|
||||
startUrl: https://docs.nestjs.com/
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"contextProviders": [
|
||||
{
|
||||
"name": "docs",
|
||||
}
|
||||
],
|
||||
"docs": [
|
||||
{
|
||||
"title": "Nest.js",
|
||||
"startUrl": "https://docs.nestjs.com/",
|
||||
},
|
||||
]
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
### Jetbrains minimal setup
|
||||
|
||||
Here is the equivalent minimal example for Jetbrains, which requires setting up an [embeddings provider](../model-types/embeddings.md). Pre-indexed docs will _not_ be accessible.
|
||||
Here is the equivalent minimal example for Jetbrains, which requires setting up an [embeddings provider](../model-types/embeddings.mdx). Pre-indexed docs will _not_ be accessible.
|
||||
|
||||
```json title="config.json"
|
||||
"contextProviders": [
|
||||
{
|
||||
"name": "docs",
|
||||
<Tabs groupId="config-example">
|
||||
<TabItem value="yaml" label="YAML">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: LMStudio embedder
|
||||
provider: lmstudio
|
||||
model: nomic-ai/nomic-embed-text-v1.5-GGUF
|
||||
roles:
|
||||
- embed
|
||||
context:
|
||||
- provider: docs
|
||||
docs:
|
||||
- title: Nest.js
|
||||
startUrl: https://docs.nestjs.com/
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"contextProviders": [
|
||||
{
|
||||
"name": "docs",
|
||||
}
|
||||
],
|
||||
"docs": [
|
||||
{
|
||||
"title": "Nest.js",
|
||||
"startUrl": "https://docs.nestjs.com/",
|
||||
},
|
||||
],
|
||||
"embeddingsProvider": {
|
||||
"provider": "lmstudio",
|
||||
"model": "nomic-ai/nomic-embed-text-v1.5-GGUF"
|
||||
}
|
||||
],
|
||||
"docs": [
|
||||
{
|
||||
"title": "Nest.js",
|
||||
"startUrl": "https://docs.nestjs.com/",
|
||||
},
|
||||
],
|
||||
"embeddingsProvider": {
|
||||
"provider": "lmstudio",
|
||||
"model": "nomic-ai/nomic-embed-text-v1.5-GGUF"
|
||||
},
|
||||
```
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
### Full-power setup (VS Code or Jetbrains)
|
||||
|
||||
|
|
@ -227,44 +328,79 @@ The following configuration example includes:
|
|||
- A reranker model available, with reranking parameters customized
|
||||
- A Github token to enable Github crawling
|
||||
|
||||
```json title="config.json"
|
||||
{
|
||||
"contextProviders": [
|
||||
{
|
||||
"name": "docs",
|
||||
"params": {
|
||||
"githubToken": "github_...",
|
||||
"nRetrieve": 25,
|
||||
"nFinal": 5,
|
||||
"useReranking": true
|
||||
<Tabs groupId="config-example">
|
||||
<TabItem value="yaml" label="YAML">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: LMStudio Nomic Text
|
||||
provider: lmstudio
|
||||
model: nomic-ai/nomic-embed-text-v1.5-GGUF
|
||||
roles:
|
||||
- embed
|
||||
- name: Voyage Rerank-2
|
||||
provider: voyage
|
||||
apiKey: <VOYAGE_API_KEY>
|
||||
model: rerank-2
|
||||
roles:
|
||||
- rerank
|
||||
context:
|
||||
- provider: docs
|
||||
params:
|
||||
githubToken: <GITHUB_TOKEN>
|
||||
nRetrieve: 25
|
||||
nFinal: 5
|
||||
useReranking: true
|
||||
docs:
|
||||
- title: Nest.js
|
||||
startUrl: https://docs.nestjs.com/
|
||||
- title: My Private Docs
|
||||
startUrl: http://10.2.1.2/docs
|
||||
faviconUrl: http://10.2.1.2/docs/assets/favicon.ico
|
||||
maxDepth: 4
|
||||
useLocalCrawling: true
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"contextProviders": [
|
||||
{
|
||||
"name": "docs",
|
||||
"params": {
|
||||
"githubToken": "github_...",
|
||||
"nRetrieve": 25,
|
||||
"nFinal": 5,
|
||||
"useReranking": true
|
||||
}
|
||||
}
|
||||
],
|
||||
"docs": [
|
||||
{
|
||||
"title": "Nest.js",
|
||||
"startUrl": "https://docs.nestjs.com/"
|
||||
},
|
||||
{
|
||||
"title": "My Private Docs",
|
||||
"startUrl": "http://10.2.1.2/docs",
|
||||
"faviconUrl": "http://10.2.1.2/docs/assets/favicon.ico",
|
||||
"maxDepth": 4,
|
||||
"useLocalCrawling": true
|
||||
}
|
||||
],
|
||||
"reranker": {
|
||||
"name": "voyage",
|
||||
"params": {
|
||||
"model": "rerank-2",
|
||||
"apiKey": "<YOUR_VOYAGE_API_KEY>"
|
||||
}
|
||||
}
|
||||
],
|
||||
"docs": [
|
||||
{
|
||||
"title": "Nest.js",
|
||||
"startUrl": "https://docs.nestjs.com/"
|
||||
},
|
||||
{
|
||||
"title": "My Private Docs",
|
||||
"startUrl": "http://10.2.1.2/docs",
|
||||
"faviconUrl": "http://10.2.1.2/docs/assets/favicon.ico",
|
||||
"maxDepth": 4,
|
||||
"useLocalCrawling": true
|
||||
"embeddingsProvider": {
|
||||
"provider": "lmstudio",
|
||||
"model": "nomic-ai/nomic-embed-text-v1.5-GGUF"
|
||||
}
|
||||
],
|
||||
"reranker": {
|
||||
"name": "voyage",
|
||||
"params": {
|
||||
"model": "rerank-2",
|
||||
"apiKey": "<VOYAGE_API_KEY>"
|
||||
}
|
||||
},
|
||||
"embeddingsProvider": {
|
||||
"provider": "lmstudio",
|
||||
"model": "nomic-ai/nomic-embed-text-v1.5-GGUF"
|
||||
}
|
||||
}
|
||||
```
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
This could also involve enabling Chromium as a backup for local documentation the [User Settings Page](../settings.md).
|
||||
|
|
@ -16,7 +16,7 @@ Below is a quick example of setting up a prompt file to de
|
|||
2. Add a file called `rails.prompt` to this folder.
|
||||
3. Write the following contents to `rails.prompt` and save.
|
||||
|
||||
```
|
||||
```.prompt
|
||||
name: Rails Project
|
||||
description: Information about this project
|
||||
---
|
||||
|
|
@ -47,7 +47,7 @@ If you don't need any of these parameters, you can leave out the preamble and do
|
|||
|
||||
### Context
|
||||
|
||||
Many [context provider](../context-providers.md) can be referenced by typing "@" followed by the name of the context provider. The currently supported list is:
|
||||
Many [context provider](../context-providers.mdx) can be referenced by typing "@" followed by the name of the context provider. The currently supported list is:
|
||||
|
||||
- `@terminal` - The contents of the terminal
|
||||
- `@currentFile` - The currently active file
|
||||
|
|
|
|||
|
|
@ -1,60 +0,0 @@
|
|||
# Moonshot
|
||||
|
||||
[Moonshot AI](https://platform.moonshot.cn/) provides high-quality large language model services with competitive pricing and excellent performance.
|
||||
|
||||
## Configuration
|
||||
|
||||
To use Moonshot AI models, you need to:
|
||||
|
||||
1. Get an API key from [Moonshot AI Platform](https://platform.moonshot.cn/)
|
||||
2. Add the following configuration to your `config.json`:
|
||||
|
||||
```json
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "Moonshot",
|
||||
"provider": "moonshot",
|
||||
"model": "moonshot-v1-8k",
|
||||
"apiKey": "YOUR_API_KEY"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
## Available Models
|
||||
|
||||
Moonshot AI currently provides the following models:
|
||||
|
||||
- `moonshot-v1-8k`: Base model with 8K context window
|
||||
- `moonshot-v1-32k`: Base model with 32K context window
|
||||
- `moonshot-v1-128k`: Base model with 128K context window
|
||||
|
||||
## Configuration Options
|
||||
|
||||
| Option | Description | Default |
|
||||
|--------|-------------|---------|
|
||||
| `apiKey` | Moonshot API key | Required |
|
||||
| `apiBase` | API base URL | `https://api.moonshot.cn/v1/` |
|
||||
| `model` | Model name to use | `moonshot-v1-8k` |
|
||||
|
||||
## Example
|
||||
|
||||
Here's a complete configuration example:
|
||||
|
||||
```json
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "Moonshot-8K",
|
||||
"provider": "moonshot",
|
||||
"model": "moonshot-v1-8k",
|
||||
"apiKey": "YOUR_API_KEY",
|
||||
"completionOptions": {
|
||||
"temperature": 0.7,
|
||||
"topP": 0.95,
|
||||
"maxTokens": 2048
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
@ -1,18 +0,0 @@
|
|||
# SambaNova Cloud
|
||||
|
||||
The SambaNova Cloud is a cloud platform for running large AI models with the world record Llama 3.1 70B/405B performance. You can follow the instructions in [this blog post](https://sambanova.ai/blog/accelerating-coding-with-sambanova-cloud?ref=blog.continue.dev) to configure your setup.
|
||||
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "SambaNova Llama 3.1 405B",
|
||||
"provider": "sambanova",
|
||||
"model": "llama3.1-405b",
|
||||
"apiKey": "YOUR_API_KEY"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
[View the source](https://github.com/continuedev/continue/blob/main/core/llm/llms/SambaNova.ts)
|
||||
34
docs/docs/customize/model-providers/more/SambaNova.mdx
Normal file
34
docs/docs/customize/model-providers/more/SambaNova.mdx
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
import Tabs from "@theme/Tabs";
|
||||
import TabItem from "@theme/TabItem";
|
||||
|
||||
# SambaNova Cloud
|
||||
|
||||
The SambaNova Cloud is a cloud platform for running large AI models with the world record Llama 3.1 70B/405B performance. You can follow the instructions in [this blog post](https://sambanova.ai/blog/accelerating-coding-with-sambanova-cloud?ref=blog.continue.dev) to configure your setup.
|
||||
|
||||
<Tabs groupId="config-example">
|
||||
<TabItem value="yaml" label="YAML">
|
||||
```yaml title="Package or config.yaml"
|
||||
models:
|
||||
- name: SambaNova Llama 3.1 405B
|
||||
provider: sambanova
|
||||
model: llama3.1-405b
|
||||
apiKey: <YOUR_SAMBANOVA_API_KEY>
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "SambaNova Llama 3.1 405B",
|
||||
"provider": "sambanova",
|
||||
"model": "llama3.1-405b",
|
||||
"apiKey": "<YOUR_SAMBANOVA_API_KEY>"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
[View the source](https://github.com/continuedev/continue/blob/main/core/llm/llms/SambaNova.ts)
|
||||
|
|
@ -1,75 +0,0 @@
|
|||
# Ask Sage
|
||||
|
||||
:::info
|
||||
|
||||
To get an Ask Sage API key login to the Ask Sage platform (If you don't have an account, you can create one [here](https://chat.asksage.ai/)) and follow the instructions in the Ask Sage Docs:[Ask Sage API Key](https://docs.asksage.ai/docs/api-documentation/api-documentation.html)
|
||||
|
||||
:::
|
||||
|
||||
## Configuration
|
||||
|
||||
To use the Ask Sage models, the following configuration is required to the `config.json` file:
|
||||
|
||||
```json
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"apiKey": "YOUR_API_KEY",
|
||||
"apiBase": "https://api.asksage.ai/server/", // apiBase will be the same for all models, but will vary based on tenant.
|
||||
"model": "gpt4-gov",
|
||||
"title": "GPT-4 gov",
|
||||
"provider": "askSage"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
The `apiBase` will be listed on the Ask Sage platform when you generate an `API key`. You will see context as shown below:
|
||||
|
||||
> Server API for query/training etc.:
|
||||
> - Documentation: https://app.swaggerhub.com/apis-docs/NICOLASCHAILLAN_1/server_ask-sage_api/1.0
|
||||
> - URL for this API is: https://api.asksage.ai/server/
|
||||
|
||||
## Usage
|
||||
|
||||
Currently, the setup for the models provided by Ask Sage is to support the following two functionalities provided by Continue.Dev:
|
||||
|
||||
- `Chat` to understand and iterate on code in the sidebar
|
||||
- `Edit` to modify code without leaving your current file
|
||||
|
||||
More models, functionalities and documentation will be added in the future for Ask Sage Integration.
|
||||
|
||||
> We recommend to utilize the`OpenAI` or `Anthropic` models for the best performance and results for the `Chat` and `Edit` functionalities.
|
||||
|
||||
## Ask Sage Documentation
|
||||
Ask Sage documentation is not available with Continue.Dev, so if you have any questions or need help with Ask Sage type `@ask` and select the `Ask Sage` option in the chat. Then procced to ask your question about Ask Sage.
|
||||
|
||||
## Current Models From Ask Sage Supported
|
||||
|
||||
The current Models available provided by Ask Sage are:
|
||||
|
||||
| Index | Model | Added | Status |
|
||||
|-------|------------------------|-------|--------|
|
||||
| 1 | GPT-4 Gov | Yes | ✅ |
|
||||
| 2 | GPT-4o Gov | Yes | ✅ |
|
||||
| 3 | GPT-4o-mini Gov | Yes | ✅ |
|
||||
| 4 | GPT-3.5-Turbo Gov | Yes | ✅ |
|
||||
| 5 | GPT-4o | Yes | ✅ |
|
||||
| 6 | GPT-4o-mini | Yes | ✅ |
|
||||
| 7 | GPT-4 | Yes | ✅ |
|
||||
| 8 | GPT-4-32K | Yes | ✅ |
|
||||
| 9 | GPT-o1 | Yes | ✅ |
|
||||
| 10 | GPT-o1-mini | Yes | ✅ |
|
||||
| 10 | GPT-o3-mini | Yes | ✅ |
|
||||
| 11 | GPT-3.5-turbo | Yes | ✅ |
|
||||
| 12 | Calude 3.5 Sonnet Gov | Yes | ✅ |
|
||||
| 13 | Calude 3 Opus | Yes | ✅ |
|
||||
| 14 | Calude 3 Sonet | Yes | ✅ |
|
||||
| 15 | Calude 3.5 Sonnet | Yes | ✅ |
|
||||
| 16 | Grok (xAI) | Yes | ✅ |
|
||||
| 17 | Groq Llama 3.3 | Yes | ✅ |
|
||||
| 18 | Groq 70B | Yes | ✅ |
|
||||
| 19 | Gemini Pro | Yes | ✅ |
|
||||
| 20 | llama 3 | Yes | ✅ |
|
||||
| 21 | Mistral Large | Yes | ✅ |
|
||||
|
||||
91
docs/docs/customize/model-providers/more/asksage.mdx
Normal file
91
docs/docs/customize/model-providers/more/asksage.mdx
Normal file
|
|
@ -0,0 +1,91 @@
|
|||
# Ask Sage
|
||||
|
||||
import Tabs from "@theme/Tabs";
|
||||
import TabItem from "@theme/TabItem";
|
||||
|
||||
:::info
|
||||
To get an Ask Sage API key login to the Ask Sage platform (If you don't have an account, you can create one [here](https://chat.asksage.ai/)) and follow the instructions in the Ask Sage Docs:[Ask Sage API Key](https://docs.asksage.ai/docs/api-documentation/api-documentation.html)
|
||||
:::
|
||||
|
||||
## Configuration
|
||||
|
||||
To use the Ask Sage models, you can use the following
|
||||
|
||||
<Tabs groupId="config-example">
|
||||
<TabItem value="yaml" label="YAML">
|
||||
```yaml title="Package or config.yaml"
|
||||
models:
|
||||
- name: GPT-4 gov
|
||||
provider: askSage
|
||||
model: gpt4-gov
|
||||
apiBase: https://api.asksage.ai/server/
|
||||
apiKey: <YOUR_ASK_SAGE_API_KEY>
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "GPT-4 gov",
|
||||
"provider": "askSage",
|
||||
"model": "gpt4-gov",
|
||||
"apiBase": "https://api.asksage.ai/server/",
|
||||
"apiKey": "<YOUR_ASK_SAGE_API_KEY>"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
The `apiBase` will be listed on the Ask Sage platform when you generate an `API key`. You will see context as shown below:
|
||||
|
||||
> Server API for query/training etc.:
|
||||
>
|
||||
> - Documentation: https://app.swaggerhub.com/apis-docs/NICOLASCHAILLAN_1/server_ask-sage_api/1.0
|
||||
> - URL for this API is: https://api.asksage.ai/server/
|
||||
|
||||
## Usage
|
||||
|
||||
Currently, the setup for the models provided by Ask Sage is to support the following two functionalities provided by Continue.Dev:
|
||||
|
||||
- `Chat` to understand and iterate on code in the sidebar
|
||||
- `Edit` to modify code without leaving your current file
|
||||
|
||||
More models, functionalities and documentation will be added in the future for Ask Sage Integration.
|
||||
|
||||
> We recommend to utilize the`OpenAI` or `Anthropic` models for the best performance and results for the `Chat` and `Edit` functionalities.
|
||||
|
||||
## Ask Sage Documentation
|
||||
|
||||
Ask Sage documentation is not available with Continue.Dev, so if you have any questions or need help with Ask Sage type `@ask` and select the `Ask Sage` option in the chat. Then procced to ask your question about Ask Sage.
|
||||
|
||||
## Current Models From Ask Sage Supported
|
||||
|
||||
The current Models available provided by Ask Sage are:
|
||||
|
||||
| Index | Model | Added |
|
||||
| ----- | --------------------- | ----- |
|
||||
| 1 | GPT-4 Gov | ✅ |
|
||||
| 2 | GPT-4o Gov | ✅ |
|
||||
| 3 | GPT-4o-mini Gov | ✅ |
|
||||
| 4 | GPT-3.5-Turbo Gov | ✅ |
|
||||
| 5 | GPT-4o | ✅ |
|
||||
| 6 | GPT-4o-mini | ✅ |
|
||||
| 7 | GPT-4 | ✅ |
|
||||
| 8 | GPT-4-32K | ✅ |
|
||||
| 9 | GPT-o1 | ✅ |
|
||||
| 10 | GPT-o1-mini | ✅ |
|
||||
| 10 | GPT-o3-mini | ✅ |
|
||||
| 11 | GPT-3.5-turbo | ✅ |
|
||||
| 12 | Claude 3.5 Sonnet Gov | ✅ |
|
||||
| 13 | Claude 3 Opus | ✅ |
|
||||
| 14 | Claude 3 Sonet | ✅ |
|
||||
| 15 | Claude 3.5 Sonnet | ✅ |
|
||||
| 16 | Grok (xAI) | ✅ |
|
||||
| 17 | Groq Llama 3.3 | ✅ |
|
||||
| 18 | Groq 70B | ✅ |
|
||||
| 19 | Gemini Pro | ✅ |
|
||||
| 20 | llama 3 | ✅ |
|
||||
| 21 | Mistral Large | ✅ |
|
||||
|
|
@ -1,20 +0,0 @@
|
|||
# Cerebras Inference
|
||||
|
||||
Cerebras Inference uses specialized silicon to provides fast inference.
|
||||
|
||||
1. Create an account in the portal [here](https://cloud.cerebras.ai/).
|
||||
2. Create and copy the API key for use in Continue.
|
||||
3. Update your Continue config file:
|
||||
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "Cerebras Llama 3.1 70B",
|
||||
"provider": "cerebras",
|
||||
"model": "llama3.1-70b",
|
||||
"apiKey": "YOUR_API_KEY"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
36
docs/docs/customize/model-providers/more/cerebras.mdx
Normal file
36
docs/docs/customize/model-providers/more/cerebras.mdx
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
# Cerebras Inference
|
||||
|
||||
import Tabs from "@theme/Tabs";
|
||||
import TabItem from "@theme/TabItem";
|
||||
|
||||
Cerebras Inference uses specialized silicon to provides fast inference.
|
||||
|
||||
1. Create an account in the portal [here](https://cloud.cerebras.ai/).
|
||||
2. Create and copy the API key for use in Continue.
|
||||
3. Update your Continue config file:
|
||||
|
||||
<Tabs groupId="config-example">
|
||||
<TabItem value="yaml" label="YAML">
|
||||
```yaml title="Package or config.yaml"
|
||||
models:
|
||||
- name: Cerebras Llama 3.1 70B
|
||||
provider: cerebras
|
||||
model: llama3.1-70b
|
||||
apiKey: <YOUR_CEREBRAS_API_KEY>
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "Cerebras Llama 3.1 70B",
|
||||
"provider": "cerebras",
|
||||
"model": "llama3.1-70b",
|
||||
"apiKey": "<YOUR_CEREBRAS_API_KEY>"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
|
@ -1,46 +0,0 @@
|
|||
# Cloudflare Workers AI
|
||||
|
||||
Cloudflare Workers AI can be used for both chat and tab autocompletion in Continue. To setup Cloudflare Workers AI, add the following to your `config.json` file:
|
||||
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"accountId": "YOUR CLOUDFLARE ACCOUNT ID",
|
||||
"apiKey": "YOUR CLOUDFLARE API KEY",
|
||||
"contextLength": 2400,
|
||||
"completionOptions": {
|
||||
"maxTokens": 500
|
||||
},
|
||||
"model": "@cf/meta/llama-3-8b-instruct", // This can be the name of any model supported by Workers AI
|
||||
"provider": "cloudflare",
|
||||
"title": "Llama 3 8B"
|
||||
},
|
||||
{
|
||||
"accountId": "YOUR CLOUDFLARE ACCOUNT ID",
|
||||
"apiKey": "YOUR CLOUDFLARE API KEY",
|
||||
"contextLength": 2400,
|
||||
"completionOptions": {
|
||||
"maxTokens": 500
|
||||
},
|
||||
"model": "@hf/thebloke/deepseek-coder-6.7b-instruct-awq",
|
||||
"provider": "cloudflare",
|
||||
"title": "DeepSeek Coder 6.7b Instruct"
|
||||
}
|
||||
...
|
||||
"tabAutocompleteModel": {
|
||||
"accountId": "YOUR CLOUDFLARE ACCOUNT ID",
|
||||
"apiKey": "YOUR CLOUDFLARE API KEY",
|
||||
"model": "@hf/thebloke/deepseek-coder-6.7b-base-awq",
|
||||
"provider": "cloudflare",
|
||||
"title": "DeepSeek 7b"
|
||||
},
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
Visit the [Cloudflare dashboard](https://dash.cloudflare.com/) to [create an API key](https://developers.cloudflare.com/fundamentals/api/get-started/create-token/).
|
||||
|
||||
Review [available models](https://developers.cloudflare.com/workers-ai/models/) on Workers AI
|
||||
|
||||
[View the source](https://github.com/continuedev/continue/blob/main/core/llm/llms/Cloudflare.ts)
|
||||
84
docs/docs/customize/model-providers/more/cloudflare.mdx
Normal file
84
docs/docs/customize/model-providers/more/cloudflare.mdx
Normal file
|
|
@ -0,0 +1,84 @@
|
|||
import Tabs from "@theme/Tabs";
|
||||
import TabItem from "@theme/TabItem";
|
||||
|
||||
# Cloudflare Workers AI
|
||||
|
||||
Cloudflare Workers AI can be used for both chat and tab autocompletion in Continue. Here is an example of Cloudflare Workers AI configuration:
|
||||
|
||||
<Tabs groupId="config-example">
|
||||
<TabItem value="yaml" label="YAML">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: Llama 3 8B
|
||||
provider: cloudflare
|
||||
accountId: YOUR CLOUDFLARE ACCOUNT ID
|
||||
apiKey: <YOUR_CLOUDFARE_API_KEY>
|
||||
model: "@cf/meta/llama-3-8b-instruct"
|
||||
contextLength: 2400
|
||||
defaultCompletionOptions:
|
||||
maxTokens: 500
|
||||
roles:
|
||||
- chat
|
||||
- name: DeepSeek Coder 6.7b Instruct
|
||||
provider: cloudflare
|
||||
accountId: YOUR CLOUDFLARE ACCOUNT ID
|
||||
apiKey: <YOUR_CLOUDFARE_API_KEY>
|
||||
model: "@hf/thebloke/deepseek-coder-6.7b-instruct-awq"
|
||||
contextLength: 2400
|
||||
defaultCompletionOptions:
|
||||
maxTokens: 500
|
||||
roles:
|
||||
- chat
|
||||
- name: DeepSeek 7b
|
||||
provider: cloudflare
|
||||
accountId: YOUR CLOUDFLARE ACCOUNT ID
|
||||
apiKey: <YOUR_CLOUDFARE_API_KEY>
|
||||
model: "@hf/thebloke/deepseek-coder-6.7b-base-awq"
|
||||
roles:
|
||||
- autocomplete
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "Llama 3 8B",
|
||||
"provider": "cloudflare",
|
||||
"accountId": "YOUR CLOUDFLARE ACCOUNT ID",
|
||||
"apiKey": "YOUR CLOUDFLARE API KEY",
|
||||
"contextLength": 2400,
|
||||
"completionOptions": {
|
||||
"maxTokens": 500
|
||||
},
|
||||
"model": "@cf/meta/llama-3-8b-instruct"
|
||||
},
|
||||
{
|
||||
"title": "DeepSeek Coder 6.7b Instruct",
|
||||
"provider": "cloudflare",
|
||||
"accountId": "YOUR CLOUDFLARE ACCOUNT ID",
|
||||
"apiKey": "YOUR CLOUDFLARE API KEY",
|
||||
"contextLength": 2400,
|
||||
"completionOptions": {
|
||||
"maxTokens": 500
|
||||
},
|
||||
"model": "@hf/thebloke/deepseek-coder-6.7b-instruct-awq"
|
||||
}
|
||||
],
|
||||
"tabAutocompleteModel": {
|
||||
"title": "DeepSeek 7b",
|
||||
"provider": "cloudflare",
|
||||
"accountId": "YOUR CLOUDFLARE ACCOUNT ID",
|
||||
"apiKey": "YOUR CLOUDFLARE API KEY",
|
||||
"model": "@hf/thebloke/deepseek-coder-6.7b-base-awq"
|
||||
}
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
Visit the [Cloudflare dashboard](https://dash.cloudflare.com/) to [create an API key](https://developers.cloudflare.com/fundamentals/api/get-started/create-token/).
|
||||
|
||||
Review [available models](https://developers.cloudflare.com/workers-ai/models/) on Workers AI
|
||||
|
||||
[View the source](https://github.com/continuedev/continue/blob/main/core/llm/llms/Cloudflare.ts)
|
||||
|
|
@ -1,56 +0,0 @@
|
|||
# Cohere
|
||||
|
||||
Before using Cohere, visit the [Cohere dashboard](https://dashboard.cohere.com/api-keys) to create an API key.
|
||||
|
||||
## Chat model
|
||||
|
||||
We recommend configuring **Command-R Plus** as your chat model.
|
||||
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "Cohere",
|
||||
"provider": "cohere",
|
||||
"model": "command-r-plus",
|
||||
"apiKey": "YOUR_API_KEY"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
## Autocomplete model
|
||||
|
||||
Cohere 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 **embed-english-v3.0** as your embeddings model.
|
||||
|
||||
```json title="config.json"
|
||||
{
|
||||
"embeddingsProvider": {
|
||||
"provider": "cohere",
|
||||
"model": "embed-english-v3.0",
|
||||
"apiKey": "<COHERE_API_KEY>"
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
## Reranking model
|
||||
|
||||
We recommend configuring **rerank-english-v3.0** as your reranking model.
|
||||
|
||||
```json title="config.json"
|
||||
{
|
||||
"reranker": {
|
||||
"name": "cohere",
|
||||
"params": {
|
||||
"model": "rerank-english-v3.0",
|
||||
"apiKey": "<COHERE_API_KEY>"
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
102
docs/docs/customize/model-providers/more/cohere.mdx
Normal file
102
docs/docs/customize/model-providers/more/cohere.mdx
Normal file
|
|
@ -0,0 +1,102 @@
|
|||
import Tabs from "@theme/Tabs";
|
||||
import TabItem from "@theme/TabItem";
|
||||
|
||||
# Cohere
|
||||
|
||||
Before using Cohere, visit the [Cohere dashboard](https://dashboard.cohere.com/api-keys) to create an API key.
|
||||
|
||||
## Chat model
|
||||
|
||||
We recommend configuring **Command-R Plus** as your chat model.
|
||||
|
||||
<Tabs groupId="config-example">
|
||||
<TabItem value="yaml" label="YAML">
|
||||
```yaml title="Package or config.yaml"
|
||||
models:
|
||||
- name: Cohere
|
||||
provider: cohere
|
||||
model: command-r-plus
|
||||
apiKey: <YOUR_COHERE_API_KEY>
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "Cohere",
|
||||
"provider": "cohere",
|
||||
"model": "command-r-plus",
|
||||
"apiKey": "<YOUR_COHERE_API_KEY>"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
## Autocomplete model
|
||||
|
||||
Cohere 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 **embed-english-v3.0** as your embeddings model.
|
||||
|
||||
<Tabs groupId="config-example">
|
||||
<TabItem value="yaml" label="YAML">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: Cohere Embed
|
||||
provider: cohere
|
||||
model: embed-english-v3.0
|
||||
apiKey: <YOUR_COHERE_API_KEY>
|
||||
roles:
|
||||
- embed
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"embeddingsProvider": {
|
||||
"provider": "cohere",
|
||||
"model": "embed-english-v3.0",
|
||||
"apiKey": "<YOUR_COHERE_API_KEY>"
|
||||
}
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
## Reranking model
|
||||
|
||||
We recommend configuring **rerank-english-v3.0** as your reranking model.
|
||||
|
||||
<Tabs groupId="config-example">
|
||||
<TabItem value="yaml" label="YAML">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: Cohere Reranker
|
||||
provider: cohere
|
||||
model: rerank-english-v3.0
|
||||
apiKey: <YOUR_COHERE_API_KEY>
|
||||
roles:
|
||||
- rerank
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"reranker": {
|
||||
"name": "cohere",
|
||||
"params": {
|
||||
"model": "rerank-english-v3.0",
|
||||
"apiKey": "<YOUR_COHERE_API_KEY>"
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
|
@ -1,18 +0,0 @@
|
|||
# DeepInfra
|
||||
|
||||
[DeepInfra](https://deepinfra.com) provides inference for open-source models at very low cost. To get started with DeepInfra, obtain your API key [here](https://deepinfra.com/dash). Then, find the model you want to use [here](https://deepinfra.com/models?type=text-generation) and copy the name of the model. Continue can then be configured to use the `DeepInfra` LLM class, like the example here:
|
||||
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"provider": "deepinfra",
|
||||
"title": "DeepInfra",
|
||||
"model": "mistralai/Mixtral-8x7B-Instruct-v0.1",
|
||||
"apiKey": "<API_KEY>"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
[View the source](https://github.com/continuedev/continue/blob/main/core/llm/llms/DeepInfra.ts)
|
||||
34
docs/docs/customize/model-providers/more/deepinfra.mdx
Normal file
34
docs/docs/customize/model-providers/more/deepinfra.mdx
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
import Tabs from "@theme/Tabs";
|
||||
import TabItem from "@theme/TabItem";
|
||||
|
||||
# DeepInfra
|
||||
|
||||
[DeepInfra](https://deepinfra.com) provides inference for open-source models at very low cost. To get started with DeepInfra, obtain your API key [here](https://deepinfra.com/dash). Then, find the model you want to use [here](https://deepinfra.com/models?type=text-generation) and copy the name of the model. Continue can then be configured to use the `DeepInfra` LLM class, like the example here:
|
||||
|
||||
<Tabs groupId="config-example">
|
||||
<TabItem value="yaml" label="YAML">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: DeepInfra
|
||||
provider: deepinfra
|
||||
model: mistralai/Mixtral-8x7B-Instruct-v0.1
|
||||
apiKey: <YOUR_DEEP_INFRA_API_KEY>
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"provider": "deepinfra",
|
||||
"title": "DeepInfra",
|
||||
"model": "mistralai/Mixtral-8x7B-Instruct-v0.1",
|
||||
"apiKey": "<YOUR_DEEP_INFRA_API_KEY>"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
[View the source](https://github.com/continuedev/continue/blob/main/core/llm/llms/DeepInfra.ts)
|
||||
|
|
@ -1,18 +0,0 @@
|
|||
# Flowise
|
||||
|
||||
[Flowise](https://flowiseai.com/) is a low-code/no-code drag & drop tool with the aim to make it easy for people to visualize and build LLM apps. Continue can then be configured to use the `Flowise` LLM class, like the example here:
|
||||
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"provider": "flowise",
|
||||
"title": "Flowise",
|
||||
"model": "<MODEL>",
|
||||
"apiBase": "<API_BASE>"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
[View the source](https://github.com/continuedev/continue/blob/main/core/llm/llms/Flowise.ts)
|
||||
34
docs/docs/customize/model-providers/more/flowise.mdx
Normal file
34
docs/docs/customize/model-providers/more/flowise.mdx
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
import Tabs from "@theme/Tabs";
|
||||
import TabItem from "@theme/TabItem";
|
||||
|
||||
# Flowise
|
||||
|
||||
[Flowise](https://flowiseai.com/) is a low-code/no-code drag & drop tool with the aim to make it easy for people to visualize and build LLM apps. Continue can then be configured to use the `Flowise` LLM class, like the example here:
|
||||
|
||||
<Tabs groupId="config-example">
|
||||
<TabItem value="yaml" label="YAML">
|
||||
```yaml title="Package or config.yaml"
|
||||
models:
|
||||
- name: Flowise
|
||||
provider: flowise
|
||||
model: <MODEL>
|
||||
apiBase: <API_BASE>
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"provider": "flowise",
|
||||
"title": "Flowise",
|
||||
"model": "<MODEL>",
|
||||
"apiBase": "<API_BASE>"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
[View the source](https://github.com/continuedev/continue/blob/main/core/llm/llms/Flowise.ts)
|
||||
|
|
@ -3,12 +3,15 @@ title: Free Trial
|
|||
slug: ../free-trial
|
||||
---
|
||||
|
||||
import Tabs from "@theme/Tabs";
|
||||
import TabItem from "@theme/TabItem";
|
||||
|
||||
The `"free-trial"` provider lets new users quickly try out the best experience in Continue using our API keys through a secure proxy server. To prevent abuse, we will ask you to sign in with GitHub, which you can read more about below.
|
||||
|
||||
While the Continue extension is always free to use, we cannot support infinite free LLM usage for all of our users. You will eventually need to either:
|
||||
|
||||
1. Select an open-source model to use for free [locally](../top-level/ollama.md), or
|
||||
2. Add your own API key for [Anthropic](../top-level/anthropic.md) or [another LLM provider](/customize/model-providers)
|
||||
1. Select an open-source model to use for free [locally](../top-level/ollama.mdx), or
|
||||
2. Add your own API key for [Anthropic](../top-level/anthropic.mdx) or [another LLM provider](/customize/model-providers)
|
||||
|
||||
## FAQ about the trial
|
||||
|
||||
|
|
@ -1,67 +0,0 @@
|
|||
---
|
||||
title: Function Network
|
||||
slug: ../function-network
|
||||
---
|
||||
# Function Network
|
||||
|
||||
> Private, Affordable User-Owned AI
|
||||
|
||||
:::info
|
||||
|
||||
To get an API key, login to the Function Network Developer Platform. If you don't have an account, you can create one [here](https://www.function.network/join-waitlist).
|
||||
|
||||
:::
|
||||
|
||||
## Chat model
|
||||
|
||||
Function Network supports a number of models for chat. We recommend using LLama 3.1 70b or Qwen2.5-Coder-32B-Instruct.
|
||||
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "Llama 3.1 70b",
|
||||
"provider": "function-network",
|
||||
"model": "meta/llama-3.1-70b-instruct",
|
||||
"apiKey": "YOUR_API_KEY"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
[Click here](https://docs.function.network/models-supported/chat-and-code-completion) to see a list of chat model providers.
|
||||
|
||||
## Autocomplete model
|
||||
|
||||
Function Network supports a number of models for autocomplete. We recommend using Llama 3.1 8b or Qwen2.5-Coder-1.5B.
|
||||
|
||||
```json title="config.json"
|
||||
{
|
||||
"tabAutocompleteModel": {
|
||||
"title": "Deepseek Coder 6.7b",
|
||||
"provider": "function-network",
|
||||
"model": "thebloke/deepseek-coder-6.7b-base-awq",
|
||||
"apiKey": "YOUR_API_KEY"
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
## Embeddings model
|
||||
|
||||
Function Network supports a number of models for embeddings. We recommend using baai/bge-base-en-v1.5.
|
||||
|
||||
```json title="config.json"
|
||||
{
|
||||
"embeddingsProvider": {
|
||||
"provider": "function-network",
|
||||
"model": "baai/bge-base-en-v1.5",
|
||||
"apiKey": "YOUR_API_KEY"
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
[Click here](https://docs.function.network/models-supported/embeddings) to see a list of embeddings model providers.
|
||||
|
||||
## Reranking model
|
||||
|
||||
Function Network currently does not offer any reranking models.
|
||||
116
docs/docs/customize/model-providers/more/function-network.mdx
Normal file
116
docs/docs/customize/model-providers/more/function-network.mdx
Normal file
|
|
@ -0,0 +1,116 @@
|
|||
---
|
||||
title: Function Network
|
||||
slug: ../function-network
|
||||
---
|
||||
|
||||
import Tabs from "@theme/Tabs";
|
||||
import TabItem from "@theme/TabItem";
|
||||
|
||||
# Function Network
|
||||
|
||||
> Private, Affordable User-Owned AI
|
||||
|
||||
:::info
|
||||
|
||||
To get an API key, login to the Function Network Developer Platform. If you don't have an account, you can create one [here](https://www.function.network/join-waitlist).
|
||||
|
||||
:::
|
||||
|
||||
## Chat model
|
||||
|
||||
Function Network supports a number of models for chat. We recommend using LLama 3.1 70b or Qwen2.5-Coder-32B-Instruct.
|
||||
|
||||
<Tabs groupId="config-example">
|
||||
<TabItem value="yaml" label="YAML">
|
||||
```yaml title="Package or config.yaml"
|
||||
models:
|
||||
- name: Llama 3.1 70b
|
||||
provider: function-network
|
||||
model: meta/llama-3.1-70b-instruct
|
||||
apiKey: <YOUR_FUNCTION_NETWORK_API_KEY>
|
||||
roles:
|
||||
- chat
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "Llama 3.1 70b",
|
||||
"provider": "function-network",
|
||||
"model": "meta/llama-3.1-70b-instruct",
|
||||
"apiKey": "<YOUR_FUNCTION_NETWORK_API_KEY>"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
[Click here](https://docs.function.network/models-supported/chat-and-code-completion) to see a list of chat model providers.
|
||||
|
||||
## Autocomplete model
|
||||
|
||||
Function Network supports a number of models for autocomplete. We recommend using Llama 3.1 8b or Qwen2.5-Coder-1.5B.
|
||||
|
||||
<Tabs groupId="config-example">
|
||||
<TabItem value="yaml" label="YAML">
|
||||
```yaml title="Package or config.yaml"
|
||||
models:
|
||||
- name: Deepseek Coder 6.7b
|
||||
provider: function-network
|
||||
model: thebloke/deepseek-coder-6.7b-base-awq
|
||||
apiKey: <YOUR_FUNCTION_NETWORK_API_KEY>
|
||||
roles:
|
||||
- autocomplete
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"tabAutocompleteModel": {
|
||||
"title": "Deepseek Coder 6.7b",
|
||||
"provider": "function-network",
|
||||
"model": "thebloke/deepseek-coder-6.7b-base-awq",
|
||||
"apiKey": "<YOUR_FUNCTION_NETWORK_API_KEY>"
|
||||
}
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
## Embeddings model
|
||||
|
||||
Function Network supports a number of models for embeddings. We recommend using baai/bge-base-en-v1.5.
|
||||
|
||||
<Tabs groupId="config-example">
|
||||
<TabItem value="yaml" label="YAML">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: BGE Base En
|
||||
provider: function-network
|
||||
model: baai/bge-base-en-v1.5
|
||||
apiKey: <YOUR_FUNCTION_NETWORK_API_KEY>
|
||||
roles:
|
||||
- embed
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"embeddingsProvider": {
|
||||
"provider": "function-network",
|
||||
"model": "baai/bge-base-en-v1.5",
|
||||
"apiKey": "<YOUR_FUNCTION_NETWORK_API_KEY>"
|
||||
}
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
[Click here](https://docs.function.network/models-supported/embeddings) to see a list of embeddings model providers.
|
||||
|
||||
## Reranking model
|
||||
|
||||
Function Network currently does not offer any reranking models.
|
||||
|
|
@ -1,25 +0,0 @@
|
|||
# Groq
|
||||
|
||||
:::info
|
||||
|
||||
Check if your chosen model is still supported by referring to the [model documentation](https://console.groq.com/docs/models). If a model has been deprecated, you may encounter a 404 error when attempting to use it.
|
||||
|
||||
:::
|
||||
|
||||
Groq provides the fastest available inference for open-source language models, including the entire Llama 3.1 family.
|
||||
|
||||
1. Obtain an API key [here](https://console.groq.com/keys)
|
||||
2. Update your Continue config file like this:
|
||||
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "Llama 3.3 70b Versatile",
|
||||
"provider": "groq",
|
||||
"model": "llama-3.3-70b-versatile",
|
||||
"apiKey": "<API_KEY>"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
41
docs/docs/customize/model-providers/more/groq.mdx
Normal file
41
docs/docs/customize/model-providers/more/groq.mdx
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
import Tabs from "@theme/Tabs";
|
||||
import TabItem from "@theme/TabItem";
|
||||
|
||||
# Groq
|
||||
|
||||
:::info
|
||||
Check if your chosen model is still supported by referring to the [model documentation](https://console.groq.com/docs/models). If a model has been deprecated, you may encounter a 404 error when attempting to use it.
|
||||
:::
|
||||
|
||||
Groq provides the fastest available inference for open-source language models, including the entire Llama 3.1 family.
|
||||
|
||||
1. Obtain an API key [here](https://console.groq.com/keys)
|
||||
2. Update your Continue config file like this:
|
||||
|
||||
<Tabs groupId="config-example">
|
||||
<TabItem value="yaml" label="YAML">
|
||||
```yaml title="Package or config.yaml"
|
||||
models:
|
||||
- name: Llama 3.3 70b Versatile
|
||||
provider: groq
|
||||
model: llama-3.3-70b-versatile
|
||||
apiKey: <YOUR_GROQ_API_KEY>
|
||||
roles:
|
||||
- chat
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "Llama 3.3 70b Versatile",
|
||||
"provider": "groq",
|
||||
"model": "llama-3.3-70b-versatile",
|
||||
"apiKey": "<YOUR_GROQ_API_KEY>"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
|
@ -1,19 +0,0 @@
|
|||
# HuggingFace Inference Endpoints
|
||||
|
||||
Hugging Face Inference Endpoints are an easy way to setup instances of open-source language models on any cloud. Sign up for an account and add billing [here](https://huggingface.co/settings/billing), access the Inference Endpoints [here](https://ui.endpoints.huggingface.co), click on “New endpoint”, and fill out the form (e.g. select a model like [WizardCoder-Python-34B-V1.0](https://huggingface.co/WizardLM/WizardCoder-Python-34B-V1.0)), and then deploy your model by clicking “Create Endpoint”. Change `~/.continue/config.json` to look like this:
|
||||
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "Hugging Face Inference API",
|
||||
"provider": "huggingface-inference-api",
|
||||
"model": "MODEL_NAME",
|
||||
"apiKey": "YOUR_HF_TOKEN",
|
||||
"apiBase": "INFERENCE_API_ENDPOINT_URL"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
[View the source](https://github.com/continuedev/continue/blob/main/core/llm/llms/HuggingFaceInferenceAPI.ts)
|
||||
|
|
@ -0,0 +1,36 @@
|
|||
import Tabs from "@theme/Tabs";
|
||||
import TabItem from "@theme/TabItem";
|
||||
|
||||
# HuggingFace Inference Endpoints
|
||||
|
||||
Hugging Face Inference Endpoints are an easy way to setup instances of open-source language models on any cloud. Sign up for an account and add billing [here](https://huggingface.co/settings/billing), access the Inference Endpoints [here](https://ui.endpoints.huggingface.co), click on “New endpoint”, and fill out the form (e.g. select a model like [WizardCoder-Python-34B-V1.0](https://huggingface.co/WizardLM/WizardCoder-Python-34B-V1.0)), and then deploy your model by clicking “Create Endpoint”. Change `~/.continue/config.json` to look like this:
|
||||
|
||||
<Tabs groupId="config-example">
|
||||
<TabItem value="yaml" label="YAML">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: Hugging Face Inference API
|
||||
provider: huggingface-inference-api
|
||||
model: MODEL_NAME
|
||||
apiKey: <YOUR_HF_TOKEN>
|
||||
apiBase: <YOUR_HF_INFERENCE_API_ENDPOINT_URL>
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "Hugging Face Inference API",
|
||||
"provider": "huggingface-inference-api",
|
||||
"model": "MODEL_NAME",
|
||||
"apiKey": "<YOUR_HF_TOKEN>",
|
||||
"apiBase": "<YOUR_HF_INFERENCE_API_ENDPOINT_URL>"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
[View the source](https://github.com/continuedev/continue/blob/main/core/llm/llms/HuggingFaceInferenceAPI.ts)
|
||||
|
|
@ -1,3 +1,6 @@
|
|||
import Tabs from "@theme/Tabs";
|
||||
import TabItem from "@theme/TabItem";
|
||||
|
||||
# IPEX-LLM
|
||||
|
||||
:::info
|
||||
|
|
@ -6,35 +9,58 @@
|
|||
|
||||
IPEX-LLM supports accelerated Ollama backend to be hosted on Intel GPU. Refer to [this guide](https://ipex-llm.readthedocs.io/en/latest/doc/LLM/Quickstart/ollama_quickstart.html) from IPEX-LLM official documentation about how to install and run Ollama serve accelerated by IPEX-LLM on Intel GPU. You can then configure Continue to use the IPEX-LLM accelerated `"ollama"` provider as follows:
|
||||
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "IPEX-LLM",
|
||||
"provider": "ollama",
|
||||
"model": "AUTODETECT"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
<Tabs groupId="config-example">
|
||||
<TabItem value="yaml" label="YAML">
|
||||
```yaml title="Package or config.yaml"
|
||||
models:
|
||||
- name: IPEX-LLM
|
||||
provider: ollama
|
||||
model: AUTODETECT
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "IPEX-LLM",
|
||||
"provider": "ollama",
|
||||
"model": "AUTODETECT"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
If you would like to reach the Ollama service from another machine, make sure you set or export the environment variable `OLLAMA_HOST=0.0.0.0` before executing the command `ollama serve`. Then, in the Continue configuration, set `'apiBase'` to correspond with the IP address / port of the remote machine. That is, Continue can be configured to be:
|
||||
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "IPEX-LLM",
|
||||
"provider": "ollama",
|
||||
"model": "AUTODETECT",
|
||||
"apiBase": "http://your-ollama-service-ip:11434"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
<Tabs groupId="config-example">
|
||||
<TabItem value="yaml" label="YAML">
|
||||
```yaml title="Package or config.yaml"
|
||||
models:
|
||||
- name: IPEX-LLM
|
||||
provider: ollama
|
||||
model: AUTODETECT
|
||||
apiBase: http://your-ollama-service-ip:11434
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "IPEX-LLM",
|
||||
"provider": "ollama",
|
||||
"model": "AUTODETECT",
|
||||
"apiBase": "http://your-ollama-service-ip:11434"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
:::tip
|
||||
|
||||
If you would like to preload the model before your first conversation with that model in Continue, you could refer to [here](https://ipex-llm.readthedocs.io/en/latest/doc/LLM/Quickstart/continue_quickstart.html#pull-and-prepare-the-model) for more information.
|
||||
|
||||
:::
|
||||
|
|
@ -1,38 +0,0 @@
|
|||
# Kindo
|
||||
|
||||
Kindo offers centralized control over your organization's AI operations, ensuring data protection and compliance with internal policies while supporting various commercial and open-source models. To get started, sign up [here](https://app.kindo.ai/), create an API key in [Settings > API > API Keys](https://app.kindo.ai/settings/api), and choose a model from the list of supported models in the "Available Models" tab or copy and paste the config in [Plugins > Your Configuration](https://app.kindo.ai/plugins).
|
||||
|
||||
## Config Example
|
||||
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "Claude 3.5 Sonnet",
|
||||
"provider": "kindo",
|
||||
"model": "claude-3-5-sonnet",
|
||||
"apiKey": "<KINDO_API_KEY>"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
## Tab Autocomplete Config Example
|
||||
|
||||
```json title="config.json"
|
||||
{
|
||||
"tabAutocompleteModel": [
|
||||
{
|
||||
"title": "WhiteRabbitNeo",
|
||||
"provider": "kindo",
|
||||
"model": "/models/WhiteRabbitNeo-33B-DeepSeekCoder",
|
||||
"apiKey": "<KINDO_API_KEY>",
|
||||
"template": "none"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
## Security
|
||||
|
||||
To update your organization's model access, adjust the controls in [security settings](https://app.kindo.ai/security-settings).
|
||||
69
docs/docs/customize/model-providers/more/kindo.mdx
Normal file
69
docs/docs/customize/model-providers/more/kindo.mdx
Normal file
|
|
@ -0,0 +1,69 @@
|
|||
import Tabs from "@theme/Tabs";
|
||||
import TabItem from "@theme/TabItem";
|
||||
|
||||
# Kindo
|
||||
|
||||
Kindo offers centralized control over your organization's AI operations, ensuring data protection and compliance with internal policies while supporting various commercial and open-source models. To get started, sign up [here](https://app.kindo.ai/), create an API key in [Settings > API > API Keys](https://app.kindo.ai/settings/api), and choose a model from the list of supported models in the "Available Models" tab or copy and paste the config in [Plugins > Your Configuration](https://app.kindo.ai/plugins).
|
||||
|
||||
## Config Example
|
||||
|
||||
<Tabs groupId="config-example">
|
||||
<TabItem value="yaml" label="YAML">
|
||||
```yaml title="Package or config.yaml"
|
||||
models:
|
||||
- name: Claude 3.5 Sonnet
|
||||
provider: kindo
|
||||
model: claude-3-5-sonnet
|
||||
apiKey: <YOUR_KINDO_API_KEY>
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "Claude 3.5 Sonnet",
|
||||
"provider": "kindo",
|
||||
"model": "claude-3-5-sonnet",
|
||||
"apiKey": "<YOUR_KINDO_API_KEY>"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
## Tab Autocomplete Config Example
|
||||
|
||||
<Tabs groupId="config-example">
|
||||
<TabItem value="yaml" label="YAML">
|
||||
```yaml title="Package or config.yaml"
|
||||
models:
|
||||
- name: WhiteRabbitNeo
|
||||
provider: kindo
|
||||
model: /models/WhiteRabbitNeo-33B-DeepSeekCoder
|
||||
apiKey: <YOUR_KINDO_API_KEY>
|
||||
roles:
|
||||
- autocomplete
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"tabAutocompleteModel": [
|
||||
{
|
||||
"title": "WhiteRabbitNeo",
|
||||
"provider": "kindo",
|
||||
"model": "/models/WhiteRabbitNeo-33B-DeepSeekCoder",
|
||||
"apiKey": "<YOUR_KINDO_API_KEY>",
|
||||
"template": "none"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
## Security
|
||||
|
||||
To update your organization's model access, adjust the controls in [security settings](https://app.kindo.ai/security-settings).
|
||||
|
|
@ -1,24 +0,0 @@
|
|||
# LlamaCpp
|
||||
|
||||
Run the llama.cpp server binary to start the API server. If running on a remote server, be sure to set host to 0.0.0.0:
|
||||
|
||||
```shell
|
||||
.\server.exe -c 4096 --host 0.0.0.0 -t 16 --mlock -m models\meta\llama\codellama-7b-instruct.Q8_0.gguf
|
||||
```
|
||||
|
||||
After it's up and running, change `~/.continue/config.json` to look like this:
|
||||
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "Llama CPP",
|
||||
"provider": "llama.cpp",
|
||||
"model": "MODEL_NAME",
|
||||
"apiBase": "http://localhost:8080"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
[View the source](https://github.com/continuedev/continue/blob/main/core/llm/llms/LlamaCpp.ts)
|
||||
40
docs/docs/customize/model-providers/more/llamacpp.mdx
Normal file
40
docs/docs/customize/model-providers/more/llamacpp.mdx
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
import Tabs from "@theme/Tabs";
|
||||
import TabItem from "@theme/TabItem";
|
||||
|
||||
# LlamaCpp
|
||||
|
||||
Run the llama.cpp server binary to start the API server. If running on a remote server, be sure to set host to 0.0.0.0:
|
||||
|
||||
```bash
|
||||
.\server.exe -c 4096 --host 0.0.0.0 -t 16 --mlock -m models\meta\llama\codellama-7b-instruct.Q8_0.gguf
|
||||
```
|
||||
|
||||
After it's up and running, change `~/.continue/config.json` to look like this:
|
||||
|
||||
<Tabs groupId="config-example">
|
||||
<TabItem value="yaml" label="YAML">
|
||||
```yaml title="Package or config.yaml"
|
||||
models:
|
||||
- name: Llama CPP
|
||||
provider: llama.cpp
|
||||
model: MODEL_NAME
|
||||
apiBase: http://localhost:8080
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "Llama CPP",
|
||||
"provider": "llama.cpp",
|
||||
"model": "MODEL_NAME",
|
||||
"apiBase": "http://localhost:8080"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
[View the source](https://github.com/continuedev/continue/blob/main/core/llm/llms/LlamaCpp.ts)
|
||||
|
|
@ -1,17 +0,0 @@
|
|||
# Llamafile
|
||||
|
||||
A [llamafile](https://github.com/Mozilla-Ocho/llamafile#readme) is a self-contained binary that can run an open-source LLM. You can configure this provider in your config.json as follows:
|
||||
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "Llamafile",
|
||||
"provider": "llamafile",
|
||||
"model": "mistral-7b"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
[View the source](https://github.com/continuedev/continue/blob/main/core/llm/llms/Llamafile.ts)
|
||||
32
docs/docs/customize/model-providers/more/llamafile.mdx
Normal file
32
docs/docs/customize/model-providers/more/llamafile.mdx
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
import Tabs from "@theme/Tabs";
|
||||
import TabItem from "@theme/TabItem";
|
||||
|
||||
# Llamafile
|
||||
|
||||
A [llamafile](https://github.com/Mozilla-Ocho/llamafile#readme) is a self-contained binary that can run an open-source LLM. You can configure this provider in your config.json as follows:
|
||||
|
||||
<Tabs groupId="config-example">
|
||||
<TabItem value="yaml" label="YAML">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: Llamafile
|
||||
provider: llamafile
|
||||
model: mistral-7b
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "Llamafile",
|
||||
"provider": "llamafile",
|
||||
"model": "mistral-7b"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
[View the source](https://github.com/continuedev/continue/blob/main/core/llm/llms/Llamafile.ts)
|
||||
|
|
@ -1,45 +0,0 @@
|
|||
# LM Studio
|
||||
|
||||
[LM Studio](https://lmstudio.ai) is an application for Mac, Windows, and Linux that makes it easy to locally run open-source models and comes with a great UI. To get started with LM Studio, download from the website, use the UI to download a model, and then start the local inference server. Continue can then be configured to use the `LMStudio` LLM class:
|
||||
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "LM Studio",
|
||||
"provider": "lmstudio",
|
||||
"model": "llama2-7b"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
### Embeddings model
|
||||
|
||||
LMStudio supports embeddings endpoints, and comes with the `nomic-ai/nomic-embed-text-v1.5-GGUF` model (as of Nov 2024, check your models)
|
||||
|
||||
```json title="config.json"
|
||||
{
|
||||
"embeddingsProvider": {
|
||||
"provider": "lmstudio",
|
||||
"model": "nomic-ai/nomic-embed-text-v1.5-GGUF"
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
## Setting up a remote instance
|
||||
|
||||
To configure a remote instance of LM Studio, add the `"apiBase"` property to your model in config.json:
|
||||
|
||||
```json title="config.json"
|
||||
{
|
||||
"title": "LM Studio",
|
||||
"model": "codestral",
|
||||
"provider": "lmstudio",
|
||||
"apiBase": "http://x.x.x.x:1234/v1/"
|
||||
}
|
||||
```
|
||||
|
||||
This `apiBase` will now be used instead of the default `http://localhost:1234/v1`.
|
||||
|
||||
[View the source](https://github.com/continuedev/continue/blob/main/core/llm/llms/LMStudio.ts)
|
||||
88
docs/docs/customize/model-providers/more/lmstudio.mdx
Normal file
88
docs/docs/customize/model-providers/more/lmstudio.mdx
Normal file
|
|
@ -0,0 +1,88 @@
|
|||
import Tabs from "@theme/Tabs";
|
||||
import TabItem from "@theme/TabItem";
|
||||
|
||||
# LM Studio
|
||||
|
||||
[LM Studio](https://lmstudio.ai) is an application for Mac, Windows, and Linux that makes it easy to locally run open-source models and comes with a great UI. To get started with LM Studio, download from the website, use the UI to download a model, and then start the local inference server. Continue can then be configured to use the `LMStudio` LLM class:
|
||||
|
||||
<Tabs groupId="config-example">
|
||||
<TabItem value="yaml" label="YAML">
|
||||
```yaml title="Package or config.yaml"
|
||||
models:
|
||||
- name: LM Studio
|
||||
provider: lmstudio
|
||||
model: llama2-7b
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "LM Studio",
|
||||
"provider": "lmstudio",
|
||||
"model": "llama2-7b"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
### Embeddings model
|
||||
|
||||
LMStudio supports embeddings endpoints, and comes with the `nomic-ai/nomic-embed-text-v1.5-GGUF` model (as of Nov 2024, check your models)
|
||||
|
||||
<Tabs groupId="config-example">
|
||||
<TabItem value="yaml" label="YAML">
|
||||
```yaml title="Package or config.yaml"
|
||||
models:
|
||||
- name: Nomic Embed Text
|
||||
provider: lmstudio
|
||||
model: nomic-ai/nomic-embed-text-v1.5-GGUF
|
||||
roles:
|
||||
- embed
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"embeddingsProvider": {
|
||||
"provider": "lmstudio",
|
||||
"model": "nomic-ai/nomic-embed-text-v1.5-GGUF"
|
||||
}
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
## Setting up a remote instance
|
||||
|
||||
To configure a remote instance of LM Studio, add the `"apiBase"` property to your model in config.json:
|
||||
|
||||
<Tabs groupId="config-example">
|
||||
<TabItem value="yaml" label="YAML">
|
||||
```yaml title="Package or config.yaml"
|
||||
models:
|
||||
- name: Nomic Embed Text
|
||||
provider: lmstudio
|
||||
model: nomic-ai/nomic-embed-text-v1.5-GGUF
|
||||
roles:
|
||||
- embed
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"embeddingsProvider": {
|
||||
"provider": "lmstudio",
|
||||
"model": "nomic-ai/nomic-embed-text-v1.5-GGUF"
|
||||
}
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
This `apiBase` will now be used instead of the default `http://localhost:1234/v1`.
|
||||
|
||||
[View the source](https://github.com/continuedev/continue/blob/main/core/llm/llms/LMStudio.ts)
|
||||
94
docs/docs/customize/model-providers/more/moonshot.mdx
Normal file
94
docs/docs/customize/model-providers/more/moonshot.mdx
Normal file
|
|
@ -0,0 +1,94 @@
|
|||
import Tabs from "@theme/Tabs";
|
||||
import TabItem from "@theme/TabItem";
|
||||
|
||||
# Moonshot
|
||||
|
||||
[Moonshot AI](https://platform.moonshot.cn/) provides high-quality large language model services with competitive pricing and excellent performance.
|
||||
|
||||
## Configuration
|
||||
|
||||
To use Moonshot AI models, you need to:
|
||||
|
||||
1. Get an API key from [Moonshot AI Platform](https://platform.moonshot.cn/)
|
||||
2. Add the following configuration:
|
||||
|
||||
<Tabs groupId="config-example">
|
||||
<TabItem value="yaml" label="YAML">
|
||||
```yaml title="Package or config.yaml"
|
||||
models:
|
||||
- name: Moonshot
|
||||
provider: moonshot
|
||||
model: moonshot-v1-8k
|
||||
apiKey: <YOUR_MOONSHOT_API_KEY>
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "Moonshot",
|
||||
"provider": "moonshot",
|
||||
"model": "moonshot-v1-8k",
|
||||
"apiKey": "<YOUR_MOONSHOT_API_KEY>"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
## Available Models
|
||||
|
||||
Moonshot AI currently provides the following models:
|
||||
|
||||
- `moonshot-v1-8k`: Base model with 8K context window
|
||||
- `moonshot-v1-32k`: Base model with 32K context window
|
||||
- `moonshot-v1-128k`: Base model with 128K context window
|
||||
|
||||
## Configuration Options
|
||||
|
||||
| Option | Description | Default |
|
||||
| --------- | ----------------- | ----------------------------- |
|
||||
| `apiKey` | Moonshot API key | Required |
|
||||
| `apiBase` | API base URL | `https://api.moonshot.cn/v1/` |
|
||||
| `model` | Model name to use | `moonshot-v1-8k` |
|
||||
|
||||
## Example
|
||||
|
||||
Here's a complete configuration example:
|
||||
|
||||
<Tabs groupId="config-example">
|
||||
<TabItem value="yaml" label="YAML">
|
||||
```yaml title="Package or config.yaml"
|
||||
models:
|
||||
- name: Moonshot-8K
|
||||
provider: moonshot
|
||||
model: moonshot-v1-8k
|
||||
apiKey: <YOUR_MOONSHOT_API_KEY>
|
||||
defaultCompletionOptions:
|
||||
temperature: 0.7
|
||||
topP: 0.95
|
||||
maxTokens: 2048
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "Moonshot-8K",
|
||||
"provider": "moonshot",
|
||||
"model": "moonshot-v1-8k",
|
||||
"apiKey": "<YOUR_MOONSHOT_API_KEY>",
|
||||
"completionOptions": {
|
||||
"temperature": 0.7,
|
||||
"topP": 0.95,
|
||||
"maxTokens": 2048
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
|
@ -1,19 +1,33 @@
|
|||
import Tabs from "@theme/Tabs";
|
||||
import TabItem from "@theme/TabItem";
|
||||
|
||||
# Msty
|
||||
|
||||
[Msty](https://msty.app/) is an application for Windows, Mac, and Linux that makes it really easy to run online as well as local open-source models, including Llama-2, DeepSeek Coder, etc. No need to fidget with your terminal, run a command, or anything. Just download the app from the website, click a button, and you are up and running. Continue can then be configured to use the `Msty` LLM class:
|
||||
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "Msty",
|
||||
"provider": "msty",
|
||||
"model": "deepseek-coder:6.7b",
|
||||
"completionOptions": {}
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
<Tabs groupId="config-example">
|
||||
<TabItem value="yaml" label="YAML">
|
||||
```yaml title="Package or config.yaml"
|
||||
models:
|
||||
- name: Msty
|
||||
provider: msty
|
||||
model: deepseek-coder:6.7b
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "Msty",
|
||||
"provider": "msty",
|
||||
"model": "deepseek-coder:6.7b",
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
## Completion Options
|
||||
|
||||
|
|
@ -30,21 +44,36 @@ In addition to the model type, you can also configure some of the parameters tha
|
|||
|
||||
If you need to send custom headers for authentication, you may use the `requestOptions.headers` property like this:
|
||||
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "Msty",
|
||||
"provider": "msty",
|
||||
"model": "deepseek-coder:6.7b",
|
||||
"requestOptions": {
|
||||
"headers": {
|
||||
"Authorization": "Bearer xxx"
|
||||
<Tabs groupId="config-example">
|
||||
<TabItem value="yaml" label="YAML">
|
||||
```yaml title="Package or config.yaml"
|
||||
models:
|
||||
- name: Msty
|
||||
provider: msty
|
||||
model: deepseek-coder:6.7b
|
||||
requestOptions:
|
||||
headers:
|
||||
Authorization: Bearer xxx
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "Msty",
|
||||
"provider": "msty",
|
||||
"model": "deepseek-coder:6.7b",
|
||||
"requestOptions": {
|
||||
"headers": {
|
||||
"Authorization": "Bearer xxx"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
]
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
[View the source](https://github.com/continuedev/continue/blob/main/core/llm/llms/Msty.ts)
|
||||
|
|
@ -1,36 +0,0 @@
|
|||
# Nebius AI Studio
|
||||
|
||||
You can get an API key from the [Nebius AI Studio API keys page](https://studio.nebius.ai/settings/api-keys)
|
||||
|
||||
## Availible models
|
||||
|
||||
Available models can be found on the [Nebius AI Studio models page](https://studio.nebius.ai/models/text2text)
|
||||
|
||||
## Chat model
|
||||
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "Llama 3.1 405b",
|
||||
"provider": "nebius",
|
||||
"model": "llama3.1-405b",
|
||||
"apiKey": "[API_KEY]"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
## Embeddings model
|
||||
|
||||
Available models can be found on the [Nebius AI Studio embeddings page](https://studio.nebius.ai/models/embedding)
|
||||
|
||||
```json title="config.json"
|
||||
{
|
||||
"embeddingsProvider": {
|
||||
"provider": "nebius",
|
||||
"model": "BAAI/bge-en-icl",
|
||||
"apiKey": "[API_KEY]"
|
||||
}
|
||||
}
|
||||
```
|
||||
67
docs/docs/customize/model-providers/more/nebius.mdx
Normal file
67
docs/docs/customize/model-providers/more/nebius.mdx
Normal file
|
|
@ -0,0 +1,67 @@
|
|||
import Tabs from "@theme/Tabs";
|
||||
import TabItem from "@theme/TabItem";
|
||||
|
||||
# Nebius AI Studio
|
||||
|
||||
You can get an API key from the [Nebius AI Studio API keys page](https://studio.nebius.ai/settings/api-keys)
|
||||
|
||||
## Availible models
|
||||
|
||||
Available models can be found on the [Nebius AI Studio models page](https://studio.nebius.ai/models/text2text)
|
||||
|
||||
## Chat model
|
||||
|
||||
<Tabs groupId="config-example">
|
||||
<TabItem value="yaml" label="YAML">
|
||||
```yaml title="Package or config.yaml"
|
||||
models:
|
||||
- name: Llama 3.1 405b
|
||||
provider: nebius
|
||||
model: llama3.1-405b
|
||||
apiKey: <YOUR_NEBIUS_API_KEY>
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "Llama 3.1 405b",
|
||||
"provider": "nebius",
|
||||
"model": "llama3.1-405b",
|
||||
"apiKey": "<YOUR_NEBIUS_API_KEY>"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
## Embeddings model
|
||||
|
||||
Available models can be found on the [Nebius AI Studio embeddings page](https://studio.nebius.ai/models/embedding)
|
||||
|
||||
<Tabs groupId="config-example">
|
||||
<TabItem value="yaml" label="YAML">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: BAAI Embedder
|
||||
provider: nebius
|
||||
model: BAAI/bge-en-icl
|
||||
apiKey: <YOUR_NEBIUS_API_KEY>
|
||||
roles:
|
||||
- embed
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"embeddingsProvider": {
|
||||
"provider": "nebius",
|
||||
"model": "BAAI/bge-en-icl",
|
||||
"apiKey": "<YOUR_NEBIUS_API_KEY>"
|
||||
}
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
|
@ -1,18 +1,34 @@
|
|||
import Tabs from "@theme/Tabs";
|
||||
import TabItem from "@theme/TabItem";
|
||||
|
||||
# Novita
|
||||
|
||||
[Novita AI](https://novita.ai?utm_source=github_continuedev&utm_medium=github_readme&utm_campaign=github_link) offers an affordable, reliable, and simple inference platform with scalable [LLM API](https://novita.ai/docs/model-api/reference/introduction.html), empowering developers to build AI applications. Try the [Novita AI Llama 3 API Demo](https://novita.ai/model-api/product/llm-api/playground/meta-llama-llama-3.1-70b-instruct?utm_source=github_continuedev&utm_medium=github_readme&utm_campaign=github_link) today!. You can sign up [here](https://novita.ai/user/login?&redirect=/&utm_source=github_continuedev&utm_medium=github_readme&utm_campaign=github_link), copy your API key on the [Key Management](https://novita.ai/settings/key-management?utm_source=github_continuedev&utm_medium=github_readme&utm_campaign=github_link), and then hit the play button on any model from the [Novita AI Models list](https://novita.ai/llm-api?utm_source=github_continuedev&utm_medium=github_readme&utm_campaign=github_link). Change `~/.continue/config.json` to look like this:
|
||||
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "Llama 3.1 8B",
|
||||
"provider": "novita",
|
||||
"model": "meta-llama/llama-3.1-8b-instruct",
|
||||
"apiKey": "YOUR_API_KEY"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
<Tabs groupId="config-example">
|
||||
<TabItem value="yaml" label="YAML">
|
||||
```yaml title="Package or config.yaml"
|
||||
models:
|
||||
- name: Llama 3.1 8B
|
||||
provider: novita
|
||||
model: meta-llama/llama-3.1-8b-instruct
|
||||
apiKey: <YOUR_NOVITA_API_KEY>
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "Llama 3.1 8B",
|
||||
"provider": "novita",
|
||||
"model": "meta-llama/llama-3.1-8b-instruct",
|
||||
"apiKey": "<YOUR_NOVITA_API_KEY>"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
[View the source](https://github.com/continuedev/continue/blob/main/core/llm/llms/Novita.ts)
|
||||
|
|
@ -1,52 +0,0 @@
|
|||
---
|
||||
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.
|
||||
81
docs/docs/customize/model-providers/more/nvidia.mdx
Normal file
81
docs/docs/customize/model-providers/more/nvidia.mdx
Normal file
|
|
@ -0,0 +1,81 @@
|
|||
---
|
||||
title: NVIDIA
|
||||
---
|
||||
|
||||
import Tabs from "@theme/Tabs";
|
||||
import TabItem from "@theme/TabItem";
|
||||
|
||||
:::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.
|
||||
|
||||
<Tabs groupId="config-example">
|
||||
<TabItem value="yaml" label="YAML">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: Nemotron-4-340B-Instruct
|
||||
provider: nvidia
|
||||
model: nvidia-nemotron-4-340b-instruct
|
||||
apiKey: <YOUR_NVIDIA_API_KEY>
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "Nemotron-4-340B-Instruct",
|
||||
"provider": "nvidia",
|
||||
"model": "nvidia-nemotron-4-340b-instruct",
|
||||
"apiKey": "<YOUR_NVIDIA_API_KEY>"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
## 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.
|
||||
|
||||
<Tabs groupId="config-example">
|
||||
<TabItem value="yaml" label="YAML">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: Nvidia Embedder
|
||||
provider: nvidia
|
||||
model: nvidia/nv-embedqa-mistral-7b-v2
|
||||
apiKey: <YOUR_NVIDIA_API_KEY>
|
||||
roles:
|
||||
- embed
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"embeddingsProvider": {
|
||||
"provider": "nvidia",
|
||||
"model": "nvidia/nv-embedqa-mistral-7b-v2",
|
||||
"apiKey": "<YOUR_NVIDIA_API_KEY>"
|
||||
}
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
## Reranking model
|
||||
|
||||
NVIDIA currently does not offer any reranking models.
|
||||
|
||||
[Click here](../../model-types/reranking.mdx) to see a list of reranking model providers.
|
||||
|
|
@ -1,40 +0,0 @@
|
|||
# OpenRouter
|
||||
|
||||
OpenRouter is a unified interface for commercial and open-source models, giving you access to the best models at the best prices. You can sign up [here](https://openrouter.ai/signup), create your API key on the [keys page](https://openrouter.ai/keys), and then choose a model from the [list of supported models](https://openrouter.ai/models).
|
||||
|
||||
Change `~/.continue/config.json` to look like the following.
|
||||
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "OpenRouter LLaMA 70 8B",
|
||||
"provider": "openrouter",
|
||||
"model": "meta-llama/llama-3-70b-instruct",
|
||||
"apiBase": "https://openrouter.ai/api/v1",
|
||||
"apiKey": "..."
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
To utilize features such as provider preferences or model routing configuration, include these parameters inside the `models[].requestsOptions.extraBodyProperties` field of your plugin config.
|
||||
|
||||
For example, to prevent extra long prompts from being compressed, you can explicitly turn off the feature like so:
|
||||
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
...
|
||||
"requestOptions": {
|
||||
"extraBodyProperties": {
|
||||
"transforms": []
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
Learn more about available settings [here](https://openrouter.ai/docs).
|
||||
74
docs/docs/customize/model-providers/more/openrouter.mdx
Normal file
74
docs/docs/customize/model-providers/more/openrouter.mdx
Normal file
|
|
@ -0,0 +1,74 @@
|
|||
import Tabs from "@theme/Tabs";
|
||||
import TabItem from "@theme/TabItem";
|
||||
|
||||
# OpenRouter
|
||||
|
||||
OpenRouter is a unified interface for commercial and open-source models, giving you access to the best models at the best prices. You can sign up [here](https://openrouter.ai/signup), create your API key on the [keys page](https://openrouter.ai/keys), and then choose a model from the [list of supported models](https://openrouter.ai/models).
|
||||
|
||||
Change `~/.continue/config.json` to look like the following.
|
||||
|
||||
<Tabs groupId="config-example">
|
||||
<TabItem value="yaml" label="YAML">
|
||||
```yaml title="Package or config.yaml"
|
||||
models:
|
||||
- name: OpenRouter LLaMA 70 8B
|
||||
provider: openrouter
|
||||
model: meta-llama/llama-3-70b-instruct
|
||||
apiBase: https://openrouter.ai/api/v1
|
||||
apiKey: <YOUR_OPEN_ROUTER_API_KEY>
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "OpenRouter LLaMA 70 8B",
|
||||
"provider": "openrouter",
|
||||
"model": "meta-llama/llama-3-70b-instruct",
|
||||
"apiBase": "https://openrouter.ai/api/v1",
|
||||
"apiKey": "<YOUR_OPEN_ROUTER_API_KEY>"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
To utilize features such as provider preferences or model routing configuration, include these parameters inside the `models[].requestsOptions.extraBodyProperties` field of your plugin config.
|
||||
|
||||
For example, to prevent extra long prompts from being compressed, you can explicitly turn off the feature like so:
|
||||
|
||||
<Tabs groupId="config-example">
|
||||
<TabItem value="yaml" label="YAML">
|
||||
```yaml title="Package or config.yaml"
|
||||
models:
|
||||
- name: Example Model
|
||||
provider: exampleProvider
|
||||
model: example-model
|
||||
requestOptions:
|
||||
extraBodyProperties:
|
||||
transforms: []
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "Example Model",
|
||||
"provider": "exampleProvider",
|
||||
"model": "example-model",
|
||||
"requestOptions": {
|
||||
"extraBodyProperties": {
|
||||
"transforms": []
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
Learn more about available settings [here](https://openrouter.ai/docs).
|
||||
|
|
@ -1,19 +1,35 @@
|
|||
import Tabs from "@theme/Tabs";
|
||||
import TabItem from "@theme/TabItem";
|
||||
|
||||
# ReplicateLLM
|
||||
|
||||
Replicate is a great option for newly released language models or models that you've deployed through their platform. Sign up for an account [here](https://replicate.ai/), copy your API key, and then select any model from the [Replicate Streaming List](https://replicate.com/collections/streaming-language-models). Change `~/.continue/config.json` to look like this:
|
||||
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "Replicate CodeLLama",
|
||||
"provider": "replicate",
|
||||
"model": "codellama-13b",
|
||||
"apiKey": "YOUR_API_KEY"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
<Tabs groupId="config-example">
|
||||
<TabItem value="yaml" label="YAML">
|
||||
```yaml title="Package or config.yaml"
|
||||
models:
|
||||
- name: Replicate CodeLLama
|
||||
provider: replicate
|
||||
model: codellama-13b
|
||||
apiKey: <YOUR_REPLICATE_API_KEY>
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "Replicate CodeLLama",
|
||||
"provider": "replicate",
|
||||
"model": "codellama-13b",
|
||||
"apiKey": "<YOUR_REPLICATE_API_KEY>"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
If you don't specify the `model` parameter, it will default to `replicate/llama-2-70b-chat:58d078176e02c219e11eb4da5a02a7830a283b14cf8f94537af893ccff5ee781`.
|
||||
|
||||
|
|
@ -1,34 +0,0 @@
|
|||
# AWS SageMaker
|
||||
|
||||
SageMaker can be used for both chat and embedding models. Chat models are supported for endpoints deployed with [LMI](https://docs.djl.ai/docs/serving/serving/docs/lmi/index.html), and embedding models are supported for endpoints deployed with [HuggingFace TEI](https://huggingface.co/blog/sagemaker-huggingface-embedding)
|
||||
|
||||
To setup SageMaker as a chat model provider, add the following to your `config.json` file:
|
||||
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "deepseek-6.7b-instruct",
|
||||
"provider": "sagemaker",
|
||||
"model": "lmi-model-deepseek-coder-xxxxxxx",
|
||||
"region": "us-west-2"
|
||||
}
|
||||
],
|
||||
"embeddingsProvider": {
|
||||
"provider": "sagemaker",
|
||||
"model": "mxbai-embed-large-v1-endpoint"
|
||||
},
|
||||
}
|
||||
```
|
||||
|
||||
The value in model should be the SageMaker endpoint name you deployed.
|
||||
|
||||
Authentication will be through temporary or long-term credentials in
|
||||
~/.aws/credentials under a profile called "sagemaker".
|
||||
|
||||
```title="~/.aws/credentials
|
||||
[sagemaker]
|
||||
aws_access_key_id = abcdefg
|
||||
aws_secret_access_key = hijklmno
|
||||
aws_session_token = pqrstuvwxyz # Optional: means short term creds.
|
||||
```
|
||||
57
docs/docs/customize/model-providers/more/sagemaker.mdx
Normal file
57
docs/docs/customize/model-providers/more/sagemaker.mdx
Normal file
|
|
@ -0,0 +1,57 @@
|
|||
import Tabs from "@theme/Tabs";
|
||||
import TabItem from "@theme/TabItem";
|
||||
|
||||
# AWS SageMaker
|
||||
|
||||
SageMaker can be used for both chat and embedding models. Chat models are supported for endpoints deployed with [LMI](https://docs.djl.ai/docs/serving/serving/docs/lmi/index.html), and embedding models are supported for endpoints deployed with [HuggingFace TEI](https://huggingface.co/blog/sagemaker-huggingface-embedding)
|
||||
|
||||
Here is an example Sagemaker configuration setup:
|
||||
|
||||
<Tabs groupId="config-example">
|
||||
<TabItem value="yaml" label="YAML">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: deepseek-6.7b-instruct
|
||||
provider: sagemaker
|
||||
model: lmi-model-deepseek-coder-xxxxxxx
|
||||
region: us-west-2
|
||||
roles:
|
||||
- chat
|
||||
- name: mxbai-embed
|
||||
provider: sagemaker
|
||||
model: mxbai-embed-large-v1-endpoint
|
||||
roles:
|
||||
- embed
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "deepseek-6.7b-instruct",
|
||||
"provider": "sagemaker",
|
||||
"model": "lmi-model-deepseek-coder-xxxxxxx",
|
||||
"region": "us-west-2"
|
||||
}
|
||||
],
|
||||
"embeddingsProvider": {
|
||||
"provider": "sagemaker",
|
||||
"model": "mxbai-embed-large-v1-endpoint"
|
||||
}
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
The value in model should be the SageMaker endpoint name you deployed.
|
||||
|
||||
Authentication will be through temporary or long-term credentials in
|
||||
~/.aws/credentials under a profile called "sagemaker".
|
||||
|
||||
```title="~/.aws/credentials
|
||||
[sagemaker]
|
||||
aws_access_key_id = abcdefg
|
||||
aws_secret_access_key = hijklmno
|
||||
aws_session_token = pqrstuvwxyz # Optional: means short term creds.
|
||||
```
|
||||
|
|
@ -1,49 +0,0 @@
|
|||
---
|
||||
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]"
|
||||
}
|
||||
}
|
||||
```
|
||||
78
docs/docs/customize/model-providers/more/scaleway.mdx
Normal file
78
docs/docs/customize/model-providers/more/scaleway.mdx
Normal file
|
|
@ -0,0 +1,78 @@
|
|||
---
|
||||
title: Scaleway
|
||||
---
|
||||
|
||||
import Tabs from "@theme/Tabs";
|
||||
import TabItem from "@theme/TabItem";
|
||||
|
||||
:::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.
|
||||
|
||||
<Tabs groupId="config-example">
|
||||
<TabItem value="yaml" label="YAML">
|
||||
```yaml title="Package or config.yaml"
|
||||
models:
|
||||
- name: Qwen2.5-Coder-32B-Instruct
|
||||
provider: scaleway
|
||||
model: qwen2.5-coder-32b-instruct
|
||||
apiKey: <YOUR_SCALEWAY_API_KEY>
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "Qwen2.5-Coder-32B-Instruct",
|
||||
"provider": "scaleway",
|
||||
"model": "qwen2.5-coder-32b-instruct",
|
||||
"apiKey": "<YOUR_SCALEWAY_API_KEY>"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
## 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.
|
||||
|
||||
<Tabs groupId="config-example">
|
||||
<TabItem value="yaml" label="YAML">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: BGE Multilingual Gemma2
|
||||
provider: scaleway
|
||||
model: bge-multilingual-gemma2
|
||||
apiKey: <YOUR_SCALEWAY_API_KEY>
|
||||
roles:
|
||||
- embed
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"embeddingsProvider": {
|
||||
"provider": "scaleway",
|
||||
"model": "bge-multilingual-gemma2",
|
||||
"apiKey": "<YOUR_SCALEWAY_API_KEY>"
|
||||
}
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
|
@ -1,49 +0,0 @@
|
|||
---
|
||||
title: SiliconFlow
|
||||
---
|
||||
|
||||
:::info
|
||||
|
||||
You can get an API key from the [Silicon Cloud](https://cloud.siliconflow.cn/account/ak).
|
||||
|
||||
:::
|
||||
|
||||
## Chat model
|
||||
|
||||
We recommend configuring **Qwen/Qwen2.5-Coder-32B-Instruct** as your chat model.
|
||||
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "Qwen",
|
||||
"provider": "siliconflow",
|
||||
"model": "Qwen/Qwen2.5-Coder-32B-Instruct",
|
||||
"apiKey": "[API_KEY]"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
## Autocomplete model
|
||||
|
||||
We recommend configuring **Qwen/Qwen2.5-Coder-7B-Instruct** as your autocomplete model.
|
||||
|
||||
```json title="config.json"
|
||||
{
|
||||
"tabAutocompleteModel": {
|
||||
"title": "Qwen",
|
||||
"provider": "siliconflow",
|
||||
"model": "Qwen/Qwen2.5-Coder-7B-Instruct",
|
||||
"apiKey": "[API_KEY]"
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
## Embeddings model
|
||||
|
||||
SiliconFlow provide some embeddings models, [Click here](https://siliconflow.cn/models) to see a list of embeddings models.
|
||||
|
||||
## Reranking model
|
||||
|
||||
SiliconFlow provide some reranking models, [Click here](https://siliconflow.cn/models) to see a list of reranking models.
|
||||
88
docs/docs/customize/model-providers/more/siliconflow.mdx
Normal file
88
docs/docs/customize/model-providers/more/siliconflow.mdx
Normal file
|
|
@ -0,0 +1,88 @@
|
|||
---
|
||||
title: SiliconFlow
|
||||
---
|
||||
|
||||
import Tabs from "@theme/Tabs";
|
||||
import TabItem from "@theme/TabItem";
|
||||
|
||||
:::info
|
||||
You can get an API key from the [Silicon Cloud](https://cloud.siliconflow.cn/account/ak).
|
||||
:::
|
||||
|
||||
## Chat model
|
||||
|
||||
We recommend configuring **Qwen/Qwen2.5-Coder-32B-Instruct** as your chat model.
|
||||
|
||||
<Tabs groupId="config-example">
|
||||
<TabItem value="yaml" label="YAML">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: Qwen
|
||||
provider: siliconflow
|
||||
model: Qwen/Qwen2.5-Coder-32B-Instruct
|
||||
apiKey: <YOUR_SILICONFLOW_API_KEY>
|
||||
roles:
|
||||
- chat
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "Qwen",
|
||||
"provider": "siliconflow",
|
||||
"model": "Qwen/Qwen2.5-Coder-32B-Instruct",
|
||||
"apiKey": "<YOUR_SILICONFLOW_API_KEY>"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
## Autocomplete model
|
||||
|
||||
We recommend configuring **Qwen/Qwen2.5-Coder-7B-Instruct** as your autocomplete model.
|
||||
|
||||
<Tabs groupId="config-example">
|
||||
<TabItem value="yaml" label="YAML">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: Qwen
|
||||
provider: siliconflow
|
||||
model: Qwen/Qwen2.5-Coder-32B-Instruct
|
||||
apiKey: <YOUR_SILICONFLOW_API_KEY>
|
||||
roles:
|
||||
- autocomplete
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "Qwen",
|
||||
"provider": "siliconflow",
|
||||
"model": "Qwen/Qwen2.5-Coder-32B-Instruct",
|
||||
"apiKey": "<YOUR_SILICONFLOW_API_KEY>"
|
||||
}
|
||||
]
|
||||
"tabAutocompleteModel": {
|
||||
"title": "Qwen",
|
||||
"provider": "siliconflow",
|
||||
"model": "Qwen/Qwen2.5-Coder-7B-Instruct",
|
||||
"apiKey": "<YOUR_SILICONFLOW_API_KEY>"
|
||||
}
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
## Embeddings model
|
||||
|
||||
SiliconFlow provide some embeddings models, [Click here](https://siliconflow.cn/models) to see a list of embeddings models.
|
||||
|
||||
## Reranking model
|
||||
|
||||
SiliconFlow provide some reranking models, [Click here](https://siliconflow.cn/models) to see a list of reranking models.
|
||||
|
|
@ -1,16 +0,0 @@
|
|||
# TextGenWebUI
|
||||
|
||||
TextGenWebUI is a comprehensive, open-source language model UI and local server. You can set it up with an OpenAI-compatible server plugin, and then configure it in your `config.json` like this:
|
||||
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "Text Generation WebUI",
|
||||
"provider": "text-gen-webui",
|
||||
"apiBase": "http://localhost:5000/v1",
|
||||
"model": "MODEL_NAME"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
32
docs/docs/customize/model-providers/more/textgenwebui.mdx
Normal file
32
docs/docs/customize/model-providers/more/textgenwebui.mdx
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
import Tabs from "@theme/Tabs";
|
||||
import TabItem from "@theme/TabItem";
|
||||
|
||||
# TextGenWebUI
|
||||
|
||||
TextGenWebUI is a comprehensive, open-source language model UI and local server. You can set it up with an OpenAI-compatible server plugin, and then configure it like this:
|
||||
|
||||
<Tabs groupId="config-example">
|
||||
<TabItem value="yaml" label="YAML">
|
||||
```yaml title="Package or config.yaml"
|
||||
models:
|
||||
- name: Text Generation WebUI
|
||||
provider: text-gen-webui
|
||||
apiBase: http://localhost:5000/v1
|
||||
model: MODEL_NAME
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "Text Generation WebUI",
|
||||
"provider": "text-gen-webui",
|
||||
"apiBase": "http://localhost:5000/v1",
|
||||
"model": "MODEL_NAME"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
|
@ -1,18 +0,0 @@
|
|||
# Together
|
||||
|
||||
The Together API is a cloud platform for running large AI models. You can sign up [here](https://api.together.xyz/signup), copy your API key on the initial welcome screen, and then hit the play button on any model from the [Together Models list](https://docs.together.ai/docs/serverless-models). Change `~/.continue/config.json` to look like this:
|
||||
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "Together Qwen2.5 Coder",
|
||||
"provider": "together",
|
||||
"model": "Qwen/Qwen2.5-Coder-32B-Instruct",
|
||||
"apiKey": "YOUR_API_KEY"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
[View the source](https://github.com/continuedev/continue/blob/main/core/llm/llms/Together.ts)
|
||||
34
docs/docs/customize/model-providers/more/together.mdx
Normal file
34
docs/docs/customize/model-providers/more/together.mdx
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
import Tabs from "@theme/Tabs";
|
||||
import TabItem from "@theme/TabItem";
|
||||
|
||||
# Together
|
||||
|
||||
The Together API is a cloud platform for running large AI models. You can sign up [here](https://api.together.xyz/signup), copy your API key on the initial welcome screen, and then hit the play button on any model from the [Together Models list](https://docs.together.ai/docs/serverless-models). Change `~/.continue/config.json` to look like this:
|
||||
|
||||
<Tabs groupId="config-example">
|
||||
<TabItem value="yaml" label="YAML">
|
||||
```yaml title="Package or config.yaml"
|
||||
models:
|
||||
- name: Together Qwen2.5 Coder
|
||||
provider: together
|
||||
model: Qwen/Qwen2.5-Coder-32B-Instruct
|
||||
apiKey: <YOUR_TOGETHER_API_KEY>
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "Together Qwen2.5 Coder",
|
||||
"provider": "together",
|
||||
"model": "Qwen/Qwen2.5-Coder-32B-Instruct",
|
||||
"apiKey": "<YOUR_TOGETHER_API_KEY>"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
[View the source](https://github.com/continuedev/continue/blob/main/core/llm/llms/Together.ts)
|
||||
|
|
@ -1,59 +0,0 @@
|
|||
# vLLM
|
||||
|
||||
vLLM is an open-source library for fast LLM inference which typically is used to serve multiple users at the same. It can also be used to run a large model on multiple GPU:s (e.g. when it doesn´t fit in a single GPU). Run their OpenAI-compatible server using `vllm serve`. See their [server documentation](https://docs.vllm.ai/en/latest/serving/openai_compatible_server.html) and the [engine arguments documentation](https://docs.vllm.ai/en/latest/usage/engine_args.html).
|
||||
|
||||
```shell
|
||||
vllm serve meta-llama/Meta-Llama-3.1-8B-Instruct
|
||||
```
|
||||
## Chat model
|
||||
|
||||
We recommend configuring **Llama3.1 8B** as your chat model.
|
||||
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "Llama3.1 8B Instruct",
|
||||
"provider": "vllm",
|
||||
"model": "meta-llama/Meta-Llama-3.1-8B-Instruct",
|
||||
"apiBase": "http://<vllm chat endpoint>/v1"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
## Autocomplete model
|
||||
|
||||
We recommend configuring **Qwen2.5-Coder 1.5B** as your autocomplete model.
|
||||
|
||||
```json title="config.json"
|
||||
{
|
||||
"tabAutocompleteModel": {
|
||||
"title": "Qwen2.5-Coder 1.5B",
|
||||
"provider": "vllm",
|
||||
"model": "Qwen/Qwen2.5-Coder-1.5B"
|
||||
"apiBase": "http://<vllm autocomplete endpoint>/v1"
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
## Embeddings model
|
||||
|
||||
We recommend configuring **Nomic Embed Text** as your embeddings model.
|
||||
|
||||
```json title="config.json"
|
||||
{
|
||||
"embeddingsProvider": {
|
||||
"provider": "vllm",
|
||||
"model": "nomic-ai/nomic-embed-text-v1"
|
||||
"apiBase": "http://<vllm embed endpoint>/v1"
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
## Reranking model
|
||||
|
||||
[Click here](../../model-types/reranking.md) to see a list of reranking model providers.
|
||||
|
||||
|
||||
The continue implementation uses [OpenAI](../top-level/openai.md) under the hood. [View the source](https://github.com/continuedev/continue/blob/main/core/llm/llms/Vllm.ts)
|
||||
105
docs/docs/customize/model-providers/more/vllm.mdx
Normal file
105
docs/docs/customize/model-providers/more/vllm.mdx
Normal file
|
|
@ -0,0 +1,105 @@
|
|||
import Tabs from "@theme/Tabs";
|
||||
import TabItem from "@theme/TabItem";
|
||||
|
||||
# vLLM
|
||||
|
||||
vLLM is an open-source library for fast LLM inference which typically is used to serve multiple users at the same. It can also be used to run a large model on multiple GPU:s (e.g. when it doesn´t fit in a single GPU). Run their OpenAI-compatible server using `vllm serve`. See their [server documentation](https://docs.vllm.ai/en/latest/serving/openai_compatible_server.html) and the [engine arguments documentation](https://docs.vllm.ai/en/latest/usage/engine_args.html).
|
||||
|
||||
```shell
|
||||
vllm serve meta-llama/Meta-Llama-3.1-8B-Instruct
|
||||
```
|
||||
|
||||
## Chat model
|
||||
|
||||
We recommend configuring **Llama3.1 8B** as your chat model.
|
||||
|
||||
<Tabs groupId="config-example">
|
||||
<TabItem value="yaml" label="YAML">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: Llama3.1 8B Instruct
|
||||
provider: vllm
|
||||
model: meta-llama/Meta-Llama-3.1-8B-Instruct
|
||||
apiBase: http://<vllm chat endpoint>/v1
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "Llama3.1 8B Instruct",
|
||||
"provider": "vllm",
|
||||
"model": "meta-llama/Meta-Llama-3.1-8B-Instruct",
|
||||
"apiBase": "http://<vllm chat endpoint>/v1"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
## Autocomplete model
|
||||
|
||||
We recommend configuring **Qwen2.5-Coder 1.5B** as your autocomplete model.
|
||||
|
||||
<Tabs groupId="config-example">
|
||||
<TabItem value="yaml" label="YAML">
|
||||
```yaml title="Package or config.yaml"
|
||||
models:
|
||||
- name: Qwen2.5-Coder 1.5B
|
||||
provider: vllm
|
||||
model: Qwen/Qwen2.5-Coder-1.5B
|
||||
apiBase: http://<vllm autocomplete endpoint>/v1
|
||||
roles:
|
||||
- autocomplete
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"tabAutocompleteModel": {
|
||||
"title": "Qwen2.5-Coder 1.5B",
|
||||
"provider": "vllm",
|
||||
"model": "Qwen/Qwen2.5-Coder-1.5B",
|
||||
"apiBase": "http://<vllm autocomplete endpoint>/v1"
|
||||
}
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
## Embeddings model
|
||||
|
||||
We recommend configuring **Nomic Embed Text** as your embeddings model.
|
||||
|
||||
<Tabs groupId="config-example">
|
||||
<TabItem value="yaml" label="YAML">
|
||||
```yaml title="Package or config.yaml"
|
||||
models:
|
||||
- name: VLLM Nomad Embed Text
|
||||
provider: vllm
|
||||
model: nomic-ai/nomic-embed-text-v1
|
||||
apiBase: http://<vllm embed endpoint>/v1
|
||||
roles:
|
||||
- embed
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"embeddingsProvider": {
|
||||
"provider": "vllm",
|
||||
"model": "nomic-ai/nomic-embed-text-v1",
|
||||
"apiBase": "http://<vllm embed endpoint>/v1"
|
||||
}
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
## Reranking model
|
||||
|
||||
[Click here](../../model-types/reranking.mdx) to see a list of reranking model providers.
|
||||
|
||||
The continue implementation uses [OpenAI](../top-level/openai.mdx) under the hood. [View the source](https://github.com/continuedev/continue/blob/main/core/llm/llms/Vllm.ts)
|
||||
|
|
@ -1,146 +0,0 @@
|
|||
# IBM watsonx
|
||||
|
||||
watsonx, developed by IBM, offers a variety of pre-trained AI foundation models that can be used for natural language processing (NLP), computer vision, and speech recognition tasks.
|
||||
|
||||
## Setup
|
||||
|
||||
Accessing watsonx models can be done either through watsonx SaaS on IBM Cloud or using a dedicated watsonx.ai Software instance.
|
||||
|
||||
### watsonx.ai SaaS - IBM Cloud
|
||||
|
||||
To get started with watsonx SaaS, visit the [registration page](https://dataplatform.cloud.ibm.com/registration/stepone?context=wx). If you do not have an existing IBM Cloud account, you can sign up for a free trial.
|
||||
|
||||
To authenticate to watsonx.ai SaaS with Continue, you will need to create a project and [set up an API key](https://www.ibm.com/docs/en/mas-cd/continuous-delivery?topic=cli-creating-your-cloud-api-key). Then, in continue:
|
||||
|
||||
- Set **apiBase** to your watsonx SaaS endpoint, e.g. `https://us-south.ml.cloud.ibm.com` for US South region.
|
||||
- Set **projectId** to your watsonx project ID.
|
||||
- Set **apiKey** to your watsonx API Key.
|
||||
|
||||
### watsonx.ai Software
|
||||
|
||||
To authenticate to your watsonx.ai Software instance with Continue, you can use either `username/password` or `ZenApiKey` method:
|
||||
|
||||
1. _Option 1_ (Recommended): using `ZenApiKey` authentication:
|
||||
- Set **apiBase** to your watsonx software endpoint, e.g. `https://cpd-watsonx.apps.example.com`.
|
||||
- Set **projectId** to your watsonx project ID.
|
||||
- Set **apiKey** to your watsonx Zen API Key. To generate it:
|
||||
1. Log in to the CPD web client.
|
||||
2. From the toolbar, click your avatar.
|
||||
3. Click **Profile and settings**.
|
||||
4. Click **API key** > **Generate new key**.
|
||||
5. Click **Generate**.
|
||||
6. Click **Copy** and save your key somewhere safe. You cannot recover this key if you lose it.
|
||||
7. Generate your ZenApiKey by running the following command in your preferred terminal: `echo "<username>:<apikey>" | base64`, replacing `<username>` with your CPD username and `<apikey>` with the API Key you just created.
|
||||
2. _Option 2_: using `username/password` authentication:
|
||||
- Set **apiBase** to your watsonx software endpoint, e.g. `https://cpd-watsonx.apps.example.com`.
|
||||
- Set **projectId** to your watsonx project ID.
|
||||
- Set **API Key** to your watsonx Username and Password using `username:password` as format.
|
||||
|
||||
## Configuration
|
||||
|
||||
Add the following configuration to your `config.json` file to use the watsonx provider.
|
||||
|
||||
```json title="~/.continue/config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"model": "model ID",
|
||||
"title": "watsonx - Model Name",
|
||||
"provider": "watsonx",
|
||||
"apiBase": "watsonx endpoint e.g. https://us-south.ml.cloud.ibm.com",
|
||||
"projectId": "PROJECT_ID",
|
||||
"apiKey": "API_KEY/ZENAPI_KEY/USERNAME:PASSWORD",
|
||||
"apiVersion": "2024-03-14"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
`apiVersion` is optional and defaults to the latest version.
|
||||
|
||||
|
||||
If you are using a custom deployment endpoint, set `deploymentID` to the model's deployment ID. You can find it in the watsonx.ai Prompt Lab UI by selecting the corresponding model and opening the `</>` tab on the right, which will display the endpoint's URL containing the deployment ID.
|
||||
|
||||
```json title="~/.continue/config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"model": "model ID",
|
||||
"title": "watsonx - Model Name",
|
||||
"provider": "watsonx",
|
||||
"apiBase": "watsonx endpoint e.g. https://us-south.ml.cloud.ibm.com",
|
||||
"apiKey": "API_KEY/ZENAPI_KEY/USERNAME:PASSWORD",
|
||||
"apiVersion": "2024-03-14",
|
||||
"deploymentId": "DEPLOYMENT_ID"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
### Configuration Options
|
||||
|
||||
Make sure to specify a template name, such as `granite` or `llama3`, and to set the `contextLength` to the model's context window size.
|
||||
You can also configure generation parameters, such as temperature, topP, topK, frequency penalty, and stop sequences:
|
||||
|
||||
```json title="~/.continue/config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"model": "ibm/granite-20b-code-instruct",
|
||||
"title": "Granite Code 20b",
|
||||
"provider": "watsonx",
|
||||
"apiBase": "watsonx endpoint e.g. https://us-south.ml.cloud.ibm.com",
|
||||
"projectId": "PROJECT_ID",
|
||||
"apiKey": "API_KEY/ZENAPI_KEY/USERNAME:PASSWORD",
|
||||
"apiVersion": "2024-03-14",
|
||||
"template": "granite",
|
||||
"contextLength": 8000,
|
||||
"completionOptions": {
|
||||
"temperature": 0.1,
|
||||
"topP": 0.3,
|
||||
"topK": 20,
|
||||
"maxTokens": 2000,
|
||||
"frequencyPenalty": 1.1,
|
||||
"stop": [
|
||||
"Question:",
|
||||
"\n\n\n"
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
## Tab Auto Complete Model
|
||||
|
||||
Granite models are recommended for tab auto complete. The configuration is similar to that of the chat models:
|
||||
```json title="~/.continue/config.json"
|
||||
{
|
||||
"tabAutocompleteModel": {
|
||||
"model": "ibm/granite-8b-code-instruct",
|
||||
"title": "Granite Code 8b",
|
||||
"provider": "watsonx",
|
||||
"apiBase": "watsonx endpoint e.g. https://us-south.ml.cloud.ibm.com",
|
||||
"projectId": "PROJECT_ID",
|
||||
"apiKey": "API_KEY/ZENAPI_KEY/USERNAME:PASSWORD",
|
||||
"apiVersion": "2024-03-14",
|
||||
"contextLength": 4000
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
## Embeddings Model
|
||||
|
||||
To view the list of available embeddings models, visit [this page](https://dataplatform.cloud.ibm.com/docs/content/wsj/analyze-data/fm-models-embed.html?context=wx&pos=2#ibm-provided).
|
||||
```json title="~/.continue/config.json
|
||||
{
|
||||
"embeddingsProvider": {
|
||||
"provider": "watsonx",
|
||||
"model": "ibm/slate-30m-english-rtrvr-v2",
|
||||
"apiBase": "watsonx endpoint e.g. https://us-south.ml.cloud.ibm.com",
|
||||
"projectId": "PROJECT_ID",
|
||||
"apiKey": "API_KEY/ZENAPI_KEY/USERNAME:PASSWORD",
|
||||
"apiVersion": "2024-03-14"
|
||||
}
|
||||
}
|
||||
```
|
||||
242
docs/docs/customize/model-providers/more/watsonx.mdx
Normal file
242
docs/docs/customize/model-providers/more/watsonx.mdx
Normal file
|
|
@ -0,0 +1,242 @@
|
|||
import Tabs from "@theme/Tabs";
|
||||
import TabItem from "@theme/TabItem";
|
||||
|
||||
# IBM watsonx
|
||||
|
||||
watsonx, developed by IBM, offers a variety of pre-trained AI foundation models that can be used for natural language processing (NLP), computer vision, and speech recognition tasks.
|
||||
|
||||
## Setup
|
||||
|
||||
Accessing watsonx models can be done either through watsonx SaaS on IBM Cloud or using a dedicated watsonx.ai Software instance.
|
||||
|
||||
### watsonx.ai SaaS - IBM Cloud
|
||||
|
||||
To get started with watsonx SaaS, visit the [registration page](https://dataplatform.cloud.ibm.com/registration/stepone?context=wx). If you do not have an existing IBM Cloud account, you can sign up for a free trial.
|
||||
|
||||
To authenticate to watsonx.ai SaaS with Continue, you will need to create a project and [set up an API key](https://www.ibm.com/docs/en/mas-cd/continuous-delivery?topic=cli-creating-your-cloud-api-key). Then, in continue:
|
||||
|
||||
- Set **apiBase** to your watsonx SaaS endpoint, e.g. `https://us-south.ml.cloud.ibm.com` for US South region.
|
||||
- Set **projectId** to your watsonx project ID.
|
||||
- Set **apiKey** to your watsonx API Key.
|
||||
|
||||
### watsonx.ai Software
|
||||
|
||||
To authenticate to your watsonx.ai Software instance with Continue, you can use either `username/password` or `ZenApiKey` method:
|
||||
|
||||
1. _Option 1_ (Recommended): using `ZenApiKey` authentication:
|
||||
- Set **apiBase** to your watsonx software endpoint, e.g. `https://cpd-watsonx.apps.example.com`.
|
||||
- Set **projectId** to your watsonx project ID.
|
||||
- Set **apiKey** to your watsonx Zen API Key. To generate it:
|
||||
1. Log in to the CPD web client.
|
||||
2. From the toolbar, click your avatar.
|
||||
3. Click **Profile and settings**.
|
||||
4. Click **API key** > **Generate new key**.
|
||||
5. Click **Generate**.
|
||||
6. Click **Copy** and save your key somewhere safe. You cannot recover this key if you lose it.
|
||||
7. Generate your ZenApiKey by running the following command in your preferred terminal: `echo "<username>:<apikey>" | base64`, replacing `<username>` with your CPD username and `<apikey>` with the API Key you just created.
|
||||
2. _Option 2_: using `username/password` authentication:
|
||||
- Set **apiBase** to your watsonx software endpoint, e.g. `https://cpd-watsonx.apps.example.com`.
|
||||
- Set **projectId** to your watsonx project ID.
|
||||
- Set **API Key** to your watsonx Username and Password using `username:password` as format.
|
||||
|
||||
## Configuration
|
||||
|
||||
Add the following configuration:
|
||||
|
||||
<Tabs groupId="config-example">
|
||||
<TabItem value="yaml" label="YAML">
|
||||
```yaml title="Package or config.yaml"
|
||||
models:
|
||||
- name: watsonx - Model Name
|
||||
provider: watsonx
|
||||
model: model ID
|
||||
apiBase: https://us-south.ml.cloud.ibm.com
|
||||
projectId: PROJECT_ID
|
||||
apiKey: API_KEY/ZENAPI_KEY/USERNAME:PASSWORD
|
||||
apiVersion: 2024-03-14
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"model": "model ID",
|
||||
"title": "watsonx - Model Name",
|
||||
"provider": "watsonx",
|
||||
"apiBase": "https://us-south.ml.cloud.ibm.com",
|
||||
"projectId": "PROJECT_ID",
|
||||
"apiKey": "API_KEY/ZENAPI_KEY/USERNAME:PASSWORD",
|
||||
"apiVersion": "2024-03-14"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
`apiVersion` is optional and defaults to the latest version.
|
||||
|
||||
If you are using a custom deployment endpoint, set `deploymentID` to the model's deployment ID. You can find it in the watsonx.ai Prompt Lab UI by selecting the corresponding model and opening the `</>` tab on the right, which will display the endpoint's URL containing the deployment ID.
|
||||
|
||||
<Tabs groupId="config-example">
|
||||
<TabItem value="yaml" label="YAML">
|
||||
```yaml title="Package or config.yaml"
|
||||
models:
|
||||
- name: watsonx - Model Name
|
||||
provider: watsonx
|
||||
model: model ID
|
||||
apiBase: watsonx endpoint e.g. https://us-south.ml.cloud.ibm.com
|
||||
apiKey: API_KEY/ZENAPI_KEY/USERNAME:PASSWORD
|
||||
apiVersion: 2024-03-14
|
||||
deploymentId: DEPLOYMENT_ID
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"model": "model ID",
|
||||
"title": "watsonx - Model Name",
|
||||
"provider": "watsonx",
|
||||
"apiBase": "watsonx endpoint e.g. https://us-south.ml.cloud.ibm.com",
|
||||
"apiKey": "API_KEY/ZENAPI_KEY/USERNAME:PASSWORD",
|
||||
"apiVersion": "2024-03-14",
|
||||
"deploymentId": "DEPLOYMENT_ID"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
### Configuration Options
|
||||
|
||||
Make sure to specify a template name, such as `granite` or `llama3`, and to set the `contextLength` to the model's context window size.
|
||||
You can also configure generation parameters, such as temperature, topP, topK, frequency penalty, and stop sequences:
|
||||
|
||||
<Tabs groupId="config-example">
|
||||
<TabItem value="yaml" label="YAML">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: Granite Code 20b
|
||||
provider: watsonx
|
||||
model: ibm/granite-20b-code-instruct
|
||||
apiBase: watsonx endpoint e.g. https://us-south.ml.cloud.ibm.com
|
||||
projectId: PROJECT_ID
|
||||
apiKey: API_KEY/ZENAPI_KEY/USERNAME:PASSWORD
|
||||
apiVersion: 2024-03-14
|
||||
template: granite
|
||||
contextLength: 8000
|
||||
defaultCompletionOptions:
|
||||
temperature: 0.1
|
||||
topP: 0.3
|
||||
topK: 20
|
||||
maxTokens: 2000
|
||||
frequencyPenalty: 1.1
|
||||
stop:
|
||||
- Question:
|
||||
- "\n\n\n"
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"model": "ibm/granite-20b-code-instruct",
|
||||
"title": "Granite Code 20b",
|
||||
"provider": "watsonx",
|
||||
"apiBase": "watsonx endpoint e.g. https://us-south.ml.cloud.ibm.com",
|
||||
"projectId": "PROJECT_ID",
|
||||
"apiKey": "API_KEY/ZENAPI_KEY/USERNAME:PASSWORD",
|
||||
"apiVersion": "2024-03-14",
|
||||
"template": "granite",
|
||||
"contextLength": 8000,
|
||||
"completionOptions": {
|
||||
"temperature": 0.1,
|
||||
"topP": 0.3,
|
||||
"topK": 20,
|
||||
"maxTokens": 2000,
|
||||
"frequencyPenalty": 1.1,
|
||||
"stop": ["Question:", "\n\n\n"]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
## Tab Auto Complete Model
|
||||
|
||||
Granite models are recommended for tab auto complete. The configuration is similar to that of the chat models:
|
||||
|
||||
<Tabs groupId="config-example">
|
||||
<TabItem value="yaml" label="YAML">
|
||||
```yaml title="Package or config.yaml"
|
||||
models:
|
||||
- name: Granite Code 8b
|
||||
provider: watsonx
|
||||
model: ibm/granite-8b-code-instruct
|
||||
apiBase: watsonx endpoint e.g. https://us-south.ml.cloud.ibm.com
|
||||
projectId: PROJECT_ID
|
||||
apiKey: API_KEY/ZENAPI_KEY/USERNAME:PASSWORD
|
||||
apiVersion: 2024-03-14
|
||||
roles:
|
||||
- autocomplete
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"tabAutocompleteModel": {
|
||||
"model": "ibm/granite-8b-code-instruct",
|
||||
"title": "Granite Code 8b",
|
||||
"provider": "watsonx",
|
||||
"apiBase": "watsonx endpoint e.g. https://us-south.ml.cloud.ibm.com",
|
||||
"projectId": "PROJECT_ID",
|
||||
"apiKey": "API_KEY/ZENAPI_KEY/USERNAME:PASSWORD",
|
||||
"apiVersion": "2024-03-14",
|
||||
"contextLength": 4000
|
||||
}
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
## Embeddings Model
|
||||
|
||||
To view the list of available embeddings models, visit [this page](https://dataplatform.cloud.ibm.com/docs/content/wsj/analyze-data/fm-models-embed.html?context=wx&pos=2#ibm-provided).
|
||||
|
||||
<Tabs groupId="config-example">
|
||||
<TabItem value="yaml" label="YAML">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: Watsonx Embedder
|
||||
provider: watsonx
|
||||
model: ibm/slate-30m-english-rtrvr-v2
|
||||
apiBase: https://us-south.ml.cloud.ibm.com
|
||||
projectId: PROJECT_ID
|
||||
apiKey: API_KEY/ZENAPI_KEY/USERNAME:PASSWORD
|
||||
apiVersion: 2024-03-14
|
||||
roles:
|
||||
- embed
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"embeddingsProvider": {
|
||||
"provider": "watsonx",
|
||||
"model": "ibm/slate-30m-english-rtrvr-v2",
|
||||
"apiBase": "watsonx endpoint e.g. https://us-south.ml.cloud.ibm.com",
|
||||
"projectId": "PROJECT_ID",
|
||||
"apiKey": "API_KEY/ZENAPI_KEY/USERNAME:PASSWORD",
|
||||
"apiVersion": "2024-03-14"
|
||||
}
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
|
@ -1,69 +0,0 @@
|
|||
---
|
||||
title: Anthropic
|
||||
slug: ../anthropic
|
||||
---
|
||||
|
||||
:::info
|
||||
|
||||
You can get an API key from the [Anthropic console](https://console.anthropic.com/account/keys).
|
||||
|
||||
:::
|
||||
|
||||
## Chat model
|
||||
|
||||
We recommend configuring **Claude 3.5 Sonnet** as your chat model.
|
||||
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "Claude 3.5 Sonnet",
|
||||
"provider": "anthropic",
|
||||
"model": "claude-3-5-sonnet-latest",
|
||||
"apiKey": "[API_KEY]"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
## Autocomplete model
|
||||
|
||||
Anthropic currently does not offer any autocomplete models.
|
||||
|
||||
[Click here](../../model-types/autocomplete.md) to see a list of autocomplete model providers.
|
||||
|
||||
## Embeddings model
|
||||
|
||||
Anthropic currently does not offer any embeddings models.
|
||||
|
||||
[Click here](../../model-types/embeddings.md) to see a list of embeddings model providers.
|
||||
|
||||
## Reranking model
|
||||
|
||||
Anthropic currently does not offer any reranking models.
|
||||
|
||||
[Click here](../../model-types/reranking.md) to see a list of reranking model providers.
|
||||
|
||||
## Prompt caching
|
||||
|
||||
Anthropic supports [prompt caching with Claude](https://docs.anthropic.com/en/docs/build-with-claude/prompt-caching).
|
||||
|
||||
To enable caching of the system message and the turn-by-turn conversation, update your your model configuration as following:
|
||||
|
||||
```json
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
// Enable prompt caching
|
||||
"cacheBehavior": {
|
||||
"cacheSystemMessage": true,
|
||||
"cacheConversation": true
|
||||
},
|
||||
"title": "Anthropic",
|
||||
"provider": "anthropic",
|
||||
"model": "claude-3-5-sonnet-latest",
|
||||
"apiKey": "[API_KEY]"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
100
docs/docs/customize/model-providers/top-level/anthropic.mdx
Normal file
100
docs/docs/customize/model-providers/top-level/anthropic.mdx
Normal file
|
|
@ -0,0 +1,100 @@
|
|||
---
|
||||
title: Anthropic
|
||||
slug: ../anthropic
|
||||
---
|
||||
|
||||
import Tabs from "@theme/Tabs";
|
||||
import TabItem from "@theme/TabItem";
|
||||
|
||||
:::info
|
||||
You can get an API key from the [Anthropic console](https://console.anthropic.com/account/keys).
|
||||
:::
|
||||
|
||||
## Chat model
|
||||
|
||||
We recommend configuring **Claude 3.5 Sonnet** as your chat model.
|
||||
|
||||
<Tabs groupId="config-example">
|
||||
<TabItem value="yaml" label="YAML">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: Claude 3.5 Sonnet
|
||||
provider: anthropic
|
||||
model: claude-3-5-sonnet-latest
|
||||
apiKey: <YOUR_ANTHROPIC_API_KEY>
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "Claude 3.5 Sonnet",
|
||||
"provider": "anthropic",
|
||||
"model": "claude-3-5-sonnet-latest",
|
||||
"apiKey": "<YOUR_ANTHROPIC_API_KEY>"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
## Autocomplete model
|
||||
|
||||
Anthropic currently does not offer any autocomplete models.
|
||||
|
||||
[Click here](../../model-types/autocomplete.md) to see a list of autocomplete model providers.
|
||||
|
||||
## Embeddings model
|
||||
|
||||
Anthropic currently does not offer any embeddings models.
|
||||
|
||||
[Click here](../../model-types/embeddings.mdx) to see a list of embeddings model providers.
|
||||
|
||||
## Reranking model
|
||||
|
||||
Anthropic currently does not offer any reranking models.
|
||||
|
||||
[Click here](../../model-types/reranking.mdx) to see a list of reranking model providers.
|
||||
|
||||
## Prompt caching
|
||||
|
||||
Anthropic supports [prompt caching with Claude](https://docs.anthropic.com/en/docs/build-with-claude/prompt-caching).
|
||||
|
||||
To enable caching of the system message and the turn-by-turn conversation, update your your model configuration as following:
|
||||
|
||||
<Tabs groupId="config-example">
|
||||
<TabItem value="yaml" label="YAML">
|
||||
```yaml title="Package or config.yaml"
|
||||
models:
|
||||
- name: Anthropic
|
||||
provider: anthropic
|
||||
model: claude-3-5-sonnet-latest
|
||||
apiKey: <YOUR_ANTHROPIC_API_KEY>
|
||||
roles:
|
||||
- chat
|
||||
cacheBehavior:
|
||||
cacheSystemMessage: true
|
||||
cacheConversation: true
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"cacheBehavior": {
|
||||
"cacheSystemMessage": true,
|
||||
"cacheConversation": true
|
||||
},
|
||||
"title": "Anthropic",
|
||||
"provider": "anthropic",
|
||||
"model": "claude-3-5-sonnet-latest",
|
||||
"apiKey": "<YOUR_ANTHROPIC_API_KEY>"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
|
@ -1,92 +0,0 @@
|
|||
---
|
||||
title: Azure AI Foundry
|
||||
slug: ../azure
|
||||
---
|
||||
|
||||
Azure AI Foundry is a cloud-based service that provides access to models from OpenAI, Mistral AI, and others, integrated with the security and enterprise features of the Microsoft Azure platform. To get started, create an Azure AI Foundry resource in the [Azure portal](https://portal.azure.com).
|
||||
|
||||
:::info
|
||||
|
||||
For details on OpenAI model setup, see [Azure OpenAI Service configuration](#azure-openai-service-configuration).
|
||||
|
||||
:::
|
||||
|
||||
## Chat model
|
||||
|
||||
We recommend configuring **GPT-4o** as your chat model.
|
||||
|
||||
```json title="config.json"
|
||||
"models": [{
|
||||
"title": "GPT-4o",
|
||||
"provider": "azure",
|
||||
"model": "gpt-4o",
|
||||
"apiBase": "<YOUR_DEPLOYMENT_BASE>",
|
||||
"deployment": "<YOUR_DEPLOYMENT_NAME>",
|
||||
"apiKey": "<MY_API_KEY>", // If you use subscription key, try using Azure gateway to rename it apiKey
|
||||
"apiType": "azure-foundry" // Or "azure-openai" if using OpenAI models
|
||||
}]
|
||||
```
|
||||
|
||||
## Autocomplete model
|
||||
|
||||
We recommend configuring **Codestral** as your autocomplete model.
|
||||
|
||||
```json title="config.json"
|
||||
{
|
||||
"tabAutocompleteModel": {
|
||||
"title": "Codestral",
|
||||
"provider": "mistral",
|
||||
"model": "codestral-latest"
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
## Embeddings model
|
||||
|
||||
We recommend configuring **text-embedding-3-large** as your embeddings model.
|
||||
|
||||
```json title="config.json"
|
||||
"embeddingsProvider": {
|
||||
"provider": "azure",
|
||||
"model": "text-embedding-3-large",
|
||||
"apiBase": "<YOUR_DEPLOYMENT_BASE>",
|
||||
"deployment": "<YOUR_DEPLOYMENT_NAME>",
|
||||
"apiKey": "<MY_API_KEY>",
|
||||
"apiType": "azure-foundry" // Or "azure-openai" if using OpenAI models
|
||||
}
|
||||
```
|
||||
|
||||
## Reranking model
|
||||
|
||||
Azure OpenAI currently does not offer any reranking models.
|
||||
|
||||
[Click here](../../model-types/reranking.md) to see a list of reranking models.
|
||||
|
||||
## Privacy
|
||||
|
||||
If you'd like to use OpenAI models but are concerned about privacy, you can use the Azure OpenAI service, which is GDPR and HIPAA compliant.
|
||||
|
||||
:::info[Getting access]
|
||||
[Click here](https://azure.microsoft.com/en-us/products/ai-services/openai-service) to apply for access to the Azure OpenAI service. Response times are typically within a few days.
|
||||
:::
|
||||
|
||||
## Azure OpenAI Service configuration
|
||||
|
||||
Azure OpenAI Service 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 Foundry_, 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-july/chat/completions?api-version=2023-03-15-preview` would map to the following:
|
||||
|
||||
```json
|
||||
{
|
||||
"title": "GPT-4o Azure",
|
||||
"model": "gpt-4o",
|
||||
"provider": "azure",
|
||||
"apiBase": "https://just-an-example.openai.azure.com",
|
||||
"deployment": "gpt-4o-july",
|
||||
"apiVersion": "2023-03-15-preview",
|
||||
"apiKey": "<MY_API_KEY>",
|
||||
"apiType": "azure-openai"
|
||||
}
|
||||
```
|
||||
165
docs/docs/customize/model-providers/top-level/azure.mdx
Normal file
165
docs/docs/customize/model-providers/top-level/azure.mdx
Normal file
|
|
@ -0,0 +1,165 @@
|
|||
---
|
||||
title: Azure AI Foundry
|
||||
slug: ../azure
|
||||
---
|
||||
|
||||
import Tabs from "@theme/Tabs";
|
||||
import TabItem from "@theme/TabItem";
|
||||
|
||||
Azure AI Foundry is a cloud-based service that provides access to models from OpenAI, Mistral AI, and others, integrated with the security and enterprise features of the Microsoft Azure platform. To get started, create an Azure AI Foundry resource in the [Azure portal](https://portal.azure.com).
|
||||
|
||||
:::info
|
||||
|
||||
For details on OpenAI model setup, see [Azure OpenAI Service configuration](#azure-openai-service-configuration).
|
||||
|
||||
:::
|
||||
|
||||
## Chat model
|
||||
|
||||
We recommend configuring **GPT-4o** as your chat model.
|
||||
|
||||
<Tabs groupId="config-example">
|
||||
<TabItem value="yaml" label="YAML">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: GPT-4o
|
||||
provider: azure
|
||||
model: gpt-4o
|
||||
apiBase: <YOUR_DEPLOYMENT_BASE>
|
||||
deployment: <YOUR_DEPLOYMENT_NAME>
|
||||
apiKey: <YOUR_AZURE_API_KEY> # If you use subscription key, try using Azure gateway to rename it apiKey
|
||||
env:
|
||||
apiType: azure-foundry # Or "azure-openai" if using OpenAI models
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [{
|
||||
"title": "GPT-4o",
|
||||
"provider": "azure",
|
||||
"model": "gpt-4o",
|
||||
"apiBase": "<YOUR_DEPLOYMENT_BASE>",
|
||||
"deployment": "<YOUR_DEPLOYMENT_NAME>",
|
||||
"apiKey": "<YOUR_AZURE_API_KEY>", // If you use subscription key, try using Azure gateway to rename it apiKey
|
||||
"apiType": "azure-foundry" // Or "azure-openai" if using OpenAI models
|
||||
}]
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
## Autocomplete model
|
||||
|
||||
We recommend configuring **Codestral** as your autocomplete model.
|
||||
|
||||
<Tabs groupId="config-example">
|
||||
<TabItem value="yaml" label="YAML">
|
||||
```yaml title="Package or config.yaml"
|
||||
models:
|
||||
- name: Codestral
|
||||
provider: mistral
|
||||
model: codestral-latest
|
||||
roles:
|
||||
- autocomplete
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"tabAutocompleteModel": {
|
||||
"title": "Codestral",
|
||||
"provider": "mistral",
|
||||
"model": "codestral-latest"
|
||||
}
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
## Embeddings model
|
||||
|
||||
We recommend configuring **text-embedding-3-large** as your embeddings model.
|
||||
|
||||
<Tabs groupId="config-example">
|
||||
<TabItem value="yaml" label="YAML">
|
||||
```yaml title="Package or config.yaml"
|
||||
models:
|
||||
- name: Text Embedding-3 Large
|
||||
provider: azure
|
||||
model: text-embedding-3-large
|
||||
apiBase: <YOUR_DEPLOYMENT_BASE>
|
||||
deployment: <YOUR_DEPLOYMENT_NAME>
|
||||
apiKey: <YOUR_AZURE_API_KEY>
|
||||
env:
|
||||
apiType: azure
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"embeddingsProvider": {
|
||||
"provider": "azure",
|
||||
"model": "text-embedding-3-large",
|
||||
"apiBase": "<YOUR_DEPLOYMENT_BASE>",
|
||||
"deployment": "<YOUR_DEPLOYMENT_NAME>",
|
||||
"apiKey": "<YOUR_AZURE_API_KEY>",
|
||||
"apiType": "azure-foundry" // Or "azure-openai" if using OpenAI models
|
||||
}
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
## Reranking model
|
||||
|
||||
Azure OpenAI currently does not offer any reranking models.
|
||||
|
||||
[Click here](../../model-types/reranking.mdx) to see a list of reranking models.
|
||||
|
||||
## Privacy
|
||||
|
||||
If you'd like to use OpenAI models but are concerned about privacy, you can use the Azure OpenAI service, which is GDPR and HIPAA compliant.
|
||||
|
||||
:::info[Getting access]
|
||||
[Click here](https://azure.microsoft.com/en-us/products/ai-services/openai-service) to apply for access to the Azure OpenAI service. Response times are typically within a few days.
|
||||
:::
|
||||
|
||||
## Azure OpenAI Service configuration
|
||||
|
||||
Azure OpenAI Service 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 Foundry_, 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-july/chat/completions?api-version=2023-03-15-preview` would map to the following:
|
||||
|
||||
<Tabs groupId="config-example">
|
||||
<TabItem value="yaml" label="YAML">
|
||||
```yaml title="Package or config.yaml"
|
||||
models:
|
||||
- name: GPT-4o Azure
|
||||
model: gpt-4o
|
||||
provider: openai
|
||||
apiBase: https://just-an-example.openai.azure.com
|
||||
deployment: gpt-4o-july
|
||||
apiVersion: 2023-03-15-preview
|
||||
apiKey: <YOUR_AZURE_API_KEY>
|
||||
env:
|
||||
apiType: azure-openai
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"title": "GPT-4o Azure",
|
||||
"model": "gpt-4o",
|
||||
"provider": "openai",
|
||||
"apiBase": "https://just-an-example.openai.azure.com",
|
||||
"deployment": "gpt-4o-july",
|
||||
"apiVersion": "2023-03-15-preview",
|
||||
"apiKey": "<YOUR_AZURE_API_KEY>",
|
||||
"apiType": "azure-openai"
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
|
@ -1,118 +0,0 @@
|
|||
---
|
||||
title: Amazon Bedrock
|
||||
slug: ../bedrock
|
||||
---
|
||||
|
||||
Amazon Bedrock is a fully managed service on AWS that provides access to foundation models from various AI companies through a single API.
|
||||
|
||||
## Chat model
|
||||
|
||||
We recommend configuring **Claude 3.5 Sonnet** as your chat model.
|
||||
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "Claude 3.5 Sonnet",
|
||||
"provider": "bedrock",
|
||||
"model": "anthropic.claude-3-5-sonnet-20240620-v1:0",
|
||||
"region": "us-east-1",
|
||||
"profile": "bedrock"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
> If you run into the following error when connecting to the new Claude 3.5 Sonnet 2 models from AWS - `400 Invocation of model ID anthropic.claude-3-5-sonnet-20241022-v2:0 with on-demand throughput isn’t supported. Retry your request with the ID or ARN of an inference profile that contains this model.`
|
||||
|
||||
> You can fix this using the following config.json
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "Claude 3.5 Sonnet",
|
||||
"provider": "bedrock",
|
||||
"model": "us.anthropic.claude-3-5-sonnet-20241022-v2:0",
|
||||
"region": "us-east-1",
|
||||
"profile": "bedrock"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
## Autocomplete model
|
||||
|
||||
Bedrock currently does not offer any autocomplete models. However, [Codestral from Mistral](https://mistral.ai/news/codestral-2501/) and [Point from Poolisde](https://aws.amazon.com/bedrock/poolside/) will be supported in the near future.
|
||||
|
||||
In the meantime, you can view a list of autocomplete model providers [here](../../model-types/autocomplete.md).
|
||||
|
||||
## Embeddings model
|
||||
|
||||
We recommend configuring [`amazon.titan-embed-text-v2:0`](https://docs.aws.amazon.com/bedrock/latest/devguide/models.html#amazon.titan-embed-text-v2-0) as your embeddings model.
|
||||
|
||||
```json title="~/.continue/config.json"
|
||||
{
|
||||
"embeddingsProvider": {
|
||||
"title": "Embeddings Model",
|
||||
"provider": "bedrock",
|
||||
"model": "amazon.titan-embed-text-v2:0",
|
||||
"region": "us-west-2"
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
## Reranking model
|
||||
|
||||
We recommend configuring `cohere.rerank-v3-5:0` as your reranking model, you may also use `amazon.rerank-v1:0`.
|
||||
|
||||
```json title="~/.continue/config.json"
|
||||
{
|
||||
"reranker": {
|
||||
"name": "bedrock",
|
||||
"params": {
|
||||
"model": "cohere.rerank-v3-5:0",
|
||||
"region": "us-west-2"
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
## Authentication
|
||||
|
||||
Authentication will be through temporary or long-term credentials in
|
||||
`~/.aws/credentials` under a configured profile (e.g. "bedrock").
|
||||
|
||||
```title="~/.aws/credentials
|
||||
[bedrock]
|
||||
aws_access_key_id = abcdefg
|
||||
aws_secret_access_key = hijklmno
|
||||
aws_session_token = pqrstuvwxyz # Optional: means short term creds.
|
||||
```
|
||||
|
||||
## Custom Imported Models
|
||||
|
||||
To setup Bedrock using custom imported models, add the following to your `config.json` file:
|
||||
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "AWS Bedrock deepseek-coder-6.7b-instruct",
|
||||
"provider": "bedrockimport",
|
||||
"model": "deepseek-coder-6.7b-instruct",
|
||||
"modelArn": "arn:aws:bedrock:us-west-2:XXXXX:imported-model/XXXXXX",
|
||||
"region": "us-west-2",
|
||||
"profile": "bedrock"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
Authentication will be through temporary or long-term credentials in
|
||||
~/.aws/credentials under a configured profile (e.g. "bedrock").
|
||||
|
||||
```title="~/.aws/credentials
|
||||
[bedrock]
|
||||
aws_access_key_id = abcdefg
|
||||
aws_secret_access_key = hijklmno
|
||||
aws_session_token = pqrstuvwxyz # Optional: means short term creds.
|
||||
```
|
||||
200
docs/docs/customize/model-providers/top-level/bedrock.mdx
Normal file
200
docs/docs/customize/model-providers/top-level/bedrock.mdx
Normal file
|
|
@ -0,0 +1,200 @@
|
|||
---
|
||||
title: Amazon Bedrock
|
||||
slug: ../bedrock
|
||||
---
|
||||
|
||||
import Tabs from "@theme/Tabs";
|
||||
import TabItem from "@theme/TabItem";
|
||||
|
||||
Amazon Bedrock is a fully managed service on AWS that provides access to foundation models from various AI companies through a single API.
|
||||
|
||||
## Chat model
|
||||
|
||||
We recommend configuring **Claude 3.5 Sonnet** as your chat model.
|
||||
|
||||
<Tabs groupId="config-example">
|
||||
<TabItem value="yaml" label="YAML">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: Claude 3.5 Sonnet
|
||||
provider: bedrock
|
||||
model: anthropic.claude-3-5-sonnet-20240620-v1:0
|
||||
region: us-east-1
|
||||
profile: bedrock
|
||||
roles:
|
||||
- chat
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "Claude 3.5 Sonnet",
|
||||
"provider": "bedrock",
|
||||
"model": "anthropic.claude-3-5-sonnet-20240620-v1:0",
|
||||
"region": "us-east-1",
|
||||
"profile": "bedrock"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
> If you run into the following error when connecting to the new Claude 3.5 Sonnet 2 models from AWS - `400 Invocation of model ID anthropic.claude-3-5-sonnet-20241022-v2:0 with on-demand throughput isn't supported. Retry your request with the ID or ARN of an inference profile that contains this model.`
|
||||
|
||||
> You can fix this using the following config:
|
||||
|
||||
<Tabs groupId="config-example">
|
||||
<TabItem value="yaml" label="YAML">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: Claude 3.5 Sonnet
|
||||
provider: bedrock
|
||||
model: us.anthropic.claude-3-5-sonnet-20241022-v2:0
|
||||
region: us-east-1
|
||||
profile: bedrock
|
||||
roles:
|
||||
- chat
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "Claude 3.5 Sonnet",
|
||||
"provider": "bedrock",
|
||||
"model": "us.anthropic.claude-3-5-sonnet-20241022-v2:0",
|
||||
"region": "us-east-1",
|
||||
"profile": "bedrock"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
## Autocomplete model
|
||||
|
||||
Bedrock currently does not offer any autocomplete models. However, [Codestral from Mistral](https://mistral.ai/news/codestral-2501/) and [Point from Poolisde](https://aws.amazon.com/bedrock/poolside/) will be supported in the near future.
|
||||
|
||||
In the meantime, you can view a list of autocomplete model providers [here](../../model-types/autocomplete.md).
|
||||
|
||||
## Embeddings model
|
||||
|
||||
We recommend configuring [`amazon.titan-embed-text-v2:0`](https://docs.aws.amazon.com/bedrock/latest/devguide/models.html#amazon.titan-embed-text-v2-0) as your embeddings model.
|
||||
|
||||
<Tabs groupId="config-example">
|
||||
<TabItem value="yaml" label="YAML">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: Embeddings Model
|
||||
provider: bedrock
|
||||
model: amazon.titan-embed-text-v2:0
|
||||
region: us-west-2
|
||||
roles:
|
||||
- embed
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"embeddingsProvider": {
|
||||
"title": "Embeddings Model",
|
||||
"provider": "bedrock",
|
||||
"model": "amazon.titan-embed-text-v2:0",
|
||||
"region": "us-west-2"
|
||||
}
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
## Reranking model
|
||||
|
||||
We recommend configuring `cohere.rerank-v3-5:0` as your reranking model, you may also use `amazon.rerank-v1:0`.
|
||||
|
||||
<Tabs groupId="config-example">
|
||||
<TabItem value="yaml" label="YAML">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: Bedrock Reranker
|
||||
provider: bedrock
|
||||
model: cohere.rerank-v3-5:0
|
||||
region: us-west-2
|
||||
roles:
|
||||
- rerank
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"reranker": {
|
||||
"name": "bedrock",
|
||||
"params": {
|
||||
"model": "cohere.rerank-v3-5:0",
|
||||
"region": "us-west-2"
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
## Authentication
|
||||
|
||||
Authentication will be through temporary or long-term credentials in
|
||||
`~/.aws/credentials` under a configured profile (e.g. "bedrock").
|
||||
|
||||
```title="~/.aws/credentials
|
||||
[bedrock]
|
||||
aws_access_key_id = abcdefg
|
||||
aws_secret_access_key = hijklmno
|
||||
aws_session_token = pqrstuvwxyz # Optional: means short term creds.
|
||||
```
|
||||
|
||||
## Custom Imported Models
|
||||
|
||||
To setup Bedrock using custom imported models, add the following to your config file:
|
||||
|
||||
<Tabs groupId="config-example">
|
||||
<TabItem value="yaml" label="YAML">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: AWS Bedrock deepseek-coder-6.7b-instruct
|
||||
provider: bedrockimport
|
||||
model: deepseek-coder-6.7b-instruct
|
||||
modelArn: arn:aws:bedrock:us-west-2:XXXXX:imported-model/XXXXXX
|
||||
region: us-west-2
|
||||
profile: bedrock
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "AWS Bedrock deepseek-coder-6.7b-instruct",
|
||||
"provider": "bedrockimport",
|
||||
"model": "deepseek-coder-6.7b-instruct",
|
||||
"modelArn": "arn:aws:bedrock:us-west-2:XXXXX:imported-model/XXXXXX",
|
||||
"region": "us-west-2",
|
||||
"profile": "bedrock"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
Authentication will be through temporary or long-term credentials in
|
||||
~/.aws/credentials under a configured profile (e.g. "bedrock").
|
||||
|
||||
```title="~/.aws/credentials
|
||||
[bedrock]
|
||||
aws_access_key_id = abcdefg
|
||||
aws_secret_access_key = hijklmno
|
||||
aws_session_token = pqrstuvwxyz # Optional: means short term creds.
|
||||
```
|
||||
|
|
@ -1,53 +0,0 @@
|
|||
---
|
||||
title: DeepSeek
|
||||
slug: ../deepseek
|
||||
---
|
||||
|
||||
:::info
|
||||
|
||||
You can get an API key from the [DeepSeek console](https://www.deepseek.com/).
|
||||
|
||||
:::
|
||||
|
||||
## Chat model
|
||||
|
||||
We recommend configuring **DeepSeek Chat** as your chat model.
|
||||
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "DeepSeek Chat",
|
||||
"provider": "deepseek",
|
||||
"model": "deepseek-chat",
|
||||
"apiKey": "[API_KEY]"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
## Autocomplete model
|
||||
|
||||
We recommend configuring **DeepSeek Coder** as your autocomplete model.
|
||||
|
||||
```json title="config.json"
|
||||
{
|
||||
"tabAutocompleteModel": {
|
||||
"title": "DeepSeek Coder",
|
||||
"provider": "deepseek",
|
||||
"model": "deepseek-coder"
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
## Embeddings model
|
||||
|
||||
DeepSeek currently does not offer any embeddings models.
|
||||
|
||||
[Click here](../../model-types/embeddings.md) to see a list of embeddings model providers.
|
||||
|
||||
## Reranking model
|
||||
|
||||
DeepSeek currently does not offer any reranking models.
|
||||
|
||||
[Click here](../../model-types/reranking.md) to see a list of reranking model providers.
|
||||
83
docs/docs/customize/model-providers/top-level/deepseek.mdx
Normal file
83
docs/docs/customize/model-providers/top-level/deepseek.mdx
Normal file
|
|
@ -0,0 +1,83 @@
|
|||
---
|
||||
title: DeepSeek
|
||||
slug: ../deepseek
|
||||
---
|
||||
|
||||
import Tabs from "@theme/Tabs";
|
||||
import TabItem from "@theme/TabItem";
|
||||
|
||||
:::info
|
||||
You can get an API key from the [DeepSeek console](https://www.deepseek.com/).
|
||||
:::
|
||||
|
||||
## Chat model
|
||||
|
||||
We recommend configuring **DeepSeek Chat** as your chat model.
|
||||
|
||||
<Tabs groupId="config-example">
|
||||
<TabItem value="yaml" label="YAML">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: DeepSeek Chat
|
||||
provider: deepseek
|
||||
model: deepseek-chat
|
||||
apiKey: <YOUR_DEEPSEEK_API_KEY>
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "DeepSeek Chat",
|
||||
"provider": "deepseek",
|
||||
"model": "deepseek-chat",
|
||||
"apiKey": "<YOUR_DEEPSEEK_API_KEY>"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
## Autocomplete model
|
||||
|
||||
We recommend configuring **DeepSeek Coder** as your autocomplete model.
|
||||
|
||||
<Tabs groupId="config-example">
|
||||
<TabItem value="yaml" label="YAML">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: DeepSeek Coder
|
||||
provider: deepseek
|
||||
model: deepseek-coder
|
||||
apiKey: <YOUR_DEEPSEEK_API_KEY>
|
||||
roles:
|
||||
- autocomplete
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"tabAutocompleteModel": {
|
||||
"title": "DeepSeek Coder",
|
||||
"provider": "deepseek",
|
||||
"model": "deepseek-coder",
|
||||
"apiKey": "<YOUR_DEEPSEEK_API_KEY>"
|
||||
}
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
## Embeddings model
|
||||
|
||||
DeepSeek currently does not offer any embeddings models.
|
||||
|
||||
[Click here](../../model-types/embeddings.mdx) to see a list of embeddings model providers.
|
||||
|
||||
## Reranking model
|
||||
|
||||
DeepSeek currently does not offer any reranking models.
|
||||
|
||||
[Click here](../../model-types/reranking.mdx) to see a list of reranking model providers.
|
||||
|
|
@ -1,53 +0,0 @@
|
|||
---
|
||||
title: Gemini
|
||||
slug: ../gemini
|
||||
---
|
||||
|
||||
:::info
|
||||
|
||||
You can get an API key from the [Google AI Studio](https://aistudio.google.com/).
|
||||
|
||||
:::
|
||||
|
||||
## Chat model
|
||||
|
||||
We recommend configuring **Gemini 1.5 Pro** as your chat model.
|
||||
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "Gemini 1.5 Pro",
|
||||
"provider": "gemini",
|
||||
"model": "gemini-1.5-pro-latest",
|
||||
"apiKey": "[API_KEY]"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
## Autocomplete model
|
||||
|
||||
Gemini 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 **text-embedding-004** as your embeddings model.
|
||||
|
||||
```json title="config.json"
|
||||
{
|
||||
"embeddingsProvider": {
|
||||
"provider": "gemini",
|
||||
"model": "models/text-embedding-004",
|
||||
"apiKey": "[API_KEY]"
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
## Reranking model
|
||||
|
||||
Gemini currently does not offer any reranking models.
|
||||
|
||||
[Click here](../../model-types/reranking.md) to see a list of reranking model providers.
|
||||
82
docs/docs/customize/model-providers/top-level/gemini.mdx
Normal file
82
docs/docs/customize/model-providers/top-level/gemini.mdx
Normal file
|
|
@ -0,0 +1,82 @@
|
|||
---
|
||||
title: Gemini
|
||||
slug: ../gemini
|
||||
---
|
||||
|
||||
import Tabs from "@theme/Tabs";
|
||||
import TabItem from "@theme/TabItem";
|
||||
|
||||
:::info
|
||||
You can get an API key from the [Google AI Studio](https://aistudio.google.com/).
|
||||
:::
|
||||
|
||||
## Chat model
|
||||
|
||||
We recommend configuring **Gemini 1.5 Pro** as your chat model.
|
||||
|
||||
<Tabs groupId="config-example">
|
||||
<TabItem value="yaml" label="YAML">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: Gemini 1.5 Pro
|
||||
provider: gemini
|
||||
model: gemini-1.5-pro-latest
|
||||
apiKey: <YOUR_GEMINI_API_KEY>
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "Gemini 1.5 Pro",
|
||||
"provider": "gemini",
|
||||
"model": "gemini-1.5-pro-latest",
|
||||
"apiKey": "<YOUR_GEMINI_API_KEY>"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
## Autocomplete model
|
||||
|
||||
Gemini 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 **text-embedding-004** as your embeddings model.
|
||||
|
||||
<Tabs groupId="config-example">
|
||||
<TabItem value="yaml" label="YAML">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: Gemini Embeddings
|
||||
provider: gemini
|
||||
model: models/text-embedding-004
|
||||
apiKey: <YOUR_GEMINI_API_KEY>
|
||||
roles:
|
||||
- embed
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"embeddingsProvider": {
|
||||
"provider": "gemini",
|
||||
"model": "models/text-embedding-004",
|
||||
"apiKey": "<YOUR_GEMINI_API_KEY>"
|
||||
}
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
## Reranking model
|
||||
|
||||
Gemini currently does not offer any reranking models.
|
||||
|
||||
[Click here](../../model-types/reranking.mdx) to see a list of reranking model providers.
|
||||
|
|
@ -1,63 +0,0 @@
|
|||
---
|
||||
title: Mistral
|
||||
slug: ../mistral
|
||||
---
|
||||
|
||||
:::info
|
||||
|
||||
You can get an API key from the [Mistral Dashboard](https://console.mistral.ai). Note that the API key for Codestral (codestral.mistral.ai) is different from for all other models (api.mistral.ai). If you are using a Codestral API key, you should set the `apiBase` to `https://codestral.mistral.ai/v1`. Otherwise, we will default to using `https://api.mistral.ai/v1`.
|
||||
|
||||
:::
|
||||
|
||||
## Chat model
|
||||
|
||||
We recommend configuring **Mistral Large** as your chat model.
|
||||
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "Mistral Large",
|
||||
"provider": "mistral",
|
||||
"model": "mistral-large-latest",
|
||||
"apiKey": "[API_KEY]"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
## Autocomplete model
|
||||
|
||||
We recommend configuring **Codestral** as your autocomplete model.
|
||||
|
||||
```json title="config.json"
|
||||
{
|
||||
"tabAutocompleteModel": {
|
||||
"title": "Codestral",
|
||||
"provider": "mistral",
|
||||
"model": "codestral-latest"
|
||||
// "apiBase": "https://codestral.mistral.ai/v1" // Do this if you are using a Codestral API key
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
## Embeddings model
|
||||
|
||||
We recommend configuring **Mistral Embed** as your embeddings model.
|
||||
|
||||
```json title="config.json"
|
||||
{
|
||||
"embeddingsProvider": {
|
||||
"provider": "mistral",
|
||||
"model": "mistral-embed",
|
||||
"apiKey": "[API_KEY]",
|
||||
"apiBase": "https://api.mistral.ai/v1"
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
## Reranking model
|
||||
|
||||
Mistral currently does not offer any reranking models.
|
||||
|
||||
[Click here](../../model-types/reranking.md) to see a list of reranking model providers.
|
||||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Reference in a new issue