Fix Stream Issues ...
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user