diff --git a/types.go b/types.go index f23f2d0..daad68e 100644 --- a/types.go +++ b/types.go @@ -91,6 +91,7 @@ type Faceting struct { type Embedder struct { Source string `json:"source"` + URL string `json:"url,omitempty"` ApiKey string `json:"apiKey,omitempty"` Model string `json:"model,omitempty"` Dimensions int `json:"dimensions,omitempty"` diff --git a/types_easyjson.go b/types_easyjson.go index b859ee7..55e209d 100644 --- a/types_easyjson.go +++ b/types_easyjson.go @@ -5369,6 +5369,8 @@ func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo36(in *jlexer.Lexer, switch key { case "source": out.Source = string(in.String()) + case "url": + out.URL = string(in.String()) case "apiKey": out.ApiKey = string(in.String()) case "model": @@ -5396,6 +5398,11 @@ func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo36(out *jwriter.Writ out.RawString(prefix[1:]) out.String(string(in.Source)) } + if in.URL != "" { + const prefix string = ",\"url\":" + out.RawString(prefix) + out.String(string(in.URL)) + } if in.ApiKey != "" { const prefix string = ",\"apiKey\":" out.RawString(prefix)