Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -124,10 +124,10 @@ partial void ProcessCallsQueryStreamCallsStreamQueryPostResponseContent(
}
}

if (accept != default)
{
__httpRequest.Headers.TryAddWithoutValidation("accept", accept.ToString());
}
if (accept != default)
{
__httpRequest.Headers.TryAddWithoutValidation("accept", accept.ToString());
}

var __httpRequestContentBody = request.ToJson(JsonSerializerContext);
var __httpRequestContent = new global::System.Net.Http.StringContent(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@ public partial interface IAnnotationQueuesClient : global::System.IDisposable
/// ensuring <see cref="ApiException.ResponseBody"/> is populated.
/// </summary>
public bool ReadResponseAsString { get; set; }

/// <summary>
/// Client-wide request defaults such as headers, query parameters, retries, and timeout.
/// </summary>
public global::Weave.AutoSDKClientOptions Options { get; }


/// <summary>
///
/// </summary>
Expand Down
2 changes: 1 addition & 1 deletion src/libs/Weave/Generated/Weave.ICallsClient.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@ public partial interface ICallsClient : global::System.IDisposable
/// ensuring <see cref="ApiException.ResponseBody"/> is populated.
/// </summary>
public bool ReadResponseAsString { get; set; }

/// <summary>
/// Client-wide request defaults such as headers, query parameters, retries, and timeout.
/// </summary>
public global::Weave.AutoSDKClientOptions Options { get; }


/// <summary>
///
/// </summary>
Expand Down
2 changes: 1 addition & 1 deletion src/libs/Weave/Generated/Weave.ICostsClient.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@ public partial interface ICostsClient : global::System.IDisposable
/// ensuring <see cref="ApiException.ResponseBody"/> is populated.
/// </summary>
public bool ReadResponseAsString { get; set; }

/// <summary>
/// Client-wide request defaults such as headers, query parameters, retries, and timeout.
/// </summary>
public global::Weave.AutoSDKClientOptions Options { get; }


/// <summary>
///
/// </summary>
Expand Down
2 changes: 1 addition & 1 deletion src/libs/Weave/Generated/Weave.IDatasetsClient.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@ public partial interface IDatasetsClient : global::System.IDisposable
/// ensuring <see cref="ApiException.ResponseBody"/> is populated.
/// </summary>
public bool ReadResponseAsString { get; set; }

/// <summary>
/// Client-wide request defaults such as headers, query parameters, retries, and timeout.
/// </summary>
public global::Weave.AutoSDKClientOptions Options { get; }


/// <summary>
///
/// </summary>
Expand Down
2 changes: 1 addition & 1 deletion src/libs/Weave/Generated/Weave.IEvalResultsClient.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@ public partial interface IEvalResultsClient : global::System.IDisposable
/// ensuring <see cref="ApiException.ResponseBody"/> is populated.
/// </summary>
public bool ReadResponseAsString { get; set; }

/// <summary>
/// Client-wide request defaults such as headers, query parameters, retries, and timeout.
/// </summary>
public global::Weave.AutoSDKClientOptions Options { get; }


/// <summary>
///
/// </summary>
Expand Down
2 changes: 1 addition & 1 deletion src/libs/Weave/Generated/Weave.IEvaluationRunsClient.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@ public partial interface IEvaluationRunsClient : global::System.IDisposable
/// ensuring <see cref="ApiException.ResponseBody"/> is populated.
/// </summary>
public bool ReadResponseAsString { get; set; }

/// <summary>
/// Client-wide request defaults such as headers, query parameters, retries, and timeout.
/// </summary>
public global::Weave.AutoSDKClientOptions Options { get; }


/// <summary>
///
/// </summary>
Expand Down
2 changes: 1 addition & 1 deletion src/libs/Weave/Generated/Weave.IEvaluationsClient.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@ public partial interface IEvaluationsClient : global::System.IDisposable
/// ensuring <see cref="ApiException.ResponseBody"/> is populated.
/// </summary>
public bool ReadResponseAsString { get; set; }

/// <summary>
/// Client-wide request defaults such as headers, query parameters, retries, and timeout.
/// </summary>
public global::Weave.AutoSDKClientOptions Options { get; }


/// <summary>
///
/// </summary>
Expand Down
2 changes: 1 addition & 1 deletion src/libs/Weave/Generated/Weave.IFeedbackClient.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@ public partial interface IFeedbackClient : global::System.IDisposable
/// ensuring <see cref="ApiException.ResponseBody"/> is populated.
/// </summary>
public bool ReadResponseAsString { get; set; }

/// <summary>
/// Client-wide request defaults such as headers, query parameters, retries, and timeout.
/// </summary>
public global::Weave.AutoSDKClientOptions Options { get; }


/// <summary>
///
/// </summary>
Expand Down
2 changes: 1 addition & 1 deletion src/libs/Weave/Generated/Weave.IFilesClient.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@ public partial interface IFilesClient : global::System.IDisposable
/// ensuring <see cref="ApiException.ResponseBody"/> is populated.
/// </summary>
public bool ReadResponseAsString { get; set; }

/// <summary>
/// Client-wide request defaults such as headers, query parameters, retries, and timeout.
/// </summary>
public global::Weave.AutoSDKClientOptions Options { get; }


/// <summary>
///
/// </summary>
Expand Down
2 changes: 1 addition & 1 deletion src/libs/Weave/Generated/Weave.IImagesClient.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@ public partial interface IImagesClient : global::System.IDisposable
/// ensuring <see cref="ApiException.ResponseBody"/> is populated.
/// </summary>
public bool ReadResponseAsString { get; set; }

/// <summary>
/// Client-wide request defaults such as headers, query parameters, retries, and timeout.
/// </summary>
public global::Weave.AutoSDKClientOptions Options { get; }


/// <summary>
///
/// </summary>
Expand Down
2 changes: 1 addition & 1 deletion src/libs/Weave/Generated/Weave.IInferenceClient.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@ public partial interface IInferenceClient : global::System.IDisposable
/// ensuring <see cref="ApiException.ResponseBody"/> is populated.
/// </summary>
public bool ReadResponseAsString { get; set; }

/// <summary>
/// Client-wide request defaults such as headers, query parameters, retries, and timeout.
/// </summary>
public global::Weave.AutoSDKClientOptions Options { get; }


/// <summary>
///
/// </summary>
Expand Down
2 changes: 1 addition & 1 deletion src/libs/Weave/Generated/Weave.IModelsClient.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@ public partial interface IModelsClient : global::System.IDisposable
/// ensuring <see cref="ApiException.ResponseBody"/> is populated.
/// </summary>
public bool ReadResponseAsString { get; set; }

/// <summary>
/// Client-wide request defaults such as headers, query parameters, retries, and timeout.
/// </summary>
public global::Weave.AutoSDKClientOptions Options { get; }


/// <summary>
///
/// </summary>
Expand Down
2 changes: 1 addition & 1 deletion src/libs/Weave/Generated/Weave.IObjectsClient.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@ public partial interface IObjectsClient : global::System.IDisposable
/// ensuring <see cref="ApiException.ResponseBody"/> is populated.
/// </summary>
public bool ReadResponseAsString { get; set; }

/// <summary>
/// Client-wide request defaults such as headers, query parameters, retries, and timeout.
/// </summary>
public global::Weave.AutoSDKClientOptions Options { get; }


/// <summary>
///
/// </summary>
Expand Down
2 changes: 1 addition & 1 deletion src/libs/Weave/Generated/Weave.IOpenTelemetryClient.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@ public partial interface IOpenTelemetryClient : global::System.IDisposable
/// ensuring <see cref="ApiException.ResponseBody"/> is populated.
/// </summary>
public bool ReadResponseAsString { get; set; }

/// <summary>
/// Client-wide request defaults such as headers, query parameters, retries, and timeout.
/// </summary>
public global::Weave.AutoSDKClientOptions Options { get; }


/// <summary>
///
/// </summary>
Expand Down
2 changes: 1 addition & 1 deletion src/libs/Weave/Generated/Weave.IOpsClient.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@ public partial interface IOpsClient : global::System.IDisposable
/// ensuring <see cref="ApiException.ResponseBody"/> is populated.
/// </summary>
public bool ReadResponseAsString { get; set; }

/// <summary>
/// Client-wide request defaults such as headers, query parameters, retries, and timeout.
/// </summary>
public global::Weave.AutoSDKClientOptions Options { get; }


/// <summary>
///
/// </summary>
Expand Down
2 changes: 1 addition & 1 deletion src/libs/Weave/Generated/Weave.IPredictionsClient.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@ public partial interface IPredictionsClient : global::System.IDisposable
/// ensuring <see cref="ApiException.ResponseBody"/> is populated.
/// </summary>
public bool ReadResponseAsString { get; set; }

/// <summary>
/// Client-wide request defaults such as headers, query parameters, retries, and timeout.
/// </summary>
public global::Weave.AutoSDKClientOptions Options { get; }


/// <summary>
///
/// </summary>
Expand Down
2 changes: 1 addition & 1 deletion src/libs/Weave/Generated/Weave.IRefsClient.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@ public partial interface IRefsClient : global::System.IDisposable
/// ensuring <see cref="ApiException.ResponseBody"/> is populated.
/// </summary>
public bool ReadResponseAsString { get; set; }

/// <summary>
/// Client-wide request defaults such as headers, query parameters, retries, and timeout.
/// </summary>
public global::Weave.AutoSDKClientOptions Options { get; }


/// <summary>
///
/// </summary>
Expand Down
2 changes: 1 addition & 1 deletion src/libs/Weave/Generated/Weave.IScorersClient.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@ public partial interface IScorersClient : global::System.IDisposable
/// ensuring <see cref="ApiException.ResponseBody"/> is populated.
/// </summary>
public bool ReadResponseAsString { get; set; }

/// <summary>
/// Client-wide request defaults such as headers, query parameters, retries, and timeout.
/// </summary>
public global::Weave.AutoSDKClientOptions Options { get; }


/// <summary>
///
/// </summary>
Expand Down
2 changes: 1 addition & 1 deletion src/libs/Weave/Generated/Weave.IScoresClient.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@ public partial interface IScoresClient : global::System.IDisposable
/// ensuring <see cref="ApiException.ResponseBody"/> is populated.
/// </summary>
public bool ReadResponseAsString { get; set; }

/// <summary>
/// Client-wide request defaults such as headers, query parameters, retries, and timeout.
/// </summary>
public global::Weave.AutoSDKClientOptions Options { get; }


/// <summary>
///
/// </summary>
Expand Down
2 changes: 1 addition & 1 deletion src/libs/Weave/Generated/Weave.IServiceClient.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@ public partial interface IServiceClient : global::System.IDisposable
/// ensuring <see cref="ApiException.ResponseBody"/> is populated.
/// </summary>
public bool ReadResponseAsString { get; set; }

/// <summary>
/// Client-wide request defaults such as headers, query parameters, retries, and timeout.
/// </summary>
public global::Weave.AutoSDKClientOptions Options { get; }


/// <summary>
///
/// </summary>
Expand Down
2 changes: 1 addition & 1 deletion src/libs/Weave/Generated/Weave.ITablesClient.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@ public partial interface ITablesClient : global::System.IDisposable
/// ensuring <see cref="ApiException.ResponseBody"/> is populated.
/// </summary>
public bool ReadResponseAsString { get; set; }

/// <summary>
/// Client-wide request defaults such as headers, query parameters, retries, and timeout.
/// </summary>
public global::Weave.AutoSDKClientOptions Options { get; }


/// <summary>
///
/// </summary>
Expand Down
2 changes: 1 addition & 1 deletion src/libs/Weave/Generated/Weave.IThreadsClient.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@ public partial interface IThreadsClient : global::System.IDisposable
/// ensuring <see cref="ApiException.ResponseBody"/> is populated.
/// </summary>
public bool ReadResponseAsString { get; set; }

/// <summary>
/// Client-wide request defaults such as headers, query parameters, retries, and timeout.
/// </summary>
public global::Weave.AutoSDKClientOptions Options { get; }


/// <summary>
///
/// </summary>
Expand Down
2 changes: 1 addition & 1 deletion src/libs/Weave/Generated/Weave.IWeaveClient.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,12 @@ public partial interface IWeaveClient : global::System.IDisposable
/// ensuring <see cref="ApiException.ResponseBody"/> is populated.
/// </summary>
public bool ReadResponseAsString { get; set; }

/// <summary>
/// Client-wide request defaults such as headers, query parameters, retries, and timeout.
/// </summary>
public global::Weave.AutoSDKClientOptions Options { get; }


/// <summary>
///
/// </summary>
Expand Down
2 changes: 2 additions & 0 deletions src/libs/Weave/Generated/Weave.OptionsSupport.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ public sealed class AutoSDKRetryOptions
public global::System.TimeSpan? Delay { get; set; }
}


/// <summary>
/// Runtime hook interface for generated SDK lifecycle events.
/// </summary>
Expand Down Expand Up @@ -236,6 +237,7 @@ public sealed class AutoSDKHookContext
public global::System.Threading.CancellationToken CancellationToken { get; set; }
}


internal static class AutoSDKRequestOptionsSupport
{
internal static global::Weave.AutoSDKHookContext CreateHookContext(
Expand Down