mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-12-02 22:14:50 +00:00
refactor(ai): pass outputDimensionality 1536 to gemini-embedding-2
This commit is contained in:
@@ -47,6 +47,9 @@ async function generateMultimodalEmbedding(
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
config: {
|
||||||
|
outputDimensionality: 1536,
|
||||||
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
const values = response.embeddings?.[0]?.values
|
const values = response.embeddings?.[0]?.values
|
||||||
|
|||||||
Reference in New Issue
Block a user