(
options: RunOptions & {pipe: Pipe},
)
| 425 | * @returns A promise that resolves to the generated text. |
| 426 | */ |
| 427 | export const generateText = async ( |
| 428 | options: RunOptions & {pipe: Pipe}, |
| 429 | ): Promise<RunResponse> => { |
| 430 | return options.pipe.run(options); |
| 431 | }; |
| 432 | |
| 433 | /** |
| 434 | * Streams text using the provided options. |