ee.carlrobert.llm.client.openai.completion.request.OpenAIChatCompletionDetailedMessage Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of llm-client Show documentation
Show all versions of llm-client Show documentation
Java http client wrapped around the OkHttp3 library
package ee.carlrobert.llm.client.openai.completion.request;
import java.util.Collections;
import java.util.List;
public class OpenAIChatCompletionDetailedMessage implements OpenAIChatCompletionMessage {
private final String role;
private List content;
public OpenAIChatCompletionDetailedMessage(String role, OpenAIMessageContent content) {
this.role = role;
this.content = Collections.singletonList(content);
}
public OpenAIChatCompletionDetailedMessage(String role, List content) {
this.role = role;
this.content = content;
}
public String getRole() {
return role;
}
public List getContent() {
return content;
}
public void setContent(List content) {
this.content = content;
}
}