@ampt/ai 1.0.3 → 2.0.1

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/index.d.ts CHANGED
@@ -37,7 +37,7 @@ interface InvokeOptions {
37
37
  * @param options
38
38
  * @returns
39
39
  */
40
- declare function invoke(options: InvokeOptions): Promise<ReadableStream<any> | undefined>;
40
+ declare function invoke(options: InvokeOptions): Promise<Response>;
41
41
 
42
42
  type MessageRole = 'assistant' | 'human';
43
43
  /**
@@ -63,7 +63,7 @@ interface ChatOptions {
63
63
  * @param messages Array of messages to send to the model
64
64
  * @returns Chat completion as a ReadableStream
65
65
  */
66
- declare function chat(messages: ChatMessage[], options?: ChatOptions): Promise<ReadableStream<any>>;
66
+ declare function chat(messages: ChatMessage[], options?: ChatOptions): Promise<Response>;
67
67
  declare namespace chat {
68
68
  var models: () => Promise<ModelId[]>;
69
69
  }
@@ -76,7 +76,7 @@ interface RenderOptions {
76
76
  seed?: number;
77
77
  scale?: number;
78
78
  }
79
- declare function render(prompt: string, options?: RenderOptions): Promise<Buffer>;
79
+ declare function render(prompt: string, options?: RenderOptions): Promise<Response>;
80
80
  declare namespace render {
81
81
  var models: () => Promise<string[]>;
82
82
  }