EmbeddingsRequest constructor
EmbeddingsRequest({})
Implementation
factory EmbeddingsRequest({
$core.Iterable<$core.String>? texts,
EmbeddingsOptions? options,
$core.String? requestId,
$core.String? modelId,
$core.Iterable<$core.MapEntry<$core.String, $core.String>>? metadata,
}) {
final result = create();
if (texts != null) result.texts.addAll(texts);
if (options != null) result.options = options;
if (requestId != null) result.requestId = requestId;
if (modelId != null) result.modelId = modelId;
if (metadata != null) result.metadata.addEntries(metadata);
return result;
}