Make user field optional in embedding request (#899)
* make user optional in embedding request * fix unit test
This commit is contained in:
@@ -155,7 +155,7 @@ const (
|
||||
type EmbeddingRequest struct {
|
||||
Input any `json:"input"`
|
||||
Model EmbeddingModel `json:"model"`
|
||||
User string `json:"user"`
|
||||
User string `json:"user,omitempty"`
|
||||
EncodingFormat EmbeddingEncodingFormat `json:"encoding_format,omitempty"`
|
||||
// Dimensions The number of dimensions the resulting output embeddings should have.
|
||||
// Only supported in text-embedding-3 and later models.
|
||||
|
||||
Reference in New Issue
Block a user