Skip to content

Commit

Permalink
Fix AzureAIInferenceEmbeddingGenerator to respect EmbeddingGeneration…
Browse files Browse the repository at this point in the history
…Options.Dimensions (dotnet#5575)

Merge conflict blip.
  • Loading branch information
stephentoub authored and joperezr committed Nov 5, 2024
1 parent 2aa1535 commit e90c1fa
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ private EmbeddingsOptions ToAzureAIOptions(IEnumerable<string> inputs, Embedding
{
EmbeddingsOptions result = new(inputs)
{
Dimensions = _dimensions,
Dimensions = options?.Dimensions ?? _dimensions,
Model = options?.ModelId ?? Metadata.ModelId,
EncodingFormat = format,
};
Expand Down

0 comments on commit e90c1fa

Please sign in to comment.