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
7 changes: 5 additions & 2 deletions src/libs/Helicone/Generated/Helicone.AgentClient.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,10 @@ public AgentClient(
{

HttpClient = httpClient ?? new global::System.Net.Http.HttpClient();
HttpClient.BaseAddress ??= baseUri ?? new global::System.Uri(DefaultBaseUrl);
if (baseUri is not null)
{
HttpClient.BaseAddress ??= baseUri;
}
Authorizations = authorizations ?? new global::System.Collections.Generic.List<global::Helicone.EndPointAuthorization>();
Options = options ?? new global::Helicone.AutoSDKClientOptions();
_disposeHttpClient = disposeHttpClient;
Expand Down Expand Up @@ -245,7 +248,7 @@ private void SelectServer(global::Helicone.AutoSDKServer? server)
return explicitBaseUri;
}

return ResolveSelectedServer()?.Uri ?? HttpClient.BaseAddress;
return ResolveSelectedServer()?.Uri ?? (s_availableServers.Length > 0 ? s_availableServers[0].Uri : HttpClient.BaseAddress);
}

private global::System.Uri? ResolveBaseUri(
Expand Down
7 changes: 5 additions & 2 deletions src/libs/Helicone/Generated/Helicone.ApiKeyClient.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,10 @@ public ApiKeyClient(
{

HttpClient = httpClient ?? new global::System.Net.Http.HttpClient();
HttpClient.BaseAddress ??= baseUri ?? new global::System.Uri(DefaultBaseUrl);
if (baseUri is not null)
{
HttpClient.BaseAddress ??= baseUri;
}
Authorizations = authorizations ?? new global::System.Collections.Generic.List<global::Helicone.EndPointAuthorization>();
Options = options ?? new global::Helicone.AutoSDKClientOptions();
_disposeHttpClient = disposeHttpClient;
Expand Down Expand Up @@ -245,7 +248,7 @@ private void SelectServer(global::Helicone.AutoSDKServer? server)
return explicitBaseUri;
}

return ResolveSelectedServer()?.Uri ?? HttpClient.BaseAddress;
return ResolveSelectedServer()?.Uri ?? (s_availableServers.Length > 0 ? s_availableServers[0].Uri : HttpClient.BaseAddress);
}

private global::System.Uri? ResolveBaseUri(
Expand Down
7 changes: 5 additions & 2 deletions src/libs/Helicone/Generated/Helicone.ComparisonClient.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,10 @@ public ComparisonClient(
{

HttpClient = httpClient ?? new global::System.Net.Http.HttpClient();
HttpClient.BaseAddress ??= baseUri ?? new global::System.Uri(DefaultBaseUrl);
if (baseUri is not null)
{
HttpClient.BaseAddress ??= baseUri;
}
Authorizations = authorizations ?? new global::System.Collections.Generic.List<global::Helicone.EndPointAuthorization>();
Options = options ?? new global::Helicone.AutoSDKClientOptions();
_disposeHttpClient = disposeHttpClient;
Expand Down Expand Up @@ -245,7 +248,7 @@ private void SelectServer(global::Helicone.AutoSDKServer? server)
return explicitBaseUri;
}

return ResolveSelectedServer()?.Uri ?? HttpClient.BaseAddress;
return ResolveSelectedServer()?.Uri ?? (s_availableServers.Length > 0 ? s_availableServers[0].Uri : HttpClient.BaseAddress);
}

private global::System.Uri? ResolveBaseUri(
Expand Down
7 changes: 5 additions & 2 deletions src/libs/Helicone/Generated/Helicone.CreditsClient.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,10 @@ public CreditsClient(
{

HttpClient = httpClient ?? new global::System.Net.Http.HttpClient();
HttpClient.BaseAddress ??= baseUri ?? new global::System.Uri(DefaultBaseUrl);
if (baseUri is not null)
{
HttpClient.BaseAddress ??= baseUri;
}
Authorizations = authorizations ?? new global::System.Collections.Generic.List<global::Helicone.EndPointAuthorization>();
Options = options ?? new global::Helicone.AutoSDKClientOptions();
_disposeHttpClient = disposeHttpClient;
Expand Down Expand Up @@ -245,7 +248,7 @@ private void SelectServer(global::Helicone.AutoSDKServer? server)
return explicitBaseUri;
}

return ResolveSelectedServer()?.Uri ?? HttpClient.BaseAddress;
return ResolveSelectedServer()?.Uri ?? (s_availableServers.Length > 0 ? s_availableServers[0].Uri : HttpClient.BaseAddress);
}

private global::System.Uri? ResolveBaseUri(
Expand Down
7 changes: 5 additions & 2 deletions src/libs/Helicone/Generated/Helicone.CustomerClient.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,10 @@ public CustomerClient(
{

HttpClient = httpClient ?? new global::System.Net.Http.HttpClient();
HttpClient.BaseAddress ??= baseUri ?? new global::System.Uri(DefaultBaseUrl);
if (baseUri is not null)
{
HttpClient.BaseAddress ??= baseUri;
}
Authorizations = authorizations ?? new global::System.Collections.Generic.List<global::Helicone.EndPointAuthorization>();
Options = options ?? new global::Helicone.AutoSDKClientOptions();
_disposeHttpClient = disposeHttpClient;
Expand Down Expand Up @@ -245,7 +248,7 @@ private void SelectServer(global::Helicone.AutoSDKServer? server)
return explicitBaseUri;
}

return ResolveSelectedServer()?.Uri ?? HttpClient.BaseAddress;
return ResolveSelectedServer()?.Uri ?? (s_availableServers.Length > 0 ? s_availableServers[0].Uri : HttpClient.BaseAddress);
}

private global::System.Uri? ResolveBaseUri(
Expand Down
7 changes: 5 additions & 2 deletions src/libs/Helicone/Generated/Helicone.DashboardClient.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,10 @@ public DashboardClient(
{

HttpClient = httpClient ?? new global::System.Net.Http.HttpClient();
HttpClient.BaseAddress ??= baseUri ?? new global::System.Uri(DefaultBaseUrl);
if (baseUri is not null)
{
HttpClient.BaseAddress ??= baseUri;
}
Authorizations = authorizations ?? new global::System.Collections.Generic.List<global::Helicone.EndPointAuthorization>();
Options = options ?? new global::Helicone.AutoSDKClientOptions();
_disposeHttpClient = disposeHttpClient;
Expand Down Expand Up @@ -245,7 +248,7 @@ private void SelectServer(global::Helicone.AutoSDKServer? server)
return explicitBaseUri;
}

return ResolveSelectedServer()?.Uri ?? HttpClient.BaseAddress;
return ResolveSelectedServer()?.Uri ?? (s_availableServers.Length > 0 ? s_availableServers[0].Uri : HttpClient.BaseAddress);
}

private global::System.Uri? ResolveBaseUri(
Expand Down
7 changes: 5 additions & 2 deletions src/libs/Helicone/Generated/Helicone.DatasetClient.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,10 @@ public DatasetClient(
{

HttpClient = httpClient ?? new global::System.Net.Http.HttpClient();
HttpClient.BaseAddress ??= baseUri ?? new global::System.Uri(DefaultBaseUrl);
if (baseUri is not null)
{
HttpClient.BaseAddress ??= baseUri;
}
Authorizations = authorizations ?? new global::System.Collections.Generic.List<global::Helicone.EndPointAuthorization>();
Options = options ?? new global::Helicone.AutoSDKClientOptions();
_disposeHttpClient = disposeHttpClient;
Expand Down Expand Up @@ -245,7 +248,7 @@ private void SelectServer(global::Helicone.AutoSDKServer? server)
return explicitBaseUri;
}

return ResolveSelectedServer()?.Uri ?? HttpClient.BaseAddress;
return ResolveSelectedServer()?.Uri ?? (s_availableServers.Length > 0 ? s_availableServers[0].Uri : HttpClient.BaseAddress);
}

private global::System.Uri? ResolveBaseUri(
Expand Down
7 changes: 5 additions & 2 deletions src/libs/Helicone/Generated/Helicone.EvalsClient.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,10 @@ public EvalsClient(
{

HttpClient = httpClient ?? new global::System.Net.Http.HttpClient();
HttpClient.BaseAddress ??= baseUri ?? new global::System.Uri(DefaultBaseUrl);
if (baseUri is not null)
{
HttpClient.BaseAddress ??= baseUri;
}
Authorizations = authorizations ?? new global::System.Collections.Generic.List<global::Helicone.EndPointAuthorization>();
Options = options ?? new global::Helicone.AutoSDKClientOptions();
_disposeHttpClient = disposeHttpClient;
Expand Down Expand Up @@ -245,7 +248,7 @@ private void SelectServer(global::Helicone.AutoSDKServer? server)
return explicitBaseUri;
}

return ResolveSelectedServer()?.Uri ?? HttpClient.BaseAddress;
return ResolveSelectedServer()?.Uri ?? (s_availableServers.Length > 0 ? s_availableServers[0].Uri : HttpClient.BaseAddress);
}

private global::System.Uri? ResolveBaseUri(
Expand Down
7 changes: 5 additions & 2 deletions src/libs/Helicone/Generated/Helicone.EvaluatorClient.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,10 @@ public EvaluatorClient(
{

HttpClient = httpClient ?? new global::System.Net.Http.HttpClient();
HttpClient.BaseAddress ??= baseUri ?? new global::System.Uri(DefaultBaseUrl);
if (baseUri is not null)
{
HttpClient.BaseAddress ??= baseUri;
}
Authorizations = authorizations ?? new global::System.Collections.Generic.List<global::Helicone.EndPointAuthorization>();
Options = options ?? new global::Helicone.AutoSDKClientOptions();
_disposeHttpClient = disposeHttpClient;
Expand Down Expand Up @@ -245,7 +248,7 @@ private void SelectServer(global::Helicone.AutoSDKServer? server)
return explicitBaseUri;
}

return ResolveSelectedServer()?.Uri ?? HttpClient.BaseAddress;
return ResolveSelectedServer()?.Uri ?? (s_availableServers.Length > 0 ? s_availableServers[0].Uri : HttpClient.BaseAddress);
}

private global::System.Uri? ResolveBaseUri(
Expand Down
7 changes: 5 additions & 2 deletions src/libs/Helicone/Generated/Helicone.ExperimentClient.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,10 @@ public ExperimentClient(
{

HttpClient = httpClient ?? new global::System.Net.Http.HttpClient();
HttpClient.BaseAddress ??= baseUri ?? new global::System.Uri(DefaultBaseUrl);
if (baseUri is not null)
{
HttpClient.BaseAddress ??= baseUri;
}
Authorizations = authorizations ?? new global::System.Collections.Generic.List<global::Helicone.EndPointAuthorization>();
Options = options ?? new global::Helicone.AutoSDKClientOptions();
_disposeHttpClient = disposeHttpClient;
Expand Down Expand Up @@ -245,7 +248,7 @@ private void SelectServer(global::Helicone.AutoSDKServer? server)
return explicitBaseUri;
}

return ResolveSelectedServer()?.Uri ?? HttpClient.BaseAddress;
return ResolveSelectedServer()?.Uri ?? (s_availableServers.Length > 0 ? s_availableServers[0].Uri : HttpClient.BaseAddress);
}

private global::System.Uri? ResolveBaseUri(
Expand Down
7 changes: 5 additions & 2 deletions src/libs/Helicone/Generated/Helicone.HeliconeClient.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,10 @@ public HeliconeClient(
{

HttpClient = httpClient ?? new global::System.Net.Http.HttpClient();
HttpClient.BaseAddress ??= baseUri ?? new global::System.Uri(DefaultBaseUrl);
if (baseUri is not null)
{
HttpClient.BaseAddress ??= baseUri;
}
Authorizations = authorizations ?? new global::System.Collections.Generic.List<global::Helicone.EndPointAuthorization>();
Options = options ?? new global::Helicone.AutoSDKClientOptions();
_disposeHttpClient = disposeHttpClient;
Expand Down Expand Up @@ -575,7 +578,7 @@ private void SelectServer(global::Helicone.AutoSDKServer? server)
return explicitBaseUri;
}

return ResolveSelectedServer()?.Uri ?? HttpClient.BaseAddress;
return ResolveSelectedServer()?.Uri ?? (s_availableServers.Length > 0 ? s_availableServers[0].Uri : HttpClient.BaseAddress);
}

private global::System.Uri? ResolveBaseUri(
Expand Down
7 changes: 5 additions & 2 deletions src/libs/Helicone/Generated/Helicone.HeliconeSqlClient.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,10 @@ public HeliconeSqlClient(
{

HttpClient = httpClient ?? new global::System.Net.Http.HttpClient();
HttpClient.BaseAddress ??= baseUri ?? new global::System.Uri(DefaultBaseUrl);
if (baseUri is not null)
{
HttpClient.BaseAddress ??= baseUri;
}
Authorizations = authorizations ?? new global::System.Collections.Generic.List<global::Helicone.EndPointAuthorization>();
Options = options ?? new global::Helicone.AutoSDKClientOptions();
_disposeHttpClient = disposeHttpClient;
Expand Down Expand Up @@ -245,7 +248,7 @@ private void SelectServer(global::Helicone.AutoSDKServer? server)
return explicitBaseUri;
}

return ResolveSelectedServer()?.Uri ?? HttpClient.BaseAddress;
return ResolveSelectedServer()?.Uri ?? (s_availableServers.Length > 0 ? s_availableServers[0].Uri : HttpClient.BaseAddress);
}

private global::System.Uri? ResolveBaseUri(
Expand Down
7 changes: 5 additions & 2 deletions src/libs/Helicone/Generated/Helicone.IntegrationClient.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,10 @@ public IntegrationClient(
{

HttpClient = httpClient ?? new global::System.Net.Http.HttpClient();
HttpClient.BaseAddress ??= baseUri ?? new global::System.Uri(DefaultBaseUrl);
if (baseUri is not null)
{
HttpClient.BaseAddress ??= baseUri;
}
Authorizations = authorizations ?? new global::System.Collections.Generic.List<global::Helicone.EndPointAuthorization>();
Options = options ?? new global::Helicone.AutoSDKClientOptions();
_disposeHttpClient = disposeHttpClient;
Expand Down Expand Up @@ -245,7 +248,7 @@ private void SelectServer(global::Helicone.AutoSDKServer? server)
return explicitBaseUri;
}

return ResolveSelectedServer()?.Uri ?? HttpClient.BaseAddress;
return ResolveSelectedServer()?.Uri ?? (s_availableServers.Length > 0 ? s_availableServers[0].Uri : HttpClient.BaseAddress);
}

private global::System.Uri? ResolveBaseUri(
Expand Down
7 changes: 5 additions & 2 deletions src/libs/Helicone/Generated/Helicone.MetricsClient.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,10 @@ public MetricsClient(
{

HttpClient = httpClient ?? new global::System.Net.Http.HttpClient();
HttpClient.BaseAddress ??= baseUri ?? new global::System.Uri(DefaultBaseUrl);
if (baseUri is not null)
{
HttpClient.BaseAddress ??= baseUri;
}
Authorizations = authorizations ?? new global::System.Collections.Generic.List<global::Helicone.EndPointAuthorization>();
Options = options ?? new global::Helicone.AutoSDKClientOptions();
_disposeHttpClient = disposeHttpClient;
Expand Down Expand Up @@ -245,7 +248,7 @@ private void SelectServer(global::Helicone.AutoSDKServer? server)
return explicitBaseUri;
}

return ResolveSelectedServer()?.Uri ?? HttpClient.BaseAddress;
return ResolveSelectedServer()?.Uri ?? (s_availableServers.Length > 0 ? s_availableServers[0].Uri : HttpClient.BaseAddress);
}

private global::System.Uri? ResolveBaseUri(
Expand Down
7 changes: 5 additions & 2 deletions src/libs/Helicone/Generated/Helicone.ModelRegistryClient.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,10 @@ public ModelRegistryClient(
{

HttpClient = httpClient ?? new global::System.Net.Http.HttpClient();
HttpClient.BaseAddress ??= baseUri ?? new global::System.Uri(DefaultBaseUrl);
if (baseUri is not null)
{
HttpClient.BaseAddress ??= baseUri;
}
Authorizations = authorizations ?? new global::System.Collections.Generic.List<global::Helicone.EndPointAuthorization>();
Options = options ?? new global::Helicone.AutoSDKClientOptions();
_disposeHttpClient = disposeHttpClient;
Expand Down Expand Up @@ -245,7 +248,7 @@ private void SelectServer(global::Helicone.AutoSDKServer? server)
return explicitBaseUri;
}

return ResolveSelectedServer()?.Uri ?? HttpClient.BaseAddress;
return ResolveSelectedServer()?.Uri ?? (s_availableServers.Length > 0 ? s_availableServers[0].Uri : HttpClient.BaseAddress);
}

private global::System.Uri? ResolveBaseUri(
Expand Down
7 changes: 5 additions & 2 deletions src/libs/Helicone/Generated/Helicone.ModelsClient.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,10 @@ public ModelsClient(
{

HttpClient = httpClient ?? new global::System.Net.Http.HttpClient();
HttpClient.BaseAddress ??= baseUri ?? new global::System.Uri(DefaultBaseUrl);
if (baseUri is not null)
{
HttpClient.BaseAddress ??= baseUri;
}
Authorizations = authorizations ?? new global::System.Collections.Generic.List<global::Helicone.EndPointAuthorization>();
Options = options ?? new global::Helicone.AutoSDKClientOptions();
_disposeHttpClient = disposeHttpClient;
Expand Down Expand Up @@ -245,7 +248,7 @@ private void SelectServer(global::Helicone.AutoSDKServer? server)
return explicitBaseUri;
}

return ResolveSelectedServer()?.Uri ?? HttpClient.BaseAddress;
return ResolveSelectedServer()?.Uri ?? (s_availableServers.Length > 0 ? s_availableServers[0].Uri : HttpClient.BaseAddress);
}

private global::System.Uri? ResolveBaseUri(
Expand Down
7 changes: 5 additions & 2 deletions src/libs/Helicone/Generated/Helicone.PiClient.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,10 @@ public PiClient(
{

HttpClient = httpClient ?? new global::System.Net.Http.HttpClient();
HttpClient.BaseAddress ??= baseUri ?? new global::System.Uri(DefaultBaseUrl);
if (baseUri is not null)
{
HttpClient.BaseAddress ??= baseUri;
}
Authorizations = authorizations ?? new global::System.Collections.Generic.List<global::Helicone.EndPointAuthorization>();
Options = options ?? new global::Helicone.AutoSDKClientOptions();
_disposeHttpClient = disposeHttpClient;
Expand Down Expand Up @@ -245,7 +248,7 @@ private void SelectServer(global::Helicone.AutoSDKServer? server)
return explicitBaseUri;
}

return ResolveSelectedServer()?.Uri ?? HttpClient.BaseAddress;
return ResolveSelectedServer()?.Uri ?? (s_availableServers.Length > 0 ? s_availableServers[0].Uri : HttpClient.BaseAddress);
}

private global::System.Uri? ResolveBaseUri(
Expand Down
7 changes: 5 additions & 2 deletions src/libs/Helicone/Generated/Helicone.PlaygroundClient.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,10 @@ public PlaygroundClient(
{

HttpClient = httpClient ?? new global::System.Net.Http.HttpClient();
HttpClient.BaseAddress ??= baseUri ?? new global::System.Uri(DefaultBaseUrl);
if (baseUri is not null)
{
HttpClient.BaseAddress ??= baseUri;
}
Authorizations = authorizations ?? new global::System.Collections.Generic.List<global::Helicone.EndPointAuthorization>();
Options = options ?? new global::Helicone.AutoSDKClientOptions();
_disposeHttpClient = disposeHttpClient;
Expand Down Expand Up @@ -245,7 +248,7 @@ private void SelectServer(global::Helicone.AutoSDKServer? server)
return explicitBaseUri;
}

return ResolveSelectedServer()?.Uri ?? HttpClient.BaseAddress;
return ResolveSelectedServer()?.Uri ?? (s_availableServers.Length > 0 ? s_availableServers[0].Uri : HttpClient.BaseAddress);
}

private global::System.Uri? ResolveBaseUri(
Expand Down
7 changes: 5 additions & 2 deletions src/libs/Helicone/Generated/Helicone.Prompt2025Client.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,10 @@ public Prompt2025Client(
{

HttpClient = httpClient ?? new global::System.Net.Http.HttpClient();
HttpClient.BaseAddress ??= baseUri ?? new global::System.Uri(DefaultBaseUrl);
if (baseUri is not null)
{
HttpClient.BaseAddress ??= baseUri;
}
Authorizations = authorizations ?? new global::System.Collections.Generic.List<global::Helicone.EndPointAuthorization>();
Options = options ?? new global::Helicone.AutoSDKClientOptions();
_disposeHttpClient = disposeHttpClient;
Expand Down Expand Up @@ -245,7 +248,7 @@ private void SelectServer(global::Helicone.AutoSDKServer? server)
return explicitBaseUri;
}

return ResolveSelectedServer()?.Uri ?? HttpClient.BaseAddress;
return ResolveSelectedServer()?.Uri ?? (s_availableServers.Length > 0 ? s_availableServers[0].Uri : HttpClient.BaseAddress);
}

private global::System.Uri? ResolveBaseUri(
Expand Down
Loading