getApiClientForRequest method
The API client for a model request with config (the request's
options). By default it only reads apiKey; vertexAI overrides it to
apply the per-request location and payGo.
Implementation
Future<GenerativeLanguageBaseClient> getApiClientForRequest(
Map<String, dynamic>? config,
) => getApiClient(
config == null ? null : GeminiOptions.$schema.parse(config).apiKey,
);