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

tech.amikos.hf.CreateEmbeddingRequest Maven / Gradle / Ivy

The newest version!
package tech.amikos.hf;

import com.google.gson.Gson;
import com.google.gson.annotations.SerializedName;

import java.util.HashMap;

public class CreateEmbeddingRequest {

    @SerializedName("inputs")
    private String[] inputs;
    @SerializedName("options")
    private HashMap options;

    public CreateEmbeddingRequest inputs(String[] inputs) {
        this.inputs = inputs;
        return this;
    }

    public CreateEmbeddingRequest options(HashMap options) {
        this.options = options;
        return this;
    }

    public String[] getInputs() {
        return inputs;
    }

    public HashMap getOptions() {
        return options;
    }

    public String toString() {
        return this.json();
    }

    public String json() {
        return new Gson().toJson(this);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy