io.github.sinri.AiOnHttpMix.volces.v3.request.VolcesChatRequestImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of AiOnHttpMix Show documentation
Show all versions of AiOnHttpMix Show documentation
A library to handle LLM APIs over HTTP service.
The newest version!
package io.github.sinri.AiOnHttpMix.volces.v3.request;
import io.vertx.core.json.JsonObject;
import org.jetbrains.annotations.NotNull;
class VolcesChatRequestImpl implements VolcesChatRequest {
private JsonObject jsonObject;
public VolcesChatRequestImpl() {
this.jsonObject = new JsonObject();
}
public VolcesChatRequestImpl(JsonObject jsonObject) {
this.jsonObject = jsonObject;
}
@Override
public @NotNull JsonObject toJsonObject() {
return jsonObject;
}
@Override
public @NotNull VolcesChatRequest reloadDataFromJsonObject(@NotNull JsonObject jsonObject) {
this.jsonObject = jsonObject;
return this;
}
public static class StreamOptionsParamImpl implements StreamOptionsParam {
private JsonObject jsonObject;
public StreamOptionsParamImpl() {
this.jsonObject = new JsonObject();
}
public StreamOptionsParamImpl(JsonObject jsonObject) {
this.jsonObject = jsonObject;
}
@Override
public @NotNull JsonObject toJsonObject() {
return jsonObject;
}
@Override
public @NotNull StreamOptionsParam reloadDataFromJsonObject(@NotNull JsonObject jsonObject) {
this.jsonObject = jsonObject;
return this;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy