change vision image_url format

This commit is contained in:
2023-11-08 19:21:56 +08:00
parent b107aca639
commit 0d27de52a3
3 changed files with 44 additions and 15 deletions

View File

@@ -1,7 +1,12 @@
export interface ImageURL {
url: string;
detail: "low" | "high";
}
export interface MessageDetail {
type: "text" | "image_url";
text?: string;
image_url?: string;
image_url?: ImageURL;
}
export interface Message {
role: "system" | "user" | "assistant" | "function";