9package io.github.ollama4j.models.request;
11import java.util.Base64;
12import lombok.AllArgsConstructor;
14import lombok.EqualsAndHashCode;
18@EqualsAndHashCode(callSuper =
false)
20 private String username;
21 private String password;
29 final String credentialsToEncode = this.getUsername() +
":" + this.getPassword();
30 return "Basic " + Base64.getEncoder().encodeToString(credentialsToEncode.getBytes());
String getAuthHeaderValue()