outputDimensionality property

int? outputDimensionality
final

Optional. Optional reduced 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).

Implementation

final int? outputDimensionality;