From 9058441f6c07856d5ee52fad7661dc4662a4100d Mon Sep 17 00:00:00 2001 From: t11s Date: Mon, 10 Jun 2024 19:23:37 -0700 Subject: [PATCH] fix: types? --- src/utils/prompt.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/utils/prompt.ts b/src/utils/prompt.ts index e5242d0..628f5f0 100644 --- a/src/utils/prompt.ts +++ b/src/utils/prompt.ts @@ -1,13 +1,13 @@ import { FluxNodeData, FluxNodeType, Settings } from "./types"; -import { ChatCompletionRequestMessage } from "openai-streams"; +import { CreateCompletionRequest } from "openai-streams"; import { MAX_AUTOLABEL_CHARS } from "./constants"; import { Node } from "reactflow"; export function messagesFromLineage( lineage: Node[], settings: Settings -): ChatCompletionRequestMessage[] { - const messages: ChatCompletionRequestMessage[] = []; +): CreateCompletionRequest[] { + const messages: CreateCompletionRequest[] = []; // Iterate backwards. for (let i = lineage.length - 1; i >= 0; i--) {