Skip to content

Commit 7823d4a

Browse files
authored
fix: mistaken modelId assignment (#21)
1 parent 499401d commit 7823d4a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/SemanticKernel.DashScope/DashScopeChatCompletionService.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ public async IAsyncEnumerable<StreamingTextContent> GetStreamingTextContentsAsyn
230230
{
231231
yield return new StreamingTextContent(
232232
response.Output.Text,
233-
modelId: _modelId,
233+
modelId: string.IsNullOrEmpty(parameters.ModelId) ? _modelId : parameters.ModelId,
234234
metadata: response.ToMetaData());
235235
}
236236
}

0 commit comments

Comments
 (0)