Package dev.case.api.services.blocking
Interface LlmService
-
- All Implemented Interfaces:
public interface LlmServiceAccess 40+ language models through a unified API
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceLlmService.WithRawResponseA view of LlmService that provides access to raw HTTP responses for each method.
-
Method Summary
Modifier and Type Method Description abstract LlmService.WithRawResponsewithRawResponse()Returns a view of this service that provides access to raw HTTP responses for each method. abstract LlmServicewithOptions(Consumer<ClientOptions.Builder> modifier)Returns a view of this service with the given option modifications applied. abstract V1Servicev1()Access 40+ language models through a unified API LlmGetConfigResponsegetConfig()Retrieves the AI Gateway configuration including all available language models and their specifications. abstract LlmGetConfigResponsegetConfig(LlmGetConfigParams params, RequestOptions requestOptions)LlmGetConfigResponsegetConfig(LlmGetConfigParams params)LlmGetConfigResponsegetConfig(RequestOptions requestOptions)-
-
Method Detail
-
withRawResponse
abstract LlmService.WithRawResponse withRawResponse()
Returns a view of this service that provides access to raw HTTP responses for each method.
-
withOptions
abstract LlmService withOptions(Consumer<ClientOptions.Builder> modifier)
Returns a view of this service with the given option modifications applied.
The original service is not modified.
-
getConfig
LlmGetConfigResponse getConfig()
Retrieves the AI Gateway configuration including all available language models and their specifications. This endpoint returns model information compatible with the Vercel AI SDK Gateway format, making it easy to integrate with existing AI applications.
Use this endpoint to:
Discover available language models
Get model specifications and pricing
Configure AI SDK clients
Build model selection interfaces
-
getConfig
abstract LlmGetConfigResponse getConfig(LlmGetConfigParams params, RequestOptions requestOptions)
-
getConfig
LlmGetConfigResponse getConfig(LlmGetConfigParams params)
-
getConfig
LlmGetConfigResponse getConfig(RequestOptions requestOptions)
-
-
-
-