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
454 changes: 320 additions & 134 deletions src/libs/Reka/Generated/Reka.ChatClient.CreateChatCompletion.g.cs

Large diffs are not rendered by default.

29 changes: 29 additions & 0 deletions src/libs/Reka/Generated/Reka.ChatClient.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ public sealed partial class ChatClient : global::Reka.IChatClient, global::Syste
#if DEBUG
= true;
#endif

/// <inheritdoc/>
public global::Reka.AutoSDKClientOptions Options { get; }
/// <summary>
///
/// </summary>
Expand All @@ -50,11 +53,37 @@ public ChatClient(
global::System.Net.Http.HttpClient? httpClient = null,
global::System.Uri? baseUri = null,
global::System.Collections.Generic.List<global::Reka.EndPointAuthorization>? authorizations = null,
bool disposeHttpClient = true) : this(
httpClient,
baseUri,
authorizations,
options: null,
disposeHttpClient: disposeHttpClient)
{
}

/// <summary>
/// Creates a new instance of the ChatClient.
/// If no httpClient is provided, a new one will be created.
/// If no baseUri is provided, the default baseUri from OpenAPI spec will be used.
/// </summary>
/// <param name="httpClient">The HttpClient instance. If not provided, a new one will be created.</param>
/// <param name="baseUri">The base URL for the API. If not provided, the default baseUri from OpenAPI spec will be used.</param>
/// <param name="authorizations">The authorizations to use for the requests.</param>
/// <param name="options">Client-wide request defaults such as headers, query parameters, retries, and timeout.</param>
/// <param name="disposeHttpClient">Dispose the HttpClient when the instance is disposed. True by default.</param>
public ChatClient(
global::System.Net.Http.HttpClient? httpClient = null,
global::System.Uri? baseUri = null,
global::System.Collections.Generic.List<global::Reka.EndPointAuthorization>? authorizations = null,
global::Reka.AutoSDKClientOptions? options = null,
bool disposeHttpClient = true)
{

HttpClient = httpClient ?? new global::System.Net.Http.HttpClient();
HttpClient.BaseAddress ??= baseUri ?? new global::System.Uri(DefaultBaseUrl);
Authorizations = authorizations ?? new global::System.Collections.Generic.List<global::Reka.EndPointAuthorization>();
Options = options ?? new global::Reka.AutoSDKClientOptions();
_disposeHttpClient = disposeHttpClient;

Initialized(HttpClient);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,13 @@ public partial interface IChatClient
/// Creates a chat completion for the provided messages and model.
/// </summary>
/// <param name="request"></param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::Reka.ApiException"></exception>
global::System.Threading.Tasks.Task<global::Reka.CreateChatCompletionResponse> CreateChatCompletionAsync(

global::Reka.CreateChatCompletionRequest request,
global::Reka.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Create a chat completion<br/>
Expand Down Expand Up @@ -71,6 +73,7 @@ public partial interface IChatClient
/// <param name="responseFormat">
/// Structured output configuration. Forces the model to return valid JSON matching a schema.
/// </param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
global::System.Threading.Tasks.Task<global::Reka.CreateChatCompletionResponse> CreateChatCompletionAsync(
Expand All @@ -89,6 +92,7 @@ public partial interface IChatClient
global::Reka.CreateChatCompletionRequestToolChoice? toolChoice = default,
global::Reka.ResearchConfig? research = default,
global::Reka.ResponseFormat? responseFormat = default,
global::Reka.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
5 changes: 5 additions & 0 deletions src/libs/Reka/Generated/Reka.IChatClient.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@ public partial interface IChatClient : global::System.IDisposable
/// </summary>
public bool ReadResponseAsString { get; set; }

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

/// <summary>
///
/// </summary>
Expand Down
2 changes: 2 additions & 0 deletions src/libs/Reka/Generated/Reka.IModelsClient.ListModels.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,11 @@ public partial interface IModelsClient
/// List models<br/>
/// List models available to the user. Different users may have access to different models depending on their permissions.
/// </summary>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::Reka.ApiException"></exception>
global::System.Threading.Tasks.Task<global::Reka.ListModelsResponse> ListModelsAsync(
global::Reka.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
5 changes: 5 additions & 0 deletions src/libs/Reka/Generated/Reka.IModelsClient.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@ public partial interface IModelsClient : global::System.IDisposable
/// </summary>
public bool ReadResponseAsString { get; set; }

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

/// <summary>
///
/// </summary>
Expand Down
5 changes: 5 additions & 0 deletions src/libs/Reka/Generated/Reka.IRekaClient.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@ public partial interface IRekaClient : global::System.IDisposable
/// </summary>
public bool ReadResponseAsString { get; set; }

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

/// <summary>
///
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,13 @@ public partial interface ISpeechClient
/// speech-to-speech translation (with audio output).
/// </summary>
/// <param name="request"></param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::Reka.ApiException"></exception>
global::System.Threading.Tasks.Task<global::Reka.TranscribeOrTranslateResponse> TranscribeOrTranslateAsync(

global::Reka.TranscribeOrTranslateRequest request,
global::Reka.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Transcribe or translate audio<br/>
Expand Down Expand Up @@ -49,6 +51,7 @@ public partial interface ISpeechClient
/// Maximum number of tokens to generate.<br/>
/// Default Value: 1024
/// </param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
global::System.Threading.Tasks.Task<global::Reka.TranscribeOrTranslateResponse> TranscribeOrTranslateAsync(
Expand All @@ -59,6 +62,7 @@ public partial interface ISpeechClient
bool? returnTranslationAudio = default,
double? temperature = default,
int? maxTokens = default,
global::Reka.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
5 changes: 5 additions & 0 deletions src/libs/Reka/Generated/Reka.ISpeechClient.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@ public partial interface ISpeechClient : global::System.IDisposable
/// </summary>
public bool ReadResponseAsString { get; set; }

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

/// <summary>
///
/// </summary>
Expand Down
Loading
Loading