1package io.github.ollama4j.models.embeddings;
3import com.fasterxml.jackson.annotation.JsonProperty;
4import com.fasterxml.jackson.core.JsonProcessingException;
6import lombok.NoArgsConstructor;
8import lombok.RequiredArgsConstructor;
13import static io.github.ollama4j.utils.Utils.getObjectMapper;
16@RequiredArgsConstructor
23 private List<String> input;
25 private Map<String, Object> options;
27 @JsonProperty(value =
"keep_alive")
28 private String keepAlive;
30 @JsonProperty(value =
"truncate")
31 private Boolean truncate =
true;
36 return getObjectMapper().writerWithDefaultPrettyPrinter().writeValueAsString(
this);
37 }
catch (JsonProcessingException e) {
38 throw new RuntimeException(e);