Interface HuggingFaceRestApi
@Path("")
@ClientHeaderParam(name="Authorization",
value="Bearer {token}")
@Consumes("application/json")
@Produces("application/json")
public interface HuggingFaceRestApi
This Microprofile REST client is used as the building block of all the API calls to HuggingFace.
The implementation is provided by the Reactive REST Client in Quarkus.
-
Method Summary
Modifier and TypeMethodDescriptionList<float[]>List<dev.langchain4j.model.huggingface.client.TextGenerationResponse>static com.fasterxml.jackson.databind.ObjectMapperobjectMapper(com.fasterxml.jackson.databind.ObjectMapper defaultObjectMapper)
-
Method Details
-
generate
-
embed
-
objectMapper
static com.fasterxml.jackson.databind.ObjectMapper objectMapper(com.fasterxml.jackson.databind.ObjectMapper defaultObjectMapper)
-