* ✨ global filewatcher for config.json/ts changes * 🐛 retry webview requests so that first cmd+L works * ✨ Improved onboarding experience (#1155) * 🚸 onboarding improvements * 🧑💻 keyboard shortcuts to toggle autocomplete and open config.json * ⚡️ improve detection of terminal code blocks * 🚧 onboarding improvements * 🚧 more onboarding improvements * 💄 last session button * 🚸 show more fallback options in dropdown * 💄 add sectioning to models page * 💄 clean up delete model button * 💄 make tooltip look nicer * 🚸 download Ollama button * 💄 local LLM onboarding * 🐛 select correct terminal on "runCommand" message * 💄 polish onboarding * 💚 fix gui build errors * 📝 add /v1 to OpenAI examples in docs * 🚑 hotfix for not iterable error * ✨ add Cohere as Embeddings Provider * 💄 add llama3 to UI * 🔥 remove disable indexing * 🍱 update continue logo * 🐛 fix language undefined bug * 🐛 fix merge mistake * 📝 rename googlepalmapi.md to googlegeminiapi.md * 📝 update mistral models * Rename to geminiapi & change filename this time * ✨ global request options (#1153) * ✨ global request options * 🐛 fix jira context provider by injecting fetch * ✨ request options for embeddings providers * ✨ add Cohere as Reranker (#1159) * ♻️ use custom requestOptions with CohereEmbeddingsProvider * Update preIndexedDocs.ts (#1154) Add WordPress and WooCommerce as preIndexedDocs. * 🩹 remove example "outputDir" from default config * Fix slash command params loading (#1084) Existing slash commands expect an object named "params" so mapping to "options" here caused params to be undefined within the run scope. I renamed from 'm' to 's' just to avoid potential confusion with the model property mapping above. * 🐛 don't index if no open workspace folders * 💄 improve onboarding language * 🚸 improve onboarding * 🐛 stop loading when error * 💄 replace text in input box * Respect Retry-After header when available from 429 responses (#1182) * 🩹 remove dead code for exponential backoff This has been replaced by the withExponentialBackoff helper * 🩹 respect Retry-After header when available * 🚸 update inline tips language * ✨ input box history * 📌 update package-locks * 🔊 log errors in prepackage * 🐛 err to string * 📌 pin llama-tokenizer-js * 📌 update lockfile * 🚚 change /docs to docs. * 📦 package win-ca dependencies in binary * 🔥 remove unpopular models from UI * 🍱 new logo in jetbrains * 🎨 use node-fetch everywhere * 🚸 immediately select newly added models * 🚸 spell out Alt instead of using symbol * 🔥 remove config shortcut * 🐛 fix changing model bug * 🩹 de-duplicate before adding models * 🔧 add embeddingsProvider specific request options * 🎨 refactor to always use node-fetch from LLM * 🔥 remove duplicate tokens generated * 🔊 add timestamp to JetBrains logs * 🎨 maxStopWords for Groq * 🐛 fix groq provider calling /completions * 🐛 correctly adhere to LanceDB table name spec * 🐛 fix sqlite NOT NULL constraint failed error with custom model * Fix issue where Accept/Reject All only accepts/rejects a single diff hunk. (#1197) * Fix issues parsing Ollama /api/show endpoint payloads. (#1199) * ✨ model role for inlineEdit * 🩹 various small updates * 🐛 fix openai image support * 🔖 update gradle version * 🍱 update jetbrains icon * 🐛 fix autocomplete in notebook cells * 🔥 remove unused media * 🔥 remove unused files * Fix schema to allow 'AUTODETECT' sentinel for model when provider is 'groq'. (#1203) * 🐛 small improvements * Fix issue with @codebase provider when n becomes odd due to a divide by 2 during the full text search portion of the query. (#1204) * 🐛 add skipLines * ✨ URLContextProvider * 🥅 improved error handling for codebase indexing * 🏷️ use official Git extension types * ➕ declare vscode.git extension dependency * ⚡️ use reranker for docs context provider * 🚸 Use templating in default customCommand * 🎨 use U+23CE * 🚸 disable autocomplete in commit message box * 🩹 add gems to default ignored paths * ⚡️ format markdown blocks as comments in .ipynb completions * 🐛 don't strip port in URL * 🐛 fix "gemini" provider spacing issues * 📦 update posthog version * CON-1067: Failed state seems to be toggling as intended * 🏷️ update types.ts * 🐛 fix copy/paste/cut behavior in VS Code notebooks * ✨ llama3 prompt template * Rework for proper initialization on start up * CON-1067 Clean-up * CON-1067 more clean-up * Add indexingNotLoaded state * CON-1067 communicate progress to frontend * 🐛 fix undefined prefix, suffix and language for `/edit` (#1216) * 🐛 add .bind to fix templating in systemMessage * CON-1067 clean up * 🐛 small improvements to autocomplete * Update DocsContextProvider.ts (#1217) I fixed a bug where you were sending the query variable (which holds the base URL of the doc) to the rerank method, and it made no sense to rerank the chunks based on a URL. So I changed it to extras.fullInput because it should rerank based on the user input, which should provide better results. * 📝 select-provider.md update * 🐛 fix merge errors * Nate/autocomplete-metrics (#1230) * ⚡️ use context.selectedCompletionInfo, deduplicate logs * ⚡️ don't reject if user keeps typing same as completion * ⚡️ vscode autocomplete edge cases * 🚧 WIP on vscode autocomplete * ⚡️ better bracket handlng * ⚡️ improved multi-line detection * Active file default context (#1231) * 🚸 include currently active file by default * 🚸 warn if non-autocomplete model being used * ✨ try hole filling template for gpt * 💄 ui for no context * ⚡️ leave out bottom of excessively large files * 🚧 experimenting with perplexity style streaming * 🐛 fix #1237 * 💚 fix type error * ⚡️ improve LSP usage in autocomplete * 🐛 fix content parsing regression in /edit * add PySide6 docs to preindexed docs (#1236) * CON-232 bring custom docs to top, alphabetize doc results, make scrol… (#1239) * CON-232 bring custom docs to top, alphabetize doc results, make scrollable * CON-232 cleanup --------- Co-authored-by: Justin Milner <jmilner@jmilner-lt2.deka.local> * CON-1067 condense some things * 🚚 [Auxiliary -> Continue] Sidebar * 🔊 log completion options in ~/.continue/sessions * CON-1067 wrong ret val fix * CON-1067: fixes from testing * ⚡️ filter out completions that are only punctuation/space * ⚡️ inject intellisense docs, no multi-line on comments * ⚡️ crawl type definitions for autocomplete * ⚡️ truncate function text * ⚡️ cache LSP calls * ⚡️ find recently edited ranges with perfect prefix match * 🐛 fix gif paths * ⚡️ bring back double new line stop words * 📌 add yarn lock files * 🐛 allow language keywords to be generated * 💄 toggle on help button * 🎨 defaultContext option * 🐛 fix lancedb bug by upgrading * 🐛 fix groq stop tokens * 🐛 preventDefault to avoid double paste * 🚸 don't repeatedly override cmd+J * 🧑💻 fix npm run test in core * 📝 change description * 🐛 silence Ollama invalid server state warning * ⚡️ more accurate getTerminalContents * ⚡️ make getTerminalContents more accurate * 🧑💻 use yarn instead of npm * 👷 fix yarn add --no-save in prepackge * 🐛 correctly read entire notebook file contents * ➕ import handlebars * 🔥 remove unnecessary migrations * ⚡️ improve /comment prompt * Add debug terminal context menu (#1261) * Add --no-dependencies to vsce package (#1255) This is not needed because we bundle first with esbuild, and vsce pack has issues with modern package managers. see: microsoft/vscode-vsce#421 (comment) * ui: change line decoration color to use vscode theme (#1253) * ui: change line decoration color to use vscode theme to give user a more consistent experience by letting the decoration color to user the color defined in the theme. * fix: incorrect color item should be line background not text background because the decoration is for the whole line * 🎨 refactor indexing state into a single object * CON-223 Correct diff streaming abort (#1263) Co-authored-by: Justin Milner <jmilner@jmilner-lt2.deka.local> * 📦 switch to pnpm (#1265) * 🎨 use pnpm instead of yarn * ➕ make dependencies explicit for pnpm * 🐛 add powershell to extension mapping, and default to ext * Add stream support for Bedrock Anthropic * 🎨 make llamatokenizer commonjs compatible * ➕ add esbuild optional deps * 🚚 rename vendor/node_modules -> modules * 🔖 update core version * 🐛 fixes for transformers.js compatibility * 🔖 update core version * 🎨 set modelPath in constructor * 🎨 fix transformers.js import * 🎨 eslint enforce import extensions * 🎨 require -> import * 🚸 notify user if not diff in /commit * 💄 Improve colors of the IntelliJ tool window icon (#1273) Without this fix, the continue icon sticks out from the other toolwindow icons, resulting in an inconsistent appearance of the whole IDE and creates a feeling that the continue plugin "doesn't fit, something must be broken". According to https://plugins.jetbrains.com/docs/intellij/icons.html#new-ui-icon-colors specific colors are needed to work nicely with dark and light modes. Bonus is that the active tool window icon color then changes automatically to white. Co-authored-by: Lukas Baron <LukasBaron@gmail.com> * ✨ send Bearer token to Ollama if apiKey set * 🐛 fix slash command bug * 🧑💻 add onnxruntime (--save-dev) for types * 🐛 don't apply to file when running code block in terminal * 🐛 avoid double paste * ✨ gpt-4o * 🎨 pass uniqueId to constructor * 🚸 focus without scrolling into vie * 🎨 refactoring for continue-proxy LLM (#1277) * 🐛 continue server client fixes * 🎨 refactor OpenAI _getHeaders * 🎨 pass ideSettings to llmFromDescription * ⚡️ improve add docstring command * 💚 ci updates * 🐛 fix repeated paste bug * 🐛 fix build script * 🩹 various small improvements * 📌 pin esbuild 0.17.19 * 🧑💻 pnpm i gui in prepackage * 🐛 show all diff changes in vscode * 🩹 getMetaKeyName * 🐛 fix reading of unopened ipynb files * ⚡️ gpt-4o system prompt * 💄 make font size configurable in config.json ui.fontSize * 🩹 properly dispose of diff handler * 🐛 fix indexing status display * ⚡️ context pruning * 🎨 update free trial models * fix: remove some backup files generated by pkg if present (#1287) * adjust toCopy (#1305) Co-authored-by: Justin Milner <jmilner@jmilner-lt2.deka.local> * Nate/prompt-file (#1308) * ✨ .prompt files * 🧑💻 back to npm : ( * 🎨 nicer dropdown icon * 🎨 full switch back to npm * 🧑💻 uninstall script for fresh start * 🎨 updated package-locks * 🔥 remove hello from continuerc.json * 🔥 remove example files * 🎨 update test prompt * 🎨 update prompt * 🎨 update test prompt * 👷 create out/node_modules in prepackage.js * Log prompt-tokens to devdb and show in 'My Usage' view (#1309) * Also log the number of prompt tokens to the dev-db * Show prompt tokens in 'My Usage' view * 🔥 remove console logs * add lm studio tab-autocomplete walkthrough (#1298) * 📝 update autocomplete LM Studio docs * 💚 fix prepackage.js * ⬆️ upgrade lancedb version * 🚸 make it easier to continue past trial * 🚸 improve model setup process * 📌 update package-lock.jsons * 🐛 fix prompt file loading bug * docs: add setup guide for OpenRouter (#1284) * Update preIndexedDocs.ts (#1292) Add Bootstrap and Alpine.js as pre indexed docs. * add toString (#1324) * add toString * Fix indentation --------- Co-authored-by: Justin Milner <jmilner@jmilner-lt2.deka.local> * don't overwrite all models in onboarding * 🔧 override headers with custom headers * ✨ allow overwriting slash command description * feature flag (#1327) * ➕ feature flags dependency * 🎨 make getHeaders awaitable * 🔒️ token count for abuse monitoring * 👷 remove win32-arm64 target * Update build.js (#1330) Fix error: EBUSY: resource busy or locked, rmdir '...\continue\binary\tmp\continue-node_modules-lancedb' * 📌 pin onnxruntime version to match transformers.js * 🎨 transformers cleanup, extensionVersion header * 🔥 remove lingering pnpm * 🎨 update default models * 🎨 update defaults * 👷 fix version in build post-check --------- Co-authored-by: Maxime Brunet <max@brnt.mx> Co-authored-by: Peter Zaback <pzaback@gmail.com> Co-authored-by: Jose Vega <bloguea.y.gana@gmail.com> Co-authored-by: Nejc Habjan <hab.nejc@gmail.com> Co-authored-by: Chad Yates <cyates@dynfxdigital.com> Co-authored-by: Justin Milner <jmilner@jmilner-lt2.deka.local> Co-authored-by: 小颚虫 <123357481+5eqn@users.noreply.github.com> Co-authored-by: 5eqn <491100866@qq.com> Co-authored-by: Pixel <54180211+pixelsortr@users.noreply.github.com> Co-authored-by: Justin Milner <42585006+justinmilner1@users.noreply.github.com> Co-authored-by: Devin Gould <djgould0628@gmail.com> Co-authored-by: Dipta Mahardhika <146386738+d-mahard@users.noreply.github.com> Co-authored-by: Ruben Kostandyan <kostard@amazon.com> Co-authored-by: tnglemongrass <113173292+tnglemongrass@users.noreply.github.com> Co-authored-by: Lukas Baron <LukasBaron@gmail.com> Co-authored-by: Fernando <fernando.sanchez.jr@gmail.com> Co-authored-by: Tijs Zwinkels <tijs@tinkertank.eu> Co-authored-by: DJ Johnson <mr.demarcus.johnson@gmail.com> Co-authored-by: sam <1211977+sambarnes@users.noreply.github.com>
1053 lines
29 KiB
TypeScript
1053 lines
29 KiB
TypeScript
/*
|
|
This is the data that populates the model selection page.
|
|
*/
|
|
|
|
import { ModelName, ModelProvider } from "core";
|
|
import _ from "lodash";
|
|
|
|
export function updatedObj(old: any, pathToValue: { [key: string]: any }) {
|
|
const newObject = _.cloneDeep(old);
|
|
for (const key in pathToValue) {
|
|
if (typeof pathToValue[key] === "function") {
|
|
_.updateWith(newObject, key, pathToValue[key]);
|
|
} else {
|
|
_.updateWith(newObject, key, (__) => pathToValue[key]);
|
|
}
|
|
}
|
|
return newObject;
|
|
}
|
|
|
|
export enum ModelProviderTag {
|
|
"Requires API Key" = "Requires API Key",
|
|
"Local" = "Local",
|
|
"Free" = "Free",
|
|
"Open-Source" = "Open-Source",
|
|
}
|
|
|
|
export const MODEL_PROVIDER_TAG_COLORS: any = {};
|
|
MODEL_PROVIDER_TAG_COLORS[ModelProviderTag["Requires API Key"]] = "#FF0000";
|
|
MODEL_PROVIDER_TAG_COLORS[ModelProviderTag["Local"]] = "#00bb00";
|
|
MODEL_PROVIDER_TAG_COLORS[ModelProviderTag["Open-Source"]] = "#0033FF";
|
|
MODEL_PROVIDER_TAG_COLORS[ModelProviderTag["Free"]] = "#ffff00";
|
|
|
|
export enum CollectInputType {
|
|
"text" = "text",
|
|
"number" = "number",
|
|
"range" = "range",
|
|
}
|
|
|
|
export interface InputDescriptor {
|
|
inputType: CollectInputType;
|
|
key: string;
|
|
label: string;
|
|
placeholder?: string;
|
|
defaultValue?: string | number;
|
|
min?: number;
|
|
max?: number;
|
|
step?: number;
|
|
options?: string[];
|
|
required?: boolean;
|
|
description?: string;
|
|
[key: string]: any;
|
|
}
|
|
|
|
const contextLengthInput: InputDescriptor = {
|
|
inputType: CollectInputType.number,
|
|
key: "contextLength",
|
|
label: "Context Length",
|
|
defaultValue: undefined,
|
|
required: false,
|
|
};
|
|
const temperatureInput: InputDescriptor = {
|
|
inputType: CollectInputType.number,
|
|
key: "completionOptions.temperature",
|
|
label: "Temperature",
|
|
defaultValue: undefined,
|
|
required: false,
|
|
min: 0.0,
|
|
max: 1.0,
|
|
step: 0.01,
|
|
};
|
|
const topPInput: InputDescriptor = {
|
|
inputType: CollectInputType.number,
|
|
key: "completionOptions.topP",
|
|
label: "Top-P",
|
|
defaultValue: undefined,
|
|
required: false,
|
|
min: 0,
|
|
max: 1,
|
|
step: 0.01,
|
|
};
|
|
const topKInput: InputDescriptor = {
|
|
inputType: CollectInputType.number,
|
|
key: "completionOptions.topK",
|
|
label: "Top-K",
|
|
defaultValue: undefined,
|
|
required: false,
|
|
min: 0,
|
|
step: 1,
|
|
};
|
|
const presencePenaltyInput: InputDescriptor = {
|
|
inputType: CollectInputType.number,
|
|
key: "completionOptions.presencePenalty",
|
|
label: "Presence Penalty",
|
|
defaultValue: undefined,
|
|
required: false,
|
|
min: 0,
|
|
max: 1,
|
|
step: 0.01,
|
|
};
|
|
const FrequencyPenaltyInput: InputDescriptor = {
|
|
inputType: CollectInputType.number,
|
|
key: "completionOptions.frequencyPenalty",
|
|
label: "Frequency Penalty",
|
|
defaultValue: undefined,
|
|
required: false,
|
|
min: 0,
|
|
max: 1,
|
|
step: 0.01,
|
|
};
|
|
const completionParamsInputs = [
|
|
contextLengthInput,
|
|
temperatureInput,
|
|
topKInput,
|
|
topPInput,
|
|
presencePenaltyInput,
|
|
FrequencyPenaltyInput,
|
|
];
|
|
|
|
const apiBaseInput: InputDescriptor = {
|
|
inputType: CollectInputType.text,
|
|
key: "apiBase",
|
|
label: "API Base",
|
|
placeholder: "e.g. http://localhost:8080",
|
|
required: false,
|
|
};
|
|
|
|
export interface ModelInfo {
|
|
title: string;
|
|
provider: ModelProvider;
|
|
description: string;
|
|
longDescription?: string;
|
|
icon?: string;
|
|
tags?: ModelProviderTag[];
|
|
packages: ModelPackage[];
|
|
params?: any;
|
|
collectInputFor?: InputDescriptor[];
|
|
refPage?: string;
|
|
}
|
|
|
|
// A dimension is like parameter count - 7b, 13b, 34b, etc.
|
|
// You would set options to the field that should be changed for that option in the params field of ModelPackage
|
|
export interface PackageDimension {
|
|
name: string;
|
|
description: string;
|
|
options: { [key: string]: { [key: string]: any } };
|
|
}
|
|
|
|
export interface ModelPackage {
|
|
collectInputFor?: InputDescriptor[];
|
|
description: string;
|
|
title: string;
|
|
refUrl?: string;
|
|
tags?: ModelProviderTag[];
|
|
icon?: string;
|
|
params: {
|
|
model: ModelName;
|
|
templateMessages?: string;
|
|
contextLength: number;
|
|
stopTokens?: string[];
|
|
promptTemplates?: any;
|
|
replace?: [string, string][];
|
|
[key: string]: any;
|
|
};
|
|
dimensions?: PackageDimension[];
|
|
providerOptions?: string[];
|
|
}
|
|
|
|
const codeLlamaInstruct: ModelPackage = {
|
|
title: "CodeLlama Instruct",
|
|
description:
|
|
"A model from Meta, fine-tuned for code generation and conversation",
|
|
refUrl: "",
|
|
params: {
|
|
title: "CodeLlama-7b",
|
|
model: "codellama-7b",
|
|
contextLength: 4096,
|
|
},
|
|
icon: "meta.png",
|
|
dimensions: [
|
|
{
|
|
name: "Parameter Count",
|
|
description: "The number of parameters in the model",
|
|
options: {
|
|
"7b": {
|
|
model: "codellama-7b",
|
|
title: "CodeLlama-7b",
|
|
},
|
|
"13b": {
|
|
model: "codellama-13b",
|
|
title: "CodeLlama-13b",
|
|
},
|
|
"34b": {
|
|
model: "codellama-34b",
|
|
title: "CodeLlama-34b",
|
|
},
|
|
"70b": {
|
|
model: "codellama-70b",
|
|
title: "Codellama-70b",
|
|
},
|
|
},
|
|
},
|
|
],
|
|
providerOptions: ["ollama", "lmstudio", "together", "llamacpp", "replicate"],
|
|
};
|
|
|
|
const codellama70bTrial: ModelPackage = {
|
|
title: "Codellama 70b (Free Trial)",
|
|
description:
|
|
"The best code model from Meta, fine-tuned for code generation and conversation",
|
|
refUrl: "",
|
|
params: {
|
|
title: "CodeLlama-70b",
|
|
model: "codellama-70b",
|
|
contextLength: 4096,
|
|
},
|
|
icon: "meta.png",
|
|
providerOptions: ["freetrial"],
|
|
};
|
|
|
|
const mixtralTrial: ModelPackage = {
|
|
title: "Mixtral (Free Trial)",
|
|
description:
|
|
"Mixtral 8x7b is a mixture of experts model created by Mistral AI",
|
|
refUrl: "",
|
|
params: {
|
|
title: "Mixtral",
|
|
model: "mistral-8x7b",
|
|
contextLength: 4096,
|
|
},
|
|
icon: "mistral.png",
|
|
providerOptions: ["freetrial", "groq"],
|
|
};
|
|
|
|
const llama38bChat: ModelPackage = {
|
|
title: "Llama3 8b",
|
|
description: "The latest Llama model from Meta, fine-tuned for chat",
|
|
refUrl: "",
|
|
params: {
|
|
title: "Llama3-8b",
|
|
model: "llama3-8b",
|
|
contextLength: 8192,
|
|
},
|
|
icon: "meta.png",
|
|
providerOptions: ["groq"],
|
|
};
|
|
|
|
const llama370bChat: ModelPackage = {
|
|
title: "Llama3 70b Chat",
|
|
description: "The latest Llama model from Meta, fine-tuned for chat",
|
|
refUrl: "",
|
|
params: {
|
|
title: "Llama3-70b",
|
|
model: "llama3-70b",
|
|
contextLength: 8192,
|
|
},
|
|
icon: "meta.png",
|
|
providerOptions: ["groq"],
|
|
};
|
|
|
|
const llama270bChat: ModelPackage = {
|
|
title: "Llama2 70b Chat",
|
|
description: "The latest Llama model from Meta, fine-tuned for chat",
|
|
refUrl: "",
|
|
params: {
|
|
title: "Llama2-70b",
|
|
model: "llama2-70b",
|
|
contextLength: 4096,
|
|
},
|
|
icon: "meta.png",
|
|
providerOptions: ["groq"],
|
|
};
|
|
|
|
const llama3Chat: ModelPackage = {
|
|
title: "Llama3 Chat",
|
|
description: "The latest model from Meta, fine-tuned for chat",
|
|
refUrl: "",
|
|
params: {
|
|
title: "Llama3-8b",
|
|
model: "llama3-8b",
|
|
contextLength: 8192,
|
|
},
|
|
icon: "meta.png",
|
|
dimensions: [
|
|
{
|
|
name: "Parameter Count",
|
|
description: "The number of parameters in the model",
|
|
options: {
|
|
"8b": {
|
|
model: "llama3-8b",
|
|
title: "Llama3-8b",
|
|
},
|
|
"70b": {
|
|
model: "llama3-70b",
|
|
title: "Llama3-70b",
|
|
},
|
|
},
|
|
},
|
|
],
|
|
providerOptions: ["ollama", "lmstudio", "together", "llamacpp", "replicate"],
|
|
};
|
|
|
|
const wizardCoder: ModelPackage = {
|
|
title: "WizardCoder",
|
|
description:
|
|
"A CodeLlama-based code generation model from WizardLM, focused on Python",
|
|
refUrl: "",
|
|
params: {
|
|
title: "WizardCoder-7b",
|
|
model: "wizardcoder-7b",
|
|
contextLength: 4096,
|
|
},
|
|
icon: "wizardlm.png",
|
|
dimensions: [
|
|
{
|
|
name: "Parameter Count",
|
|
description: "The number of parameters in the model",
|
|
options: {
|
|
"7b": {
|
|
model: "wizardcoder-7b",
|
|
title: "WizardCoder-7b",
|
|
},
|
|
"13b": {
|
|
model: "wizardcoder-13b",
|
|
title: "WizardCoder-13b",
|
|
},
|
|
"34b": {
|
|
model: "wizardcoder-34b",
|
|
title: "WizardCoder-34b",
|
|
},
|
|
},
|
|
},
|
|
],
|
|
providerOptions: ["ollama", "lmstudio", "llamacpp", "replicate"],
|
|
};
|
|
|
|
const phindCodeLlama: ModelPackage = {
|
|
title: "Phind CodeLlama (34b)",
|
|
description: "A finetune of CodeLlama by Phind",
|
|
icon: "meta.png",
|
|
params: {
|
|
title: "Phind CodeLlama",
|
|
model: "phind-codellama-34b",
|
|
contextLength: 4096,
|
|
},
|
|
providerOptions: ["ollama", "lmstudio", "llamacpp", "replicate", "freetrial"],
|
|
};
|
|
|
|
const mistral: ModelPackage = {
|
|
title: "Mistral (7b)",
|
|
description:
|
|
"A 7b parameter base model created by Mistral AI, very competent for code generation and other tasks",
|
|
params: {
|
|
title: "Mistral",
|
|
model: "mistral-7b",
|
|
contextLength: 4096,
|
|
},
|
|
dimensions: [
|
|
{
|
|
name: "Parameter Count",
|
|
description: "The number of parameters in the model",
|
|
options: {
|
|
"7b": {
|
|
model: "mistral-7b",
|
|
title: "Mistral-7b",
|
|
},
|
|
"8x7b (MoE)": {
|
|
model: "mistral-8x7b",
|
|
title: "Mixtral",
|
|
},
|
|
},
|
|
},
|
|
],
|
|
icon: "mistral.png",
|
|
providerOptions: ["ollama", "lmstudio", "together", "llamacpp", "replicate"],
|
|
};
|
|
|
|
const mistralTiny: ModelPackage = {
|
|
title: "Mistral Tiny (7b)",
|
|
description: "An 7b parameter model created by Mistral AI",
|
|
params: {
|
|
title: "Mistral",
|
|
model: "mistral-tiny",
|
|
contextLength: 4096,
|
|
},
|
|
icon: "mistral.png",
|
|
providerOptions: [
|
|
"ollama",
|
|
"lmstudio",
|
|
"together",
|
|
"llamacpp",
|
|
"replicate",
|
|
"mistral",
|
|
],
|
|
};
|
|
const mistralSmall: ModelPackage = {
|
|
title: "Mixtral (8x7b)",
|
|
description:
|
|
"An 8x7b parameter Mixture of Experts model created by Mistral AI (a.k.a Mistral Small)",
|
|
params: {
|
|
title: "Mixtral",
|
|
model: "mistral-small",
|
|
contextLength: 4096,
|
|
},
|
|
icon: "mistral.png",
|
|
providerOptions: [
|
|
"ollama",
|
|
"lmstudio",
|
|
"together",
|
|
"llamacpp",
|
|
"replicate",
|
|
"mistral",
|
|
],
|
|
};
|
|
const mistralMedium: ModelPackage = {
|
|
title: "Mistral Medium",
|
|
description: "A highly capable model created by Mistral AI",
|
|
params: {
|
|
title: "Mistral Medium",
|
|
model: "mistral-medium",
|
|
contextLength: 4096,
|
|
},
|
|
icon: "mistral.png",
|
|
providerOptions: [
|
|
"ollama",
|
|
"lmstudio",
|
|
"together",
|
|
"llamacpp",
|
|
"replicate",
|
|
"mistral",
|
|
],
|
|
};
|
|
|
|
const geminiPro: ModelPackage = {
|
|
title: "Gemini Pro",
|
|
description: "A highly capable model created by Google DeepMind",
|
|
params: {
|
|
title: "Gemini Pro",
|
|
model: "gemini-pro",
|
|
contextLength: 32_000,
|
|
apiKey: "<API_KEY>",
|
|
},
|
|
icon: "gemini.png",
|
|
providerOptions: ["gemini"],
|
|
};
|
|
const gemini15Pro: ModelPackage = {
|
|
title: "Gemini 1.5 Pro",
|
|
description: "A newer Gemini model with 1M token context length",
|
|
params: {
|
|
title: "Gemini 1.5 Pro",
|
|
model: "gemini-1.5-pro-latest",
|
|
contextLength: 1_000_000,
|
|
apiKey: "<API_KEY>",
|
|
},
|
|
icon: "gemini.png",
|
|
providerOptions: ["gemini", "freetrial"],
|
|
};
|
|
|
|
const deepseek: ModelPackage = {
|
|
title: "DeepSeek-Coder",
|
|
description:
|
|
"A model pre-trained on 2 trillion tokens including 80+ programming languages and a repo-level corpus.",
|
|
params: {
|
|
title: "DeepSeek-7b",
|
|
model: "deepseek-7b",
|
|
contextLength: 4096,
|
|
},
|
|
icon: "deepseek.png",
|
|
dimensions: [
|
|
{
|
|
name: "Parameter Count",
|
|
description: "The number of parameters in the model",
|
|
options: {
|
|
"1b": {
|
|
model: "deepseek-1b",
|
|
title: "DeepSeek-1b",
|
|
},
|
|
"7b": {
|
|
model: "deepseek-7b",
|
|
title: "DeepSeek-7b",
|
|
},
|
|
"33b": {
|
|
model: "deepseek-33b",
|
|
title: "DeepSeek-33b",
|
|
},
|
|
},
|
|
},
|
|
],
|
|
providerOptions: ["ollama", "lmstudio", "llamacpp"],
|
|
};
|
|
|
|
const commandR: ModelPackage = {
|
|
title: "Command R",
|
|
description:
|
|
"Command R is a scalable generative model targeting RAG and Tool Use to enable production-scale AI for enterprise.",
|
|
params: {
|
|
model: "command-r",
|
|
contextLength: 128_000,
|
|
title: "Command R",
|
|
apiKey: "",
|
|
},
|
|
providerOptions: ["cohere"],
|
|
icon: "cohere.png",
|
|
};
|
|
|
|
const commandRPlus: ModelPackage = {
|
|
title: "Command R+",
|
|
description:
|
|
"Command R+ is a state-of-the-art RAG-optimized model designed to tackle enterprise-grade workloads",
|
|
params: {
|
|
model: "command-r-plus",
|
|
contextLength: 128_000,
|
|
title: "Command R+",
|
|
apiKey: "",
|
|
},
|
|
providerOptions: ["cohere"],
|
|
icon: "cohere.png",
|
|
};
|
|
|
|
const osModels = [
|
|
llama3Chat,
|
|
deepseek,
|
|
wizardCoder,
|
|
codeLlamaInstruct,
|
|
mistral,
|
|
phindCodeLlama,
|
|
];
|
|
|
|
const gpt4: ModelPackage = {
|
|
title: "GPT-4",
|
|
description: "The most powerful model from OpenAI",
|
|
params: {
|
|
model: "gpt-4",
|
|
contextLength: 8096,
|
|
title: "GPT-4",
|
|
},
|
|
providerOptions: ["openai", "freetrial"],
|
|
icon: "openai.png",
|
|
};
|
|
|
|
const gpt4turbo: ModelPackage = {
|
|
title: "GPT-4 Turbo",
|
|
description:
|
|
"A faster and more capable version of GPT-4 with longer context length and image support",
|
|
params: {
|
|
model: "gpt-4-turbo",
|
|
contextLength: 128_000,
|
|
title: "GPT-4 Turbo",
|
|
},
|
|
providerOptions: ["openai"],
|
|
icon: "openai.png",
|
|
};
|
|
|
|
const gpt4o: ModelPackage = {
|
|
title: "GPT-4o",
|
|
description:
|
|
"An even faster version of GPT-4 with stronger multi-modal capabilities.",
|
|
params: {
|
|
model: "gpt-4o",
|
|
contextLength: 128_000,
|
|
title: "GPT-4o",
|
|
systemMessage:
|
|
"You are an expert software developer. You give helpful and concise responses.",
|
|
},
|
|
providerOptions: ["openai", "freetrial"],
|
|
icon: "openai.png",
|
|
};
|
|
|
|
const gpt35turbo: ModelPackage = {
|
|
title: "GPT-3.5-Turbo",
|
|
description:
|
|
"A faster, cheaper OpenAI model with slightly lower capabilities",
|
|
params: {
|
|
model: "gpt-3.5-turbo",
|
|
contextLength: 8096,
|
|
title: "GPT-3.5-Turbo",
|
|
},
|
|
providerOptions: ["openai", "freetrial"],
|
|
icon: "openai.png",
|
|
};
|
|
|
|
const claude2: ModelPackage = {
|
|
title: "Claude 2",
|
|
description: "A highly capable model with a 100k context length",
|
|
params: {
|
|
model: "claude-2.1",
|
|
contextLength: 100_000,
|
|
title: "Claude 2",
|
|
apiKey: "",
|
|
},
|
|
providerOptions: ["anthropic"],
|
|
icon: "anthropic.png",
|
|
};
|
|
|
|
const claude3Opus: ModelPackage = {
|
|
title: "Claude 3 Opus",
|
|
description:
|
|
"Anthropic's most capable model, beating GPT-4 on many benchmarks",
|
|
params: {
|
|
model: "claude-3-opus-20240229",
|
|
contextLength: 200_000,
|
|
title: "Claude 3 Opus",
|
|
apiKey: "",
|
|
},
|
|
providerOptions: ["anthropic", "freetrial"],
|
|
icon: "anthropic.png",
|
|
};
|
|
|
|
const claude3Sonnet: ModelPackage = {
|
|
title: "Claude 3 Sonnet",
|
|
description:
|
|
"The second most capable model in the Claude 3 series: ideal balance of intelligence and speed",
|
|
params: {
|
|
model: "claude-3-sonnet-20240229",
|
|
contextLength: 200_000,
|
|
title: "Claude 3 Sonnet",
|
|
apiKey: "",
|
|
},
|
|
providerOptions: ["anthropic", "freetrial"],
|
|
icon: "anthropic.png",
|
|
};
|
|
|
|
const claude3Haiku: ModelPackage = {
|
|
title: "Claude 3 Haiku",
|
|
description:
|
|
"The third most capable model in the Claude 3 series: fastest and most compact model for near-instant responsiveness",
|
|
params: {
|
|
model: "claude-3-haiku-20240307",
|
|
contextLength: 200_000,
|
|
title: "Claude 3 Haiku",
|
|
apiKey: "",
|
|
},
|
|
providerOptions: ["anthropic", "freetrial"],
|
|
icon: "anthropic.png",
|
|
};
|
|
|
|
const AUTODETECT: ModelPackage = {
|
|
title: "Autodetect",
|
|
description:
|
|
"Automatically populate the model list by calling the /models endpoint of the server",
|
|
params: {
|
|
model: "AUTODETECT",
|
|
} as any,
|
|
providerOptions: [],
|
|
};
|
|
|
|
export const MODEL_INFO: (ModelPackage | string)[] = [
|
|
"OpenAI",
|
|
gpt4o,
|
|
gpt4turbo,
|
|
// gpt4,
|
|
gpt35turbo,
|
|
"Anthropic",
|
|
claude3Opus,
|
|
claude3Sonnet,
|
|
claude3Haiku,
|
|
// claude2,
|
|
"Cohere",
|
|
commandR,
|
|
commandRPlus,
|
|
"Gemini",
|
|
gemini15Pro,
|
|
geminiPro,
|
|
"Open Source",
|
|
llama3Chat,
|
|
deepseek,
|
|
mistral,
|
|
// wizardCoder,
|
|
// codeLlamaInstruct,
|
|
// phindCodeLlama,
|
|
];
|
|
|
|
export const PROVIDER_INFO: { [key: string]: ModelInfo } = {
|
|
openai: {
|
|
title: "OpenAI",
|
|
provider: "openai",
|
|
description: "Use gpt-4, gpt-3.5-turbo, or any other OpenAI model",
|
|
longDescription:
|
|
"Use gpt-4, gpt-3.5-turbo, or any other OpenAI model. See [here](https://openai.com/product#made-for-developers) to obtain an API key.",
|
|
icon: "openai.png",
|
|
tags: [ModelProviderTag["Requires API Key"]],
|
|
packages: [
|
|
gpt4o,
|
|
gpt4turbo,
|
|
gpt35turbo,
|
|
// gpt4,
|
|
{
|
|
...AUTODETECT,
|
|
params: {
|
|
...AUTODETECT.params,
|
|
title: "OpenAI",
|
|
},
|
|
},
|
|
],
|
|
collectInputFor: [
|
|
{
|
|
inputType: CollectInputType.text,
|
|
key: "apiKey",
|
|
label: "API Key",
|
|
placeholder: "Enter your OpenAI API key",
|
|
required: true,
|
|
},
|
|
...completionParamsInputs,
|
|
],
|
|
},
|
|
anthropic: {
|
|
title: "Anthropic",
|
|
provider: "anthropic",
|
|
refPage: "anthropicllm",
|
|
description:
|
|
"Anthropic builds state-of-the-art models with large context length and high recall",
|
|
icon: "anthropic.png",
|
|
tags: [ModelProviderTag["Requires API Key"]],
|
|
longDescription:
|
|
"To get started with Anthropic models, you first need to sign up for the open beta [here](https://claude.ai/login) to obtain an API key.",
|
|
collectInputFor: [
|
|
{
|
|
inputType: CollectInputType.text,
|
|
key: "apiKey",
|
|
label: "API Key",
|
|
placeholder: "Enter your Anthropic API key",
|
|
required: true,
|
|
},
|
|
...completionParamsInputs,
|
|
{
|
|
...contextLengthInput,
|
|
defaultValue: 100_000,
|
|
},
|
|
],
|
|
packages: [
|
|
claude3Opus,
|
|
claude3Sonnet,
|
|
claude3Haiku,
|
|
// claude2
|
|
],
|
|
},
|
|
cohere: {
|
|
title: "Cohere",
|
|
provider: "cohere",
|
|
refPage: "cohere",
|
|
description:
|
|
"Optimized for enterprise generative AI, search and discovery, and advanced retrieval.",
|
|
icon: "cohere.png",
|
|
tags: [ModelProviderTag["Requires API Key"]],
|
|
longDescription:
|
|
"To use Cohere, visit the [Cohere dashboard](https://dashboard.cohere.com/api-keys) to create an API key.",
|
|
collectInputFor: [
|
|
{
|
|
inputType: CollectInputType.text,
|
|
key: "apiKey",
|
|
label: "API Key",
|
|
placeholder: "Enter your Cohere API key",
|
|
required: true,
|
|
},
|
|
...completionParamsInputs,
|
|
],
|
|
packages: [commandR, commandRPlus],
|
|
},
|
|
ollama: {
|
|
title: "Ollama",
|
|
provider: "ollama",
|
|
description:
|
|
"One of the fastest ways to get started with local models on Mac, Linux, or Windows",
|
|
longDescription:
|
|
'To get started with Ollama, follow these steps:\n1. Download from [ollama.ai](https://ollama.ai/) and open the application\n2. Open a terminal and run `ollama run <MODEL_NAME>`. Example model names are `codellama:7b-instruct` or `llama2:7b-text`. You can find the full list [here](https://ollama.ai/library).\n3. Make sure that the model name used in step 2 is the same as the one in config.py (e.g. `model="codellama:7b-instruct"`)\n4. Once the model has finished downloading, you can start asking questions through Continue.',
|
|
icon: "ollama.png",
|
|
tags: [ModelProviderTag["Local"], ModelProviderTag["Open-Source"]],
|
|
packages: [
|
|
{
|
|
...AUTODETECT,
|
|
params: {
|
|
...AUTODETECT.params,
|
|
title: "Ollama",
|
|
},
|
|
},
|
|
...osModels,
|
|
],
|
|
collectInputFor: [
|
|
...completionParamsInputs,
|
|
{ ...apiBaseInput, defaultValue: "http://localhost:11434" },
|
|
],
|
|
},
|
|
together: {
|
|
title: "TogetherAI",
|
|
provider: "together",
|
|
refPage: "togetherllm",
|
|
description:
|
|
"Use the TogetherAI API for extremely fast streaming of open-source models",
|
|
icon: "together.png",
|
|
longDescription: `Together is a hosted service that provides extremely fast streaming of open-source language models. To get started with Together:\n1. Obtain an API key from [here](https://together.ai)\n2. Paste below\n3. Select a model preset`,
|
|
tags: [
|
|
ModelProviderTag["Requires API Key"],
|
|
ModelProviderTag["Open-Source"],
|
|
],
|
|
params: {
|
|
apiKey: "",
|
|
},
|
|
collectInputFor: [
|
|
{
|
|
inputType: CollectInputType.text,
|
|
key: "apiKey",
|
|
label: "API Key",
|
|
placeholder: "Enter your TogetherAI API key",
|
|
required: true,
|
|
},
|
|
...completionParamsInputs,
|
|
],
|
|
packages: [llama3Chat, codeLlamaInstruct, mistral].map((p) => {
|
|
p.params.contextLength = 4096;
|
|
return p;
|
|
}),
|
|
},
|
|
groq: {
|
|
title: "Groq",
|
|
provider: "groq",
|
|
icon: "groq.png",
|
|
description:
|
|
"Groq is the fastest LLM provider by a wide margin, using 'LPUs' to serve open-source models at blazing speed.",
|
|
longDescription:
|
|
"To get started with Groq, obtain an API key from their website [here](https://wow.groq.com/).",
|
|
tags: [
|
|
ModelProviderTag["Requires API Key"],
|
|
ModelProviderTag["Open-Source"],
|
|
],
|
|
collectInputFor: [
|
|
{
|
|
inputType: CollectInputType.text,
|
|
key: "apiKey",
|
|
label: "API Key",
|
|
placeholder: "Enter your Groq API key",
|
|
required: true,
|
|
},
|
|
],
|
|
packages: [
|
|
llama370bChat,
|
|
llama38bChat,
|
|
{ ...mixtralTrial, title: "Mixtral" },
|
|
llama270bChat,
|
|
{
|
|
...AUTODETECT,
|
|
params: {
|
|
...AUTODETECT.params,
|
|
title: "Groq",
|
|
},
|
|
},
|
|
,
|
|
],
|
|
},
|
|
gemini: {
|
|
title: "Google Gemini API",
|
|
provider: "gemini",
|
|
refPage: "geminiapi",
|
|
description:
|
|
"Try out Google's state-of-the-art Gemini model from their API.",
|
|
longDescription: `To get started with Google Gemini API, obtain your API key from [here](https://ai.google.dev/tutorials/workspace_auth_quickstart) and paste it below.`,
|
|
icon: "gemini.png",
|
|
tags: [ModelProviderTag["Requires API Key"]],
|
|
collectInputFor: [
|
|
{
|
|
inputType: CollectInputType.text,
|
|
key: "apiKey",
|
|
label: "API Key",
|
|
placeholder: "Enter your Gemini API key",
|
|
required: true,
|
|
},
|
|
],
|
|
packages: [gemini15Pro, geminiPro],
|
|
},
|
|
mistral: {
|
|
title: "Mistral API",
|
|
provider: "mistral",
|
|
description:
|
|
"The Mistral API provides hosted access to their models, including Mistral-7b, Mixtral, and the very capable mistral-medium",
|
|
icon: "mistral.png",
|
|
longDescription: `To get access to the Mistral API, obtain your API key from the [Mistral platform](https://docs.mistral.ai/)`,
|
|
tags: [
|
|
ModelProviderTag["Requires API Key"],
|
|
ModelProviderTag["Open-Source"],
|
|
],
|
|
params: {
|
|
apiKey: "",
|
|
},
|
|
collectInputFor: [
|
|
{
|
|
inputType: CollectInputType.text,
|
|
key: "apiKey",
|
|
label: "API Key",
|
|
placeholder: "Enter your Mistral API key",
|
|
required: true,
|
|
},
|
|
...completionParamsInputs,
|
|
],
|
|
packages: [mistralTiny, mistralSmall, mistralMedium].map((p) => {
|
|
p.params.contextLength = 4096;
|
|
return p;
|
|
}),
|
|
},
|
|
lmstudio: {
|
|
title: "LM Studio",
|
|
provider: "lmstudio",
|
|
description:
|
|
"One of the fastest ways to get started with local models on Mac or Windows",
|
|
longDescription:
|
|
"LMStudio provides a professional and well-designed GUI for exploring, configuring, and serving LLMs. It is available on both Mac and Windows. To get started:\n1. Download from [lmstudio.ai](https://lmstudio.ai/) and open the application\n2. Search for and download the desired model from the home screen of LMStudio.\n3. In the left-bar, click the '<->' icon to open the Local Inference Server and press 'Start Server'.\n4. Once your model is loaded and the server has started, you can begin using Continue.",
|
|
icon: "lmstudio.png",
|
|
tags: [ModelProviderTag["Local"], ModelProviderTag["Open-Source"]],
|
|
params: {
|
|
apiBase: "http://localhost:1234/v1/",
|
|
},
|
|
packages: [
|
|
{
|
|
...AUTODETECT,
|
|
params: {
|
|
...AUTODETECT.params,
|
|
title: "LM Studio",
|
|
},
|
|
},
|
|
...osModels,
|
|
],
|
|
collectInputFor: [...completionParamsInputs],
|
|
},
|
|
llamafile: {
|
|
title: "llamafile",
|
|
provider: "llamafile",
|
|
icon: "llamafile.png",
|
|
description:
|
|
"llamafiles are a self-contained binary to run an open-source LLM",
|
|
longDescription: `To get started with llamafiles, find and download a binary on their [GitHub repo](https://github.com/Mozilla-Ocho/llamafile#binary-instructions). Then run it with the following command:\n\n\`\`\`shell\nchmod +x ./llamafile\n./llamafile\n\`\`\``,
|
|
tags: [ModelProviderTag["Local"], ModelProviderTag["Open-Source"]],
|
|
packages: osModels,
|
|
collectInputFor: [...completionParamsInputs],
|
|
},
|
|
replicate: {
|
|
title: "Replicate",
|
|
provider: "replicate",
|
|
refPage: "replicatellm",
|
|
description: "Use the Replicate API to run open-source models",
|
|
longDescription: `Replicate is a hosted service that makes it easy to run ML models. To get started with Replicate:\n1. Obtain an API key from [here](https://replicate.com)\n2. Paste below\n3. Select a model preset`,
|
|
params: {
|
|
apiKey: "",
|
|
},
|
|
collectInputFor: [
|
|
{
|
|
inputType: CollectInputType.text,
|
|
key: "apiKey",
|
|
label: "API Key",
|
|
placeholder: "Enter your Replicate API key",
|
|
required: true,
|
|
},
|
|
...completionParamsInputs,
|
|
],
|
|
icon: "replicate.png",
|
|
tags: [
|
|
ModelProviderTag["Requires API Key"],
|
|
ModelProviderTag["Open-Source"],
|
|
],
|
|
packages: [llama3Chat, codeLlamaInstruct, wizardCoder, mistral],
|
|
},
|
|
llamacpp: {
|
|
title: "llama.cpp",
|
|
provider: "llama.cpp",
|
|
refPage: "llamacpp",
|
|
description: "If you are running the llama.cpp server from source",
|
|
longDescription: `llama.cpp comes with a [built-in server](https://github.com/ggerganov/llama.cpp/tree/master/examples/server#llamacppexampleserver) that can be run from source. To do this:
|
|
|
|
1. Clone the repository with \`git clone https://github.com/ggerganov/llama.cpp\`.
|
|
2. \`cd llama.cpp\`
|
|
3. Run \`make\` to build the server.
|
|
4. Download the model you'd like to use and place it in the \`llama.cpp/models\` directory (the best place to find models is [The Bloke on HuggingFace](https://huggingface.co/TheBloke))
|
|
5. Run the llama.cpp server with the command below (replacing with the model you downloaded):
|
|
|
|
\`\`\`shell
|
|
.\\server.exe -c 4096 --host 0.0.0.0 -t 16 --mlock -m models/codellama-7b-instruct.Q8_0.gguf
|
|
\`\`\`
|
|
|
|
After it's up and running, you can start using Continue.`,
|
|
icon: "llamacpp.png",
|
|
tags: [ModelProviderTag.Local, ModelProviderTag["Open-Source"]],
|
|
packages: osModels,
|
|
collectInputFor: [...completionParamsInputs],
|
|
},
|
|
// bedrock: {
|
|
// title: "Bedrock",
|
|
// provider: "bedrock",
|
|
// refPage: "amazon.com",
|
|
// description:
|
|
// "Bedrock is Amazon's provider of multiple diverse language models.",
|
|
// tags: [ModelProviderTag["Requires API Key"]],
|
|
// packages: [claude3Sonnet, claude3Haiku],
|
|
// },
|
|
"openai-aiohttp": {
|
|
title: "Other OpenAI-compatible API",
|
|
provider: "openai",
|
|
description:
|
|
"If you are using any other OpenAI-compatible API, for example text-gen-webui, FastChat, LocalAI, or llama-cpp-python, you can simply enter your server URL",
|
|
longDescription: `If you are using any other OpenAI-compatible API, you can simply enter your server URL. If you still need to set up your model server, you can follow a guide below:
|
|
|
|
- [text-gen-webui](https://github.com/oobabooga/text-generation-webui/tree/main/extensions/openai#setup--installation)
|
|
- [LocalAI](https://localai.io/basics/getting_started/)
|
|
- [llama-cpp-python](https://github.com/continuedev/ggml-server-example)
|
|
- [FastChat](https://github.com/lm-sys/FastChat/blob/main/docs/openai_api.md)`,
|
|
params: {
|
|
apiBase: "",
|
|
},
|
|
collectInputFor: [
|
|
{
|
|
...apiBaseInput,
|
|
defaultValue: "http://localhost:8000/v1/",
|
|
},
|
|
...completionParamsInputs,
|
|
],
|
|
icon: "openai.png",
|
|
tags: [ModelProviderTag.Local, ModelProviderTag["Open-Source"]],
|
|
packages: [
|
|
{
|
|
...AUTODETECT,
|
|
params: {
|
|
...AUTODETECT.params,
|
|
title: "OpenAI",
|
|
},
|
|
},
|
|
...osModels,
|
|
],
|
|
},
|
|
freetrial: {
|
|
title: "Continue limited free trial",
|
|
provider: "free-trial",
|
|
refPage: "freetrial",
|
|
description:
|
|
"New users can try out Continue for free using a proxy server that securely makes calls to OpenAI, Google, or Together using our API key",
|
|
longDescription:
|
|
'New users can try out Continue for free using a proxy server that securely makes calls to OpenAI, Google, or Together using our API key. If you are ready to use your own API key or have used all 250 free uses, you can enter your API key in config.py where it says `apiKey=""` or select another model provider.',
|
|
icon: "openai.png",
|
|
tags: [ModelProviderTag.Free],
|
|
packages: [
|
|
codellama70bTrial,
|
|
mixtralTrial,
|
|
{ ...claude3Opus, title: "Claude 3 Opus (trial)" },
|
|
{ ...claude3Sonnet, title: "Claude 3 Sonnet (trial)" },
|
|
{ ...claude3Haiku, title: "Claude 3 Haiku (trial)" },
|
|
{ ...gemini15Pro, title: "Gemini 1.5 Pro (trial)" },
|
|
{ ...gpt4o, title: "GPT-4o (trial)" },
|
|
{ ...gpt35turbo, title: "GPT-3.5-Turbo (trial)" },
|
|
{
|
|
...AUTODETECT,
|
|
params: {
|
|
...AUTODETECT.params,
|
|
title: "Free Trial",
|
|
},
|
|
},
|
|
],
|
|
collectInputFor: [...completionParamsInputs],
|
|
},
|
|
};
|