refactor: embedding messages format

This commit is contained in:
jialin
2026-03-26 17:59:33 +08:00
committed by jialin
parent bb3cef89c1
commit c74118e913
7 changed files with 186 additions and 112 deletions
+10
View File
@@ -58,6 +58,16 @@ export const handleEmbedding = async (
encoding_format?: string;
dimensions?: number;
input: string[];
messages?: {
role: string;
content: Array<{
type: string;
text?: string;
image_url?: {
url: string;
};
}>;
}[];
},
options?: any
) => {