From 1e597a882f910d9306f81413a0cb5dd49252b7e2 Mon Sep 17 00:00:00 2001 From: Travis Fischer Date: Fri, 26 May 2023 18:10:48 -0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=8D=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- legacy/examples/sentiment.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/legacy/examples/sentiment.ts b/legacy/examples/sentiment.ts index f8fa25ca..93fbc5ba 100644 --- a/legacy/examples/sentiment.ts +++ b/legacy/examples/sentiment.ts @@ -11,7 +11,7 @@ export async function sentimentAgent() { const $ = new Agentic({ openai }) const example = await $.gpt4( - `You are an expert sentiment-labelling assistant. Label the following texts as positive or negative: {{texts}}` + `You are an expert sentiment-labelling assistant. Label the following texts as positive or negative: \n{{#texts}}- {{.}}\n{{/texts}}` ) .input(z.object({ texts: z.string().array() })) .output(z.array(z.object({ text: z.string(), label: z.string() })))