continue-custom/core/config/default.ts
Nate Sesti e893049fcc
✨ customizable rerankers (#1088)
* ✨ customizable rerankers

* 💄 fix early truncation button

* ⚡️ improvements to full text search + reranking

* ⚡️ only use starcoder2 stop words for starcoder2

* ⚡️ crawl code graph for call expressions

* 🚧 starcoder2-7b free trial

* 🚧 free trial client for embeddings and re-ranking

* 🚧 embeddings provider

* ✅ test for presence of files in CI

* 🐛 fixes to reranking
2024-04-09 22:59:42 -07:00

135 lines
3.3 KiB
TypeScript

import { SerializedContinueConfig } from "..";
export const defaultConfig: SerializedContinueConfig = {
models: [
{
title: "Claude 3 Sonnet (Free Trial)",
provider: "free-trial",
model: "claude-3-sonnet-20240229",
},
{
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: "Mixtral (Free Trial)",
provider: "free-trial",
model: "mistral-8x7b",
},
],
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: "Starcoder2 3b",
provider: "ollama",
model: "starcoder2:3b",
},
};
export const defaultConfigJetBrains: SerializedContinueConfig = {
models: [
{
title: "Claude 3 Sonnet (Free Trial)",
provider: "free-trial",
model: "claude-3-sonnet-20240229",
},
{
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: "Mixtral (Free Trial)",
provider: "free-trial",
model: "mistral-8x7b",
},
],
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: {},
},
],
tabAutocompleteModel: {
title: "Starcoder2 3b",
provider: "ollama",
model: "starcoder2:3b",
},
};