move normalization to go

This commit is contained in:
Roy Han
2024-07-01 14:10:58 -07:00
parent 9c32b6b9ed
commit aee25acb5b
7 changed files with 94 additions and 44 deletions

View File

@@ -240,6 +240,7 @@ type EmbeddingRequest struct {
// EmbedResponse is the response from [Client.Embed].
type EmbedResponse struct {
Model string `json:"model"`
Embeddings [][]float64 `json:"embeddings,omitempty"`
}