We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 079528d commit ffc06fcCopy full SHA for ffc06fc
packages/langbase/src/pipes/pipes.ts
@@ -32,6 +32,11 @@ export interface GenerateOptions {
32
variables?: Variable[];
33
}
34
35
+export interface StreamOptions {
36
+ messages?: Message[];
37
+ variables?: Variable[];
38
+}
39
+
40
interface ChoiceNonStream {
41
index: number;
42
message: Message;
@@ -104,9 +109,7 @@ export class Pipe {
104
109
});
105
110
106
111
107
- async streamText(
108
- options: GenerateOptions,
- ): Promise<GenerateStreamResponse> {
112
+ async streamText(options: StreamOptions): Promise<GenerateStreamResponse> {
113
return this.request.post<GenerateStreamResponse>({
114
endpoint: '/beta/generate',
115
body: {...options, stream: true},
0 commit comments