OptionalabortAbort signal which can be used to cancel the request.
NOTE: AbortSignal is a client-only operation. Using it to cancel an operation will not cancel the request in the service. You will still be charged usage for any applicable operations.
OptionalautoVertex API only. Whether to silently truncate inputs longer than the max sequence length. If this option is set to false, oversized inputs will lead to an INVALID_ARGUMENT error, similar to other text APIs.
OptionalhttpUsed to override HTTP request options.
OptionalmimeVertex API only. The MIME type of the input.
OptionaloutputReduced dimension for the output embedding. If set,
excessive values in the output embedding are truncated from the end.
Supported by newer models since 2024 only. You cannot set this value if
using the earlier model (models/embedding-001).
OptionaltaskType of task for which the embedding will be used.
OptionaltitleTitle for the text. Only applicable when TaskType is
RETRIEVAL_DOCUMENT.
Optional parameters for the embed_content method.