use float32 in embeddings (#133)

This commit is contained in:
sashabaranov
2023-03-08 14:08:08 +04:00
committed by GitHub
parent 522ae20999
commit c46ebb2f08

View File

@@ -103,7 +103,7 @@ var stringToEnum = map[string]EmbeddingModel{
// then their vector representations should also be similar.
type Embedding struct {
Object string `json:"object"`
Embedding []float64 `json:"embedding"`
Embedding []float32 `json:"embedding"`
Index int `json:"index"`
}