com.launchableinc.openai.messages.MessageFile 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
The newest version!
package com.launchableinc.openai.messages;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
/**
* A list of files attached to a Message
*
* https://platform.openai.com/docs/api-reference/messages/file-object
*/
@NoArgsConstructor
@AllArgsConstructor
@Data
public class MessageFile {
/**
* The identifier, which can be referenced in API endpoints.
*/
String id;
/**
* The object type, which is always thread.message.file.
*/
String object;
/**
* The Unix timestamp (in seconds) for when the message file was created.
*/
@JsonProperty("created_at")
int createdAt;
/**
* The ID of the message that the File is attached to.
*/
@JsonProperty("message_id")
String messageId;
}