Interface V1ServiceAsync
-
- All Implemented Interfaces:
public interface V1ServiceAsyncAccess 40+ language models through a unified API
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceV1ServiceAsync.WithRawResponseA view of V1ServiceAsync that provides access to raw HTTP responses for each method.
-
Method Summary
Modifier and Type Method Description abstract V1ServiceAsync.WithRawResponsewithRawResponse()Returns a view of this service that provides access to raw HTTP responses for each method. abstract V1ServiceAsyncwithOptions(Consumer<ClientOptions.Builder> modifier)Returns a view of this service with the given option modifications applied. abstract ChatServiceAsyncchat()Access 40+ language models through a unified API CompletableFuture<V1CreateEmbeddingResponse>createEmbedding(V1CreateEmbeddingParams params)Create vector embeddings from text using OpenAI-compatible models. abstract CompletableFuture<V1CreateEmbeddingResponse>createEmbedding(V1CreateEmbeddingParams params, RequestOptions requestOptions)CompletableFuture<V1ListModelsResponse>listModels()Retrieve a list of all available language models from 40+ providers including OpenAI, Anthropic, Google, and Case.dev's specialized legal models. abstract CompletableFuture<V1ListModelsResponse>listModels(V1ListModelsParams params, RequestOptions requestOptions)CompletableFuture<V1ListModelsResponse>listModels(V1ListModelsParams params)CompletableFuture<V1ListModelsResponse>listModels(RequestOptions requestOptions)-
-
Method Detail
-
withRawResponse
abstract V1ServiceAsync.WithRawResponse withRawResponse()
Returns a view of this service that provides access to raw HTTP responses for each method.
-
withOptions
abstract V1ServiceAsync withOptions(Consumer<ClientOptions.Builder> modifier)
Returns a view of this service with the given option modifications applied.
The original service is not modified.
-
chat
abstract ChatServiceAsync chat()
Access 40+ language models through a unified API
-
createEmbedding
CompletableFuture<V1CreateEmbeddingResponse> createEmbedding(V1CreateEmbeddingParams params)
Create vector embeddings from text using OpenAI-compatible models. Perfect for semantic search, document similarity, and building RAG systems for legal documents.
-
createEmbedding
abstract CompletableFuture<V1CreateEmbeddingResponse> createEmbedding(V1CreateEmbeddingParams params, RequestOptions requestOptions)
-
listModels
CompletableFuture<V1ListModelsResponse> listModels()
Retrieve a list of all available language models from 40+ providers including OpenAI, Anthropic, Google, and Case.dev's specialized legal models. Returns OpenAI-compatible model metadata with pricing information.
This endpoint is compatible with OpenAI's models API format, making it easy to integrate with existing applications.
-
listModels
abstract CompletableFuture<V1ListModelsResponse> listModels(V1ListModelsParams params, RequestOptions requestOptions)
-
listModels
CompletableFuture<V1ListModelsResponse> listModels(V1ListModelsParams params)
-
listModels
CompletableFuture<V1ListModelsResponse> listModels(RequestOptions requestOptions)
-
-
-
-