From c3414846021e1527e201298ee253139ad60ce5f4 Mon Sep 17 00:00:00 2001 From: Pontus Abrahamsson Date: Mon, 9 Dec 2024 10:48:15 +0100 Subject: [PATCH] wip --- apps/engine/src/routes/enrich/index.ts | 26 ++++++++++++++++---------- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/apps/engine/src/routes/enrich/index.ts b/apps/engine/src/routes/enrich/index.ts index acedd61293..0ecc1f65b2 100644 --- a/apps/engine/src/routes/enrich/index.ts +++ b/apps/engine/src/routes/enrich/index.ts @@ -51,16 +51,22 @@ const app = new OpenAPIHono<{ Bindings: Bindings }>().openapi( model: workersai("@cf/meta/llama-3.3-70b-instruct-fp8-fast"), temperature: 0, maxTokens: 2048, - messages: [ - { - role: "system", - content: prompt, - }, - { - role: "user", - content: JSON.stringify(data.map(({ id, ...rest }) => rest)), - }, - ], + prompt: ` + ${prompt} + + Transactions: + ${JSON.stringify(data)} + `, + // messages: [ + // { + // role: "system", + // content: prompt, + // }, + // { + // role: "user", + // content: JSON.stringify(data.map(({ id, ...rest }) => rest)), + // }, + // ], schema: OutputSchema, });