Fix Stream Issues ...

This commit is contained in:
2026-04-16 23:06:02 +03:30
parent 509acc1488
commit 43d0433a8e
+3 -1
View File
@@ -89,6 +89,8 @@ namespace xAiApi.Controllers.V1
prompt: prompt, prompt: prompt,
cancellationToken: cancellationToken cancellationToken: cancellationToken
); );
//
await foreach (var message in stream) await foreach (var message in stream)
{ {
// //
@@ -108,7 +110,7 @@ namespace xAiApi.Controllers.V1
// Closing Connection ... // Closing Connection ...
await Response.Body.FlushAsync(); await Response.Body.FlushAsync();
} }
catch catch (Exception)
{ } { }
} }
#endregion #endregion