@chaibuilder/pages 0.16.11 → 0.16.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/server.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  import { ChaiBlock } from '@chaibuilder/runtime';
2
2
  import { ChaiPageProps } from '@chaibuilder/runtime';
3
+ import { StreamTextResult } from 'ai';
3
4
 
4
5
  export declare type AIChatOptions = {
5
6
  messages: any[];
@@ -26,7 +27,7 @@ export declare class ChaiAIChatHandler implements ChaiBuilderPagesAIInterface {
26
27
  onFinish?: () => void;
27
28
  onError?: (error: Error) => void;
28
29
  } | undefined);
29
- handleRequest(options: AIChatOptions, res: any): Promise<void>;
30
+ handleRequest(options: AIChatOptions, res?: any): Promise<StreamTextResult<any, any>>;
30
31
  isConfigured(): boolean;
31
32
  }
32
33
 
@@ -107,7 +108,7 @@ export declare class ChaiBuilderPages implements ChaiBuilderPagesInterface {
107
108
  }
108
109
 
109
110
  export declare interface ChaiBuilderPagesAIInterface {
110
- handleRequest(options: AIChatOptions, res: any): Promise<void>;
111
+ handleRequest(options: AIChatOptions, res: any): Promise<StreamTextResult<any, any>>;
111
112
  isConfigured(): boolean;
112
113
  }
113
114