mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-10-04 21:49:40 +00:00
Add ERI server assistant (#231)
This commit is contained in:
1 parent
cdf717ad5f
commit
8cbef49d89
76 files changed
+3581
-153
No files matched your search
@@ -0,0 +1,23 @@
|
||||
namespace AIStudio.Tools;
|
||||
|
||||
/// <summary>
|
||||
/// The result of a rate-limited HTTP stream.
|
||||
/// </summary>
|
||||
/// <param name="IsFailedAfterAllRetries">True, when the stream failed after all retries.</param>
|
||||
/// <param name="ErrorMessage">The error message which we might show to the user.</param>
|
||||
/// <param name="Response">The response from the server.</param>
|
||||
public readonly record struct HttpRateLimitedStreamResult(
|
||||
bool IsSuccessful,
|
||||
bool IsFailedAfterAllRetries,
|
||||
string ErrorMessage,
|
||||
HttpResponseMessage? Response) : IDisposable
|
||||
{
|
||||
#region IDisposable
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
this.Response?.Dispose();
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
Reference in new issue
Block a user