MCPcopy Index your code
hub / github.com/continuedev/continue / constructApplyPrompt

Function constructApplyPrompt

core/edit/streamDiffLines.ts:47–59  ·  view source on GitHub ↗
(
  originalCode: string,
  newCode: string,
  llm: ILLM,
)

Source from the content-addressed store, hash-verified

45}
46
47function constructApplyPrompt(
48 originalCode: string,
49 newCode: string,
50 llm: ILLM,
51) {
52 const template = llm.promptTemplates?.apply ?? defaultApplyPrompt;
53 const rendered = llm.renderPromptTemplate(template, [], {
54 original_code: originalCode,
55 new_code: newCode,
56 });
57
58 return rendered;
59}
60
61export async function* addIndentation(
62 diffLineGenerator: AsyncGenerator<DiffLine>,

Callers 1

streamDiffLinesFunction · 0.85

Calls 1

renderPromptTemplateMethod · 0.80

Tested by

no test coverage detected