Skip to content

Commit

Permalink
--wip-- [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
kousun12 committed Sep 11, 2024
1 parent f1374bf commit 59dbc1c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion examples/basic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 59dbc1c

Please sign in to comment.