@ampt/ai 1.0.3 → 2.0.0
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/{dist-es-PES2FGFU.js → chunk-JPKYSWKV.js} +4071 -4888
- package/dist/dist-es-7I2R4JEH.js +1158 -0
- package/dist/index.cjs +20635 -3639
- package/dist/index.d.ts +3 -3
- package/dist/index.js +20115 -3187
- package/package.json +1 -1
- package/dist/chunk-77JYXMMM.js +0 -202
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<
|
|
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<
|
|
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<
|
|
79
|
+
declare function render(prompt: string, options?: RenderOptions): Promise<Response>;
|
|
80
80
|
declare namespace render {
|
|
81
81
|
var models: () => Promise<string[]>;
|
|
82
82
|
}
|