Class GoogleAiStudioServiceSettings
java.lang.Object
co.elastic.clients.elasticsearch.inference.GoogleAiStudioServiceSettings
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable
public class GoogleAiStudioServiceSettings
extends Object
implements JsonpSerializable
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<GoogleAiStudioServiceSettings>
Json deserializer forGoogleAiStudioServiceSettings
-
Method Summary
Modifier and TypeMethodDescriptionfinal String
apiKey()
Required - A valid API key of your Google Gemini account.final String
modelId()
Required - The name of the model to use for the inference task.final RateLimitSetting
This setting helps to minimize the number of rate limit errors returned from Google AI Studio.void
serialize
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected void
serializeInternal
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static void
setupGoogleAiStudioServiceSettingsDeserializer
(ObjectDeserializer<GoogleAiStudioServiceSettings.Builder> op) toString()
-
Field Details
-
_DESERIALIZER
Json deserializer forGoogleAiStudioServiceSettings
-
-
Method Details
-
of
-
apiKey
Required - A valid API key of your Google Gemini account.API name:
api_key
-
modelId
Required - The name of the model to use for the inference task. Refer to the Google documentation for the list of supported models.API name:
model_id
-
rateLimit
This setting helps to minimize the number of rate limit errors returned from Google AI Studio. By default, thegoogleaistudio
service sets the number of requests allowed per minute to 360.API name:
rate_limit
-
serialize
Serialize this object to JSON.- Specified by:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
toString
-
setupGoogleAiStudioServiceSettingsDeserializer
protected static void setupGoogleAiStudioServiceSettingsDeserializer(ObjectDeserializer<GoogleAiStudioServiceSettings.Builder> op)
-