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

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

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

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

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

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

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

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

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

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

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

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

private global::System.Uri? ResolveBaseUri(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,10 +132,7 @@ public ClientSideAccessTokensClient(
{

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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