Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions EssentialCSharp.Chat.Shared/Services/AIChatService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ public AIChatService(IOptions<AIOptions> options, AISearchService searchService,

// Create the streaming response using the Responses API
#pragma warning disable OPENAI001 // Type is for evaluation purposes only and is subject to change or removal in future updates. Suppress this diagnostic to proceed.
responseOptions.StreamingEnabled = true;
responseOptions.InputItems.Clear();
responseOptions.InputItems.Add(ResponseItem.CreateUserMessageItem(enrichedPrompt));
var streamingUpdates = _ResponseClient.CreateResponseStreamingAsync(responseOptions, cancellationToken);
Expand Down Expand Up @@ -560,6 +561,7 @@ private static CreateResponseOptions CloneOptionsWithPreviousResponseId(
Temperature = source.Temperature,
TopP = source.TopP,
ServiceTier = source.ServiceTier,
StreamingEnabled = source.StreamingEnabled,
};
foreach (var tool in source.Tools)
clone.Tools.Add(tool);
Expand Down
Loading