This commit is contained in:
duanfuxiang
2025-06-12 13:35:00 +08:00
parent 3ce55899df
commit b20b4f9e19
3 changed files with 296 additions and 53 deletions

View File

@@ -17,5 +17,7 @@ export type EmbeddingModelOption = {
export type EmbeddingModel = {
id: string
dimension: number
supportsBatch: boolean
getEmbedding: (text: string) => Promise<number[]>
getBatchEmbeddings: (texts: string[]) => Promise<number[][]>
}