We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 95dc28a commit ae39805Copy full SHA for ae39805
functions-v2/src/on-class-data-doc-written.ts
@@ -47,9 +47,10 @@ async function summarizeChunk(
47
totalChunks: number,
48
role: "student" | "teacher"
49
): Promise<SummarizeResult> {
50
+ const capRole = role.charAt(0).toUpperCase() + role.slice(1);
51
const messages = [
52
new SystemMessage(systemPrompt),
- new HumanMessage(`Student work part ${chunkIndex + 1} of ${totalChunks}:
53
+ new HumanMessage(`${capRole} work part ${chunkIndex + 1} of ${totalChunks}:
54
${chunk}\n
55
${role === "teacher" ? summarizeTeacherContentPrompt : summarizeStudentContentPrompt}`),
56
];
0 commit comments