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

cn.homj.autogen4j.support.openai.chat.ResponseFormat Maven / Gradle / Ivy

The newest version!
package cn.homj.autogen4j.support.openai.chat;

import lombok.Data;
import lombok.experimental.Accessors;

/**
 * @author jiehong.jh
 * @date 2023/11/27
 */
@Data
@Accessors(chain = true)
public class ResponseFormat {
    /**
     * eg: json_object
     */
    private String type;

    public static ResponseFormat ofText() {
        return new ResponseFormat().setType("text");
    }

    public static ResponseFormat ofJson() {
        return new ResponseFormat().setType("json_object");
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy