com.launchableinc.openai.messages.MessageContent Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of api Show documentation
Show all versions of api Show documentation
Basic java objects for the OpenAI GPT APIs
package com.launchableinc.openai.messages;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.launchableinc.openai.messages.content.ImageFile;
import com.launchableinc.openai.messages.content.Text;
import lombok.Data;
/**
* Represents the content of a message
*
* https://platform.openai.com/docs/api-reference/messages/object
*/
@Data
public class MessageContent {
/**
* The content type, either "text" or "image_file"
*/
String type;
/**
* Text content of the message. Only present if type == text
*/
Text text;
/**
* The image content of a message. Only present if type == image_file
*/
@JsonProperty("image_file")
ImageFile imageFile;
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy