Skip to content

Commit 7774d27

Browse files
committed
Remove now unused locals
1 parent 4faf97d commit 7774d27

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

src/Libraries/Microsoft.Extensions.AI.OpenAI/OpenAIChatClient.cs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -246,11 +246,9 @@ private static async IAsyncEnumerable<ChatResponseUpdate> FromOpenAIStreamingCha
246246
Dictionary<int, FunctionCallInfo>? functionCallInfos = null;
247247
ChatRole? streamedRole = null;
248248
ChatFinishReason? finishReason = null;
249-
StringBuilder? refusal = null;
250249
string? responseId = null;
251250
DateTimeOffset? createdAt = null;
252251
string? modelId = null;
253-
string? fingerprint = null;
254252

255253
// Process each update as it arrives
256254
await foreach (StreamingChatCompletionUpdate update in updates.WithCancellation(cancellationToken).ConfigureAwait(false))
@@ -261,7 +259,6 @@ private static async IAsyncEnumerable<ChatResponseUpdate> FromOpenAIStreamingCha
261259
responseId ??= update.CompletionId;
262260
createdAt ??= update.CreatedAt;
263261
modelId ??= update.Model;
264-
fingerprint ??= update.SystemFingerprint;
265262

266263
// Create the response content object.
267264
ChatResponseUpdate responseUpdate = new()
@@ -287,12 +284,6 @@ private static async IAsyncEnumerable<ChatResponseUpdate> FromOpenAIStreamingCha
287284
}
288285
}
289286

290-
// Transfer over refusal updates.
291-
if (update.RefusalUpdate is not null)
292-
{
293-
_ = (refusal ??= new()).Append(update.RefusalUpdate);
294-
}
295-
296287
// Transfer over tool call updates.
297288
if (update.ToolCallUpdates is { Count: > 0 } toolCallUpdates)
298289
{

0 commit comments

Comments
 (0)