From a51e06979870e1a19ecc6b35ccd00700dcccd26d Mon Sep 17 00:00:00 2001 From: Peli de Halleux Date: Fri, 6 Dec 2024 19:36:31 +0000 Subject: [PATCH] =?UTF-8?q?refactor:=20update=20function=20return=20type?= =?UTF-8?q?=20=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 1 + packages/core/src/promptdom.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 125de63447..07ae368217 100644 --- a/.gitignore +++ b/.gitignore @@ -28,3 +28,4 @@ trapi.md genaiscript.config.yaml packages/core/*.temp.* *.vsix +packages/sample/test.txt diff --git a/packages/core/src/promptdom.ts b/packages/core/src/promptdom.ts index f5ce58fffb..3aa0937119 100644 --- a/packages/core/src/promptdom.ts +++ b/packages/core/src/promptdom.ts @@ -638,7 +638,7 @@ async function layoutPromptNode(root: PromptNode) { return changed } -export function resolveFenceFormat(modelid: string): "markdown" | "xml" { +export function resolveFenceFormat(modelid: string): FenceFormat { return DEFAULT_FENCE_FORMAT }