class Embedding implements Serializable {
    @NonNull
    @Builder.Default
    private String model = Model.TEXT_EMBEDDING_ADA_002.getName();
    /**
     * 必选项：长度不能超过：8192
     */
    @NonNull
    private List<String> input;

    private String user;
    /**
     *  Can be either float or base64.
     * @see EncodingFormat
     */
    @JsonProperty("encoding_format")
    private String encodingFormat;

    public void setModel(Model model) {<FILL_FUNCTION_BODY>}


    public void setUser(String user) {
        this.user = user;
    }

    @Getter
    @AllArgsConstructor
    public enum Model {
        TEXT_EMBEDDING_ADA_002("text-embedding-ada-002"),
        ;
        private final String name;
    }

    @Getter
    @AllArgsConstructor
    public enum EncodingFormat {
        FLOAT("float"),
        BASE64("base64"),
        ;
        private final String name;
    }
}

        if (Objects.isNull(model)) {
            model = Model.TEXT_EMBEDDING_ADA_002;
        }
        this.model = model.getName();
    
<no_super_class>