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 StringapiKey()Required - A valid API key of your Google Gemini account.final StringmodelId()Required - The name of the model to use for the inference task.final RateLimitSettingThis setting helps to minimize the number of rate limit errors returned from Google AI Studio.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidsetupGoogleAiStudioServiceSettingsDeserializer(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, thegoogleaistudioservice sets the number of requests allowed per minute to 360.API name:
rate_limit -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toString
-
setupGoogleAiStudioServiceSettingsDeserializer
protected static void setupGoogleAiStudioServiceSettingsDeserializer(ObjectDeserializer<GoogleAiStudioServiceSettings.Builder> op)
-