Merge branch 'preview' into dev
This commit is contained in:
commit
018e13d701
5 changed files with 15 additions and 10 deletions
|
|
@ -169,19 +169,24 @@ const codegeexFimTemplate: AutocompleteTemplate = {
|
|||
filepath,
|
||||
]);
|
||||
const baseTemplate = `###PATH:${relativePaths[relativePaths.length - 1]}\n###LANGUAGE:\n###MODE:BLOCK\n<|code_suffix|>${suffix}<|code_prefix|>${prefix}<|code_middle|>`;
|
||||
if (snippets.length == 0)
|
||||
{
|
||||
if (snippets.length == 0) {
|
||||
return `<|user|>\n${baseTemplate}<|assistant|>\n`;
|
||||
}
|
||||
const references =
|
||||
`###REFERENCE:\n${snippets
|
||||
const references = `###REFERENCE:\n${snippets
|
||||
.map((snippet, i) => `###PATH:${relativePaths[i]}\n${snippet.contents}\n`)
|
||||
.join("###REFERENCE:\n")}`;
|
||||
const prompt = `<|user|>\n${references}\n${baseTemplate}<|assistant|>\n`;
|
||||
return prompt;
|
||||
},
|
||||
completionOptions: {
|
||||
stop: ["<|user|>", "<|code_suffix|>", "<|code_prefix|>", "<|code_middle|>", "<|assistant|>", "<|endoftext|>"],
|
||||
stop: [
|
||||
"<|user|>",
|
||||
"<|code_suffix|>",
|
||||
"<|code_prefix|>",
|
||||
"<|code_middle|>",
|
||||
"<|assistant|>",
|
||||
"<|endoftext|>",
|
||||
],
|
||||
},
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -36,6 +36,7 @@ import CustomLLMClass from "../llm/llms/CustomLLM.js";
|
|||
import FreeTrial from "../llm/llms/FreeTrial.js";
|
||||
import { llmFromDescription } from "../llm/llms/index.js";
|
||||
|
||||
import CodebaseContextProvider from "../context/providers/CodebaseContextProvider.js";
|
||||
import ContinueProxyContextProvider from "../context/providers/ContinueProxyContextProvider.js";
|
||||
import { fetchwithRequestOptions } from "../util/fetchWithOptions.js";
|
||||
import { copyOf } from "../util/index.js";
|
||||
|
|
@ -60,7 +61,6 @@ import {
|
|||
getPromptFiles,
|
||||
slashCommandFromPromptFile,
|
||||
} from "./promptFile.js";
|
||||
import CodebaseContextProvider from "../context/providers/CodebaseContextProvider.js";
|
||||
|
||||
const { execSync } = require("child_process");
|
||||
|
||||
|
|
|
|||
|
|
@ -8,7 +8,6 @@ import { getRelativePath } from "../../util/index.js";
|
|||
import { RetrievalPipelineOptions } from "./pipelines/BaseRetrievalPipeline.js";
|
||||
import NoRerankerRetrievalPipeline from "./pipelines/NoRerankerRetrievalPipeline.js";
|
||||
import RerankerRetrievalPipeline from "./pipelines/RerankerRetrievalPipeline.js";
|
||||
import { recentlyEditedFilesCache } from "./recentlyEditedFilesCache.js";
|
||||
|
||||
export async function retrieveContextItemsFromEmbeddings(
|
||||
extras: ContextProviderExtras,
|
||||
|
|
|
|||
|
|
@ -16,8 +16,10 @@ import {
|
|||
} from "./config/onboarding.js";
|
||||
import { createNewPromptFile } from "./config/promptFile.js";
|
||||
import { addModel, addOpenAIKey, deleteModel } from "./config/util.js";
|
||||
import { recentlyEditedFilesCache } from "./context/retrieval/recentlyEditedFilesCache.js";
|
||||
import { ContinueServerClient } from "./continueServer/stubs/client.js";
|
||||
import { ControlPlaneClient } from "./control-plane/client.js";
|
||||
import { getAuthUrlForTokenPage } from "./control-plane/auth/index.js";
|
||||
import { ControlPlaneClient } from "./control-plane/client";
|
||||
import { CodebaseIndexer, PauseToken } from "./indexing/CodebaseIndexer.js";
|
||||
import { DocsService } from "./indexing/docs/DocsService.js";
|
||||
import Ollama from "./llm/llms/Ollama.js";
|
||||
|
|
@ -31,8 +33,6 @@ import type { IMessenger, Message } from "./util/messenger";
|
|||
import { editConfigJson } from "./util/paths.js";
|
||||
import { Telemetry } from "./util/posthog.js";
|
||||
import { streamDiffLines } from "./util/verticalEdit.js";
|
||||
import { recentlyEditedFilesCache } from "./context/retrieval/recentlyEditedFilesCache.js";
|
||||
import { getAuthUrlForTokenPage } from "./control-plane/auth/index.js";
|
||||
|
||||
export class Core {
|
||||
// implements IMessenger<ToCoreProtocol, FromCoreProtocol>
|
||||
|
|
|
|||
1
docs/static/schemas/config.json
vendored
1
docs/static/schemas/config.json
vendored
|
|
@ -423,6 +423,7 @@
|
|||
"anyOf": [
|
||||
{
|
||||
"enum": [
|
||||
"@cf/meta/llama-3.1-8b-instruct",
|
||||
"@cf/meta/llama-3-8b-instruct",
|
||||
"@hf/thebloke/deepseek-coder-6.7b-instruct-awq",
|
||||
"@cf/deepseek-ai/deepseek-math-7b-instruct",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue