continue-custom/core/config/default.ts

140 lines
3.4 KiB
TypeScript

import { SerializedContinueConfig } from "..";
export const defaultConfig: SerializedContinueConfig = {
models: [
{
title: "GPT-4 Vision (Free Trial)",
provider: "free-trial",
model: "gpt-4-vision-preview",
},
{
title: "GPT-3.5-Turbo (Free Trial)",
provider: "free-trial",
model: "gpt-3.5-turbo",
},
{
title: "Gemini Pro (Free Trial)",
provider: "free-trial",
model: "gemini-pro",
},
{
title: "Codellama 70b (Free Trial)",
provider: "free-trial",
model: "codellama-70b",
},
{
title: "Mixtral (Free Trial)",
provider: "free-trial",
model: "mistral-8x7b",
},
{
title: "Claude 3 Sonnet (Free Trial)",
provider: "free-trial",
model: "claude-3-sonnet-20240229",
},
],
slashCommands: [
{
name: "edit",
description: "Edit selected code",
},
{
name: "comment",
description: "Write comments for the selected code",
},
{
name: "share",
description: "Export this session as markdown",
},
{
name: "cmd",
description: "Generate a shell command",
},
],
customCommands: [
{
name: "test",
prompt:
"Write a comprehensive set of unit tests for the selected code. It should setup, run tests that check for correctness including important edge cases, and teardown. Ensure that the tests are complete and sophisticated. Give the tests just as chat output, don't edit any file.",
description: "Write unit tests for highlighted code",
},
],
contextProviders: [
{ name: "diff", params: {} },
{
name: "open",
params: {},
},
{ name: "terminal", params: {} },
{ name: "problems", params: {} },
{ name: "codebase", params: {} },
],
tabAutocompleteModel: {
title: "Starcoder 3b",
provider: "ollama",
model: "starcoder-3b",
},
};
export const defaultConfigJetBrains: SerializedContinueConfig = {
models: [
{
title: "GPT-4 Vision (Free Trial)",
provider: "free-trial",
model: "gpt-4-vision-preview",
},
{
title: "GPT-3.5-Turbo (Free Trial)",
provider: "free-trial",
model: "gpt-3.5-turbo",
},
{
title: "Gemini Pro (Free Trial)",
provider: "free-trial",
model: "gemini-pro",
},
{
title: "Codellama 70b (Free Trial)",
provider: "free-trial",
model: "codellama-70b",
},
{
title: "Mixtral (Free Trial)",
provider: "free-trial",
model: "mistral-8x7b",
},
{
title: "Claude 3 Sonnet (Free Trial)",
provider: "free-trial",
model: "claude-3-sonnet-20240229",
},
],
slashCommands: [
{
name: "edit",
description: "Edit selected code",
},
{
name: "comment",
description: "Write comments for the selected code",
},
{
name: "share",
description: "Export this session as markdown",
},
],
customCommands: [
{
name: "test",
prompt:
"Write a comprehensive set of unit tests for the selected code. It should setup, run tests that check for correctness including important edge cases, and teardown. Ensure that the tests are complete and sophisticated. Give the tests just as chat output, don't edit any file.",
description: "Write unit tests for highlighted code",
},
],
contextProviders: [
{
name: "open",
params: {},
},
],
};