You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Generate a story using the [`GenerateText`](https://www.substrate.run/nodes#GenerateText) node.
35
+
Generate a story using the [`ComputeText`](https://www.substrate.run/nodes#ComputeText) node.
36
36
37
37
```typescript
38
-
const story =newGenerateText({ prompt: "tell me a story" });
38
+
const story =newComputeText({ prompt: "tell me a story" });
39
39
```
40
40
41
-
Summarize the output of the `story` node using another `GenerateText` node. Because `story` has not yet been run, we use `sb.interpolate` to work with its future output.
41
+
Summarize the output of the `story` node using another `ComputeText` node. Because `story` has not yet been run, we use `sb.interpolate` to work with its future output.
42
42
43
43
```typescript
44
-
const summary =newGenerateText({
44
+
const summary =newComputeText({
45
45
prompt: sb.interpolate`summarize this story in one sentence: ${story.future.text}`,
0 commit comments