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);