1package io.github.ollama4j.models.embeddings;
3import static io.github.ollama4j.utils.Utils.getObjectMapper;
5import com.fasterxml.jackson.annotation.JsonProperty;
6import com.fasterxml.jackson.core.JsonProcessingException;
8import lombok.NoArgsConstructor;
10import lombok.RequiredArgsConstructor;
13@RequiredArgsConstructor
15@Deprecated(since=
"1.0.90")
20 private String prompt;
23 @JsonProperty(value =
"keep_alive")
24 private String keepAlive;
27 public String toString() {
29 return getObjectMapper().writerWithDefaultPrettyPrinter().writeValueAsString(
this);
30 }
catch (JsonProcessingException e) {
31 throw new RuntimeException(e);
Map< String, Object > options