You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/ProjectTemplates/Microsoft.Extensions.AI.Templates/src/ChatWithCustomData/ChatWithCustomData-CSharp.Web/Components/Pages/Chat/Chat.razor
-10Lines changed: 0 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -62,15 +62,6 @@
62
62
chatSuggestions?.Clear();
63
63
awaitchatInput!.FocusAsync();
64
64
65
-
@*#if (IsOllama)
66
-
// Display a new response from the IChatClient, streaming responses
67
-
// aren't supported because Ollama will not support both streaming and using Tools
68
-
currentResponseCancellation = new();
69
-
var response = await ChatClient.GetResponseAsync(messages, chatOptions, currentResponseCancellation.Token);
70
-
71
-
// Store responses in the conversation, and begin getting suggestions
72
-
messages.AddMessages(response);
73
-
#else*@
74
65
// Stream and display a new response from the IChatClient
Copy file name to clipboardExpand all lines: test/ProjectTemplates/Microsoft.Extensions.AI.Templates.IntegrationTests/Snapshots/aichatweb.Ollama_Qdrant.verified/aichatweb/aichatweb.Web/Components/Pages/Chat/Chat.razor
+12-5Lines changed: 12 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -62,13 +62,20 @@
62
62
chatSuggestions?.Clear();
63
63
awaitchatInput!.FocusAsync();
64
64
65
-
// Display a new response from the IChatClient, streaming responses
66
-
// aren't supported because Ollama will not support both streaming and using Tools
65
+
// Stream and display a new response from the IChatClient
0 commit comments