Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
pontusab committed Dec 9, 2024
1 parent 104376a commit c341484
Showing 1 changed file with 16 additions and 10 deletions.
26 changes: 16 additions & 10 deletions apps/engine/src/routes/enrich/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
});

Expand Down

0 comments on commit c341484

Please sign in to comment.