Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion embeddings.go
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,9 @@

// Deserialize JSON to map[string]any
var body map[string]any
_ = json.Unmarshal(jsonData, &body)
if err = json.Unmarshal(jsonData, &body); err != nil {
return
}

Check warning on line 273 in embeddings.go

View check run for this annotation

Codecov / codecov/patch

embeddings.go#L272-L273

Added lines #L272 - L273 were not covered by tests

req, err := c.newRequest(
ctx,
Expand Down
Loading