All Downloads are FREE. Search and download functionalities are using the official Maven repository.

xyz.felh.openai.batch.BatchInputLineObject Maven / Gradle / Ivy

There is a newer version: 4.0.2024102501
Show newest version
package xyz.felh.openai.batch;

import com.alibaba.fastjson2.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import xyz.felh.openai.IOpenAiBean;

import java.util.Map;

@Builder
@NoArgsConstructor
@AllArgsConstructor
@Data
public class BatchInputLineObject implements IOpenAiBean {

    /**
     * A developer-provided per-request id that will be used to match outputs to inputs. Must be unique for each request in a batch.
     */
    @JSONField(name = "custom_id")
    @JsonProperty("custom_id")
    private String customId;

    /**
     * The HTTP method to be used for the request. Currently only POST is supported.
     */
    @JSONField(name = "method")
    @JsonProperty("method")
    private String method;

    /**
     * The OpenAI API relative URL to be used for the request. Currently only /v1/chat/completions is supported.
     */
    @JSONField(name = "url")
    @JsonProperty("url")
    private String url;

    @JSONField(name = "body")
    @JsonProperty("body")
    private Map body;

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy