Class WorkersAiClient
java.lang.Object
dev.langchain4j.model.workersai.client.WorkersAiClient
Low level client to interact with the WorkerAI API.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
An interceptor for HTTP requests to add an authorization token to the header. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic WorkersAiApi
createService
(String apiToken) Initialization of okHTTP.
-
Constructor Details
-
WorkersAiClient
public WorkersAiClient()Constructor.
-
-
Method Details
-
createService
Initialization of okHTTP.- Parameters:
apiToken
- authorization token- Returns:
- api
-