Skip to content

Commit ae39805

Browse files
committed
Don't call teacher work "Student work"
1 parent 95dc28a commit ae39805

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

functions-v2/src/on-class-data-doc-written.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,10 @@ async function summarizeChunk(
4747
totalChunks: number,
4848
role: "student" | "teacher"
4949
): Promise<SummarizeResult> {
50+
const capRole = role.charAt(0).toUpperCase() + role.slice(1);
5051
const messages = [
5152
new SystemMessage(systemPrompt),
52-
new HumanMessage(`Student work part ${chunkIndex + 1} of ${totalChunks}:
53+
new HumanMessage(`${capRole} work part ${chunkIndex + 1} of ${totalChunks}:
5354
${chunk}\n
5455
${role === "teacher" ? summarizeTeacherContentPrompt : summarizeStudentContentPrompt}`),
5556
];

0 commit comments

Comments
 (0)