Interface V1Service
-
- All Implemented Interfaces:
public interface V1ServiceAccess 40+ language models through a unified API
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceV1Service.WithRawResponseA view of V1Service that provides access to raw HTTP responses for each method.
-
Method Summary
Modifier and Type Method Description abstract V1Service.WithRawResponsewithRawResponse()Returns a view of this service that provides access to raw HTTP responses for each method. abstract V1ServicewithOptions(Consumer<ClientOptions.Builder> modifier)Returns a view of this service with the given option modifications applied. abstract ChatServicechat()Access 40+ language models through a unified API V1CreateEmbeddingResponsecreateEmbedding(V1CreateEmbeddingParams params)Create vector embeddings from text using OpenAI-compatible models. abstract V1CreateEmbeddingResponsecreateEmbedding(V1CreateEmbeddingParams params, RequestOptions requestOptions)V1ListModelsResponselistModels()Retrieve a list of all available language models from 40+ providers including OpenAI, Anthropic, Google, and Case.dev's specialized legal models. abstract V1ListModelsResponselistModels(V1ListModelsParams params, RequestOptions requestOptions)V1ListModelsResponselistModels(V1ListModelsParams params)V1ListModelsResponselistModels(RequestOptions requestOptions)-
-
Method Detail
-
withRawResponse
abstract V1Service.WithRawResponse withRawResponse()
Returns a view of this service that provides access to raw HTTP responses for each method.
-
withOptions
abstract V1Service 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 ChatService chat()
Access 40+ language models through a unified API
-
createEmbedding
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 V1CreateEmbeddingResponse createEmbedding(V1CreateEmbeddingParams params, RequestOptions requestOptions)
-
listModels
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 V1ListModelsResponse listModels(V1ListModelsParams params, RequestOptions requestOptions)
-
listModels
V1ListModelsResponse listModels(V1ListModelsParams params)
-
listModels
V1ListModelsResponse listModels(RequestOptions requestOptions)
-
-
-
-