ee.carlrobert.llm.client.openai.completion.request.OpenAIMessageImageURLContent 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 com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonTypeName;
/**
* Messages with image content are supported by OpenAIs vision models.
*/
@JsonTypeName("image_url")
public class OpenAIMessageImageURLContent extends OpenAIMessageContent {
@JsonProperty("image_url")
private OpenAIImageUrl imageUrl;
public OpenAIMessageImageURLContent() {
}
public OpenAIMessageImageURLContent(OpenAIImageUrl imageUrl) {
this.imageUrl = imageUrl;
}
public OpenAIImageUrl getImageUrl() {
return imageUrl;
}
public void setImageUrl(OpenAIImageUrl imageUrl) {
this.imageUrl = imageUrl;
}
}