@vibes.diy/call-ai-v2 2.0.9 → 2.2.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/package.json +1 -1
- package/prompt-type.d.ts +31 -4
- package/prompt-type.js +8 -1
- package/prompt-type.js.map +1 -1
package/package.json
CHANGED
package/prompt-type.d.ts
CHANGED
|
@@ -5,22 +5,49 @@ export declare const TextContent: import("arktype/internal/variants/object.ts").
|
|
|
5
5
|
text: string;
|
|
6
6
|
}, {}>;
|
|
7
7
|
export type TextContent = typeof TextContent.infer;
|
|
8
|
+
export declare const ImageUrlContent: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
9
|
+
type: "image_url";
|
|
10
|
+
image_url: {
|
|
11
|
+
url: string;
|
|
12
|
+
};
|
|
13
|
+
}, {}>;
|
|
14
|
+
export type ImageUrlContent = typeof ImageUrlContent.infer;
|
|
15
|
+
export declare const MessageContent: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
16
|
+
type: "text";
|
|
17
|
+
text: string;
|
|
18
|
+
} | {
|
|
19
|
+
type: "image_url";
|
|
20
|
+
image_url: {
|
|
21
|
+
url: string;
|
|
22
|
+
};
|
|
23
|
+
}, {}>;
|
|
24
|
+
export type MessageContent = typeof MessageContent.infer;
|
|
8
25
|
export declare const ChatMessage: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
9
26
|
role: "assistant" | "system" | "user";
|
|
10
|
-
content: {
|
|
27
|
+
content: ({
|
|
11
28
|
type: "text";
|
|
12
29
|
text: string;
|
|
13
|
-
}
|
|
30
|
+
} | {
|
|
31
|
+
type: "image_url";
|
|
32
|
+
image_url: {
|
|
33
|
+
url: string;
|
|
34
|
+
};
|
|
35
|
+
})[];
|
|
14
36
|
}, {}>;
|
|
15
37
|
export type ChatMessage = typeof ChatMessage.infer;
|
|
16
38
|
export declare const LLMRequest: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
17
39
|
model?: string | undefined;
|
|
18
40
|
messages: {
|
|
19
41
|
role: "assistant" | "system" | "user";
|
|
20
|
-
content: {
|
|
42
|
+
content: ({
|
|
21
43
|
type: "text";
|
|
22
44
|
text: string;
|
|
23
|
-
}
|
|
45
|
+
} | {
|
|
46
|
+
type: "image_url";
|
|
47
|
+
image_url: {
|
|
48
|
+
url: string;
|
|
49
|
+
};
|
|
50
|
+
})[];
|
|
24
51
|
}[];
|
|
25
52
|
stream?: boolean | undefined;
|
|
26
53
|
temperature?: number | undefined;
|
package/prompt-type.js
CHANGED
|
@@ -4,9 +4,16 @@ export const TextContent = type({
|
|
|
4
4
|
type: "'text'",
|
|
5
5
|
text: "string",
|
|
6
6
|
});
|
|
7
|
+
export const ImageUrlContent = type({
|
|
8
|
+
type: "'image_url'",
|
|
9
|
+
image_url: type({
|
|
10
|
+
url: "string",
|
|
11
|
+
}),
|
|
12
|
+
});
|
|
13
|
+
export const MessageContent = TextContent.or(ImageUrlContent);
|
|
7
14
|
export const ChatMessage = type({
|
|
8
15
|
role: MessageRole,
|
|
9
|
-
content:
|
|
16
|
+
content: MessageContent.array(),
|
|
10
17
|
});
|
|
11
18
|
export const LLMRequest = type({
|
|
12
19
|
"model?": "string",
|
package/prompt-type.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prompt-type.js","sourceRoot":"","sources":["../jsr/prompt-type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAG/B,MAAM,CAAC,MAAM,WAAW,GAAG,IAAI,CAAC,iCAAiC,CAAC,CAAC;AAGnE,MAAM,CAAC,MAAM,WAAW,GAAG,IAAI,CAAC;IAC9B,IAAI,EAAE,QAAQ;IACd,IAAI,EAAE,QAAQ;CACf,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"prompt-type.js","sourceRoot":"","sources":["../jsr/prompt-type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAG/B,MA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