Fix Stream Issues ...
This commit is contained in:
@@ -89,6 +89,8 @@ namespace xAiApi.Controllers.V1
|
||||
prompt: prompt,
|
||||
cancellationToken: cancellationToken
|
||||
);
|
||||
|
||||
//
|
||||
await foreach (var message in stream)
|
||||
{
|
||||
//
|
||||
@@ -108,7 +110,7 @@ namespace xAiApi.Controllers.V1
|
||||
// Closing Connection ...
|
||||
await Response.Body.FlushAsync();
|
||||
}
|
||||
catch
|
||||
catch (Exception)
|
||||
{ }
|
||||
}
|
||||
#endregion
|
||||
|
||||
Reference in New Issue
Block a user