Skip to content

Commit

Permalink
🔖 chore: update openai EmbeddingRequest struct
Browse files Browse the repository at this point in the history
  • Loading branch information
MartialBE committed May 15, 2024
1 parent 2bc2dfc commit d85924a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions types/embeddings.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ type EmbeddingRequest struct {
Model string `json:"model" binding:"required"`
Input any `json:"input" binding:"required"`
EncodingFormat string `json:"encoding_format,omitempty"`
Dimensions int `json:"dimensions,omitempty"`
User string `json:"user,omitempty"`
}

Expand Down

0 comments on commit d85924a

Please sign in to comment.