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
29 changes: 27 additions & 2 deletions src/libs/Groq/Generated/Groq.AudioClient.CreateSpeech.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,25 @@ namespace Groq
{
public partial class AudioClient
{


private static readonly global::Groq.EndPointSecurityRequirement s_CreateSpeechSecurityRequirement0 =
new global::Groq.EndPointSecurityRequirement
{
Authorizations = new global::Groq.EndPointAuthorizationRequirement[]
{ new global::Groq.EndPointAuthorizationRequirement
{
Type = "Http",
Location = "Header",
Name = "Bearer",
FriendlyName = "Bearer",
},
},
};
private static readonly global::Groq.EndPointSecurityRequirement[] s_CreateSpeechSecurityRequirements =
new global::Groq.EndPointSecurityRequirement[]
{ s_CreateSpeechSecurityRequirement0,
};
partial void PrepareCreateSpeechArguments(
global::System.Net.Http.HttpClient httpClient,
global::Groq.CreateSpeechRequest request);
Expand Down Expand Up @@ -59,9 +78,15 @@ partial void ProcessCreateSpeechResponseContent(
httpClient: HttpClient,
request: request);


var __authorizations = global::Groq.EndPointSecurityResolver.ResolveAuthorizations(
availableAuthorizations: Authorizations,
securityRequirements: s_CreateSpeechSecurityRequirements,
operationName: "CreateSpeechAsync");

var __pathBuilder = new global::Groq.PathBuilder(
path: "/openai/v1/audio/speech",
baseUri: HttpClient.BaseAddress);
baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Post,
Expand All @@ -71,7 +96,7 @@ partial void ProcessCreateSpeechResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif

foreach (var __authorization in Authorizations)
foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
Expand Down
29 changes: 27 additions & 2 deletions src/libs/Groq/Generated/Groq.AudioClient.CreateTranscription.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,25 @@ namespace Groq
{
public partial class AudioClient
{


private static readonly global::Groq.EndPointSecurityRequirement s_CreateTranscriptionSecurityRequirement0 =
new global::Groq.EndPointSecurityRequirement
{
Authorizations = new global::Groq.EndPointAuthorizationRequirement[]
{ new global::Groq.EndPointAuthorizationRequirement
{
Type = "Http",
Location = "Header",
Name = "Bearer",
FriendlyName = "Bearer",
},
},
};
private static readonly global::Groq.EndPointSecurityRequirement[] s_CreateTranscriptionSecurityRequirements =
new global::Groq.EndPointSecurityRequirement[]
{ s_CreateTranscriptionSecurityRequirement0,
};
partial void PrepareCreateTranscriptionArguments(
global::System.Net.Http.HttpClient httpClient,
global::Groq.CreateTranscriptionRequest request);
Expand Down Expand Up @@ -40,9 +59,15 @@ partial void ProcessCreateTranscriptionResponseContent(
httpClient: HttpClient,
request: request);


var __authorizations = global::Groq.EndPointSecurityResolver.ResolveAuthorizations(
availableAuthorizations: Authorizations,
securityRequirements: s_CreateTranscriptionSecurityRequirements,
operationName: "CreateTranscriptionAsync");

var __pathBuilder = new global::Groq.PathBuilder(
path: "/openai/v1/audio/transcriptions",
baseUri: HttpClient.BaseAddress);
baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Post,
Expand All @@ -52,7 +77,7 @@ partial void ProcessCreateTranscriptionResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif

foreach (var __authorization in Authorizations)
foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
Expand Down
29 changes: 27 additions & 2 deletions src/libs/Groq/Generated/Groq.AudioClient.CreateTranslation.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,25 @@ namespace Groq
{
public partial class AudioClient
{


private static readonly global::Groq.EndPointSecurityRequirement s_CreateTranslationSecurityRequirement0 =
new global::Groq.EndPointSecurityRequirement
{
Authorizations = new global::Groq.EndPointAuthorizationRequirement[]
{ new global::Groq.EndPointAuthorizationRequirement
{
Type = "Http",
Location = "Header",
Name = "Bearer",
FriendlyName = "Bearer",
},
},
};
private static readonly global::Groq.EndPointSecurityRequirement[] s_CreateTranslationSecurityRequirements =
new global::Groq.EndPointSecurityRequirement[]
{ s_CreateTranslationSecurityRequirement0,
};
partial void PrepareCreateTranslationArguments(
global::System.Net.Http.HttpClient httpClient,
global::Groq.CreateTranslationRequest request);
Expand Down Expand Up @@ -40,9 +59,15 @@ partial void ProcessCreateTranslationResponseContent(
httpClient: HttpClient,
request: request);


var __authorizations = global::Groq.EndPointSecurityResolver.ResolveAuthorizations(
availableAuthorizations: Authorizations,
securityRequirements: s_CreateTranslationSecurityRequirements,
operationName: "CreateTranslationAsync");

var __pathBuilder = new global::Groq.PathBuilder(
path: "/openai/v1/audio/translations",
baseUri: HttpClient.BaseAddress);
baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Post,
Expand All @@ -52,7 +77,7 @@ partial void ProcessCreateTranslationResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif

foreach (var __authorization in Authorizations)
foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
Expand Down
2 changes: 1 addition & 1 deletion src/libs/Groq/Generated/Groq.AudioClient.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public sealed partial class AudioClient : global::Groq.IAudioClient, global::Sys
/// <summary>
///
/// </summary>
public const string DefaultBaseUrl = "https://api.groq.com";
public const string DefaultBaseUrl = "https://api.groq.com/";

private bool _disposeHttpClient = true;

Expand Down
29 changes: 27 additions & 2 deletions src/libs/Groq/Generated/Groq.BatchClient.CancelBatch.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,25 @@ namespace Groq
{
public partial class BatchClient
{


private static readonly global::Groq.EndPointSecurityRequirement s_CancelBatchSecurityRequirement0 =
new global::Groq.EndPointSecurityRequirement
{
Authorizations = new global::Groq.EndPointAuthorizationRequirement[]
{ new global::Groq.EndPointAuthorizationRequirement
{
Type = "Http",
Location = "Header",
Name = "Bearer",
FriendlyName = "Bearer",
},
},
};
private static readonly global::Groq.EndPointSecurityRequirement[] s_CancelBatchSecurityRequirements =
new global::Groq.EndPointSecurityRequirement[]
{ s_CancelBatchSecurityRequirement0,
};
partial void PrepareCancelBatchArguments(
global::System.Net.Http.HttpClient httpClient,
ref string batchId);
Expand Down Expand Up @@ -37,9 +56,15 @@ partial void ProcessCancelBatchResponseContent(
httpClient: HttpClient,
batchId: ref batchId);


var __authorizations = global::Groq.EndPointSecurityResolver.ResolveAuthorizations(
availableAuthorizations: Authorizations,
securityRequirements: s_CancelBatchSecurityRequirements,
operationName: "CancelBatchAsync");

var __pathBuilder = new global::Groq.PathBuilder(
path: $"/openai/v1/batches/{batchId}/cancel",
baseUri: HttpClient.BaseAddress);
baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Post,
Expand All @@ -49,7 +74,7 @@ partial void ProcessCancelBatchResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif

foreach (var __authorization in Authorizations)
foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
Expand Down
29 changes: 27 additions & 2 deletions src/libs/Groq/Generated/Groq.BatchClient.CreateBatch.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,25 @@ namespace Groq
{
public partial class BatchClient
{


private static readonly global::Groq.EndPointSecurityRequirement s_CreateBatchSecurityRequirement0 =
new global::Groq.EndPointSecurityRequirement
{
Authorizations = new global::Groq.EndPointAuthorizationRequirement[]
{ new global::Groq.EndPointAuthorizationRequirement
{
Type = "Http",
Location = "Header",
Name = "Bearer",
FriendlyName = "Bearer",
},
},
};
private static readonly global::Groq.EndPointSecurityRequirement[] s_CreateBatchSecurityRequirements =
new global::Groq.EndPointSecurityRequirement[]
{ s_CreateBatchSecurityRequirement0,
};
partial void PrepareCreateBatchArguments(
global::System.Net.Http.HttpClient httpClient,
global::Groq.CreateBatchRequest request);
Expand Down Expand Up @@ -40,9 +59,15 @@ partial void ProcessCreateBatchResponseContent(
httpClient: HttpClient,
request: request);


var __authorizations = global::Groq.EndPointSecurityResolver.ResolveAuthorizations(
availableAuthorizations: Authorizations,
securityRequirements: s_CreateBatchSecurityRequirements,
operationName: "CreateBatchAsync");

var __pathBuilder = new global::Groq.PathBuilder(
path: "/openai/v1/batches",
baseUri: HttpClient.BaseAddress);
baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Post,
Expand All @@ -52,7 +77,7 @@ partial void ProcessCreateBatchResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif

foreach (var __authorization in Authorizations)
foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
Expand Down
29 changes: 27 additions & 2 deletions src/libs/Groq/Generated/Groq.BatchClient.ListBatches.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,25 @@ namespace Groq
{
public partial class BatchClient
{


private static readonly global::Groq.EndPointSecurityRequirement s_ListBatchesSecurityRequirement0 =
new global::Groq.EndPointSecurityRequirement
{
Authorizations = new global::Groq.EndPointAuthorizationRequirement[]
{ new global::Groq.EndPointAuthorizationRequirement
{
Type = "Http",
Location = "Header",
Name = "Bearer",
FriendlyName = "Bearer",
},
},
};
private static readonly global::Groq.EndPointSecurityRequirement[] s_ListBatchesSecurityRequirements =
new global::Groq.EndPointSecurityRequirement[]
{ s_ListBatchesSecurityRequirement0,
};
partial void PrepareListBatchesArguments(
global::System.Net.Http.HttpClient httpClient);
partial void PrepareListBatchesRequest(
Expand Down Expand Up @@ -32,9 +51,15 @@ partial void ProcessListBatchesResponseContent(
PrepareListBatchesArguments(
httpClient: HttpClient);


var __authorizations = global::Groq.EndPointSecurityResolver.ResolveAuthorizations(
availableAuthorizations: Authorizations,
securityRequirements: s_ListBatchesSecurityRequirements,
operationName: "ListBatchesAsync");

var __pathBuilder = new global::Groq.PathBuilder(
path: "/openai/v1/batches",
baseUri: HttpClient.BaseAddress);
baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Get,
Expand All @@ -44,7 +69,7 @@ partial void ProcessListBatchesResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif

foreach (var __authorization in Authorizations)
foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
Expand Down
29 changes: 27 additions & 2 deletions src/libs/Groq/Generated/Groq.BatchClient.RetrieveBatch.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,25 @@ namespace Groq
{
public partial class BatchClient
{


private static readonly global::Groq.EndPointSecurityRequirement s_RetrieveBatchSecurityRequirement0 =
new global::Groq.EndPointSecurityRequirement
{
Authorizations = new global::Groq.EndPointAuthorizationRequirement[]
{ new global::Groq.EndPointAuthorizationRequirement
{
Type = "Http",
Location = "Header",
Name = "Bearer",
FriendlyName = "Bearer",
},
},
};
private static readonly global::Groq.EndPointSecurityRequirement[] s_RetrieveBatchSecurityRequirements =
new global::Groq.EndPointSecurityRequirement[]
{ s_RetrieveBatchSecurityRequirement0,
};
partial void PrepareRetrieveBatchArguments(
global::System.Net.Http.HttpClient httpClient,
ref string batchId);
Expand Down Expand Up @@ -37,9 +56,15 @@ partial void ProcessRetrieveBatchResponseContent(
httpClient: HttpClient,
batchId: ref batchId);


var __authorizations = global::Groq.EndPointSecurityResolver.ResolveAuthorizations(
availableAuthorizations: Authorizations,
securityRequirements: s_RetrieveBatchSecurityRequirements,
operationName: "RetrieveBatchAsync");

var __pathBuilder = new global::Groq.PathBuilder(
path: $"/openai/v1/batches/{batchId}",
baseUri: HttpClient.BaseAddress);
baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Get,
Expand All @@ -49,7 +74,7 @@ partial void ProcessRetrieveBatchResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif

foreach (var __authorization in Authorizations)
foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
Expand Down
2 changes: 1 addition & 1 deletion src/libs/Groq/Generated/Groq.BatchClient.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public sealed partial class BatchClient : global::Groq.IBatchClient, global::Sys
/// <summary>
///
/// </summary>
public const string DefaultBaseUrl = "https://api.groq.com";
public const string DefaultBaseUrl = "https://api.groq.com/";

private bool _disposeHttpClient = true;

Expand Down
Loading