diff --git a/packages/core/src/runpromptcontext.ts b/packages/core/src/runpromptcontext.ts index 7e88c06e7b..6fcee94e7d 100644 --- a/packages/core/src/runpromptcontext.ts +++ b/packages/core/src/runpromptcontext.ts @@ -13,6 +13,7 @@ import { createSchemaNode, createStringTemplateNode, createTextNode, + createSystemNode, renderPromptNode, createOutputProcessor, createFileMerge, @@ -117,7 +118,7 @@ export function createChatTurnGenerationContext( role === "assistant" ? createAssistantNode(body, { priority, maxTokens }) : role === "system" - ? creatSystemNode(body, { priority, maxTokens }) + ? createSystemNode(body, { priority, maxTokens }) : createTextNode(body, { priority, maxTokens }) ) } @@ -773,9 +774,3 @@ export function createChatGenerationContext( return ctx } -function creatSystemNode( - body: Awaitable, - arg1: { priority: number; maxTokens: number } -): PromptNode { - throw new Error("Function not implemented.") -}