From 59dbc1cb7cc6ec7eef87767fb319de6e35a753fa Mon Sep 17 00:00:00 2001 From: Rob Cheung Date: Wed, 11 Sep 2024 14:20:18 -0400 Subject: [PATCH] --wip-- [skip ci] --- examples/basic.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/examples/basic.ts b/examples/basic.ts index 8d55cce..cef54a6 100755 --- a/examples/basic.ts +++ b/examples/basic.ts @@ -7,9 +7,15 @@ async function main() { const substrate = new Substrate({ apiKey: SUBSTRATE_API_KEY }); - const story = new ComputeText({ prompt: "tell me a story" }); + const story = new ComputeText({ + prompt: "tell me a story", + model: "Llama3Instruct8B", + temperature: 0.8, + }); const summary = new ComputeText({ + model: "Llama3Instruct8B", prompt: sb.interpolate`summarize this story in one sentence: ${story.future.text}`, + temperature: 0.3, }); const res = await substrate.run(story, summary);