Hook up custom summarization on branch switch
This commit is contained in:
committed by
Mario Zechner
parent
9d49b4d4ed
commit
62caf219a1
@@ -297,7 +297,9 @@ export async function generateBranchSummary(
|
||||
const conversationText = serializeConversation(llmMessages);
|
||||
|
||||
// Build prompt
|
||||
const instructions = customInstructions || BRANCH_SUMMARY_PROMPT;
|
||||
const instructions = customInstructions
|
||||
? `${BRANCH_SUMMARY_PROMPT}\n\nAdditional focus: ${customInstructions}`
|
||||
: BRANCH_SUMMARY_PROMPT;
|
||||
const promptText = `<conversation>\n${conversationText}\n</conversation>\n\n${instructions}`;
|
||||
|
||||
const summarizationMessages = [
|
||||
|
||||
Reference in New Issue
Block a user