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/Letta/Generated/Letta.AgentsClient.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,10 @@ public AgentsClient(
{

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::Letta.EndPointAuthorization>();
Options = options ?? new global::Letta.AutoSDKClientOptions();
_disposeHttpClient = disposeHttpClient;
Expand Down Expand Up @@ -245,7 +248,7 @@ private void SelectServer(global::Letta.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/Letta/Generated/Letta.ArchivesClient.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,10 @@ public ArchivesClient(
{

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::Letta.EndPointAuthorization>();
Options = options ?? new global::Letta.AutoSDKClientOptions();
_disposeHttpClient = disposeHttpClient;
Expand Down Expand Up @@ -245,7 +248,7 @@ private void SelectServer(global::Letta.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/Letta/Generated/Letta.BlocksClient.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,10 @@ public BlocksClient(
{

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::Letta.EndPointAuthorization>();
Options = options ?? new global::Letta.AutoSDKClientOptions();
_disposeHttpClient = disposeHttpClient;
Expand Down Expand Up @@ -245,7 +248,7 @@ private void SelectServer(global::Letta.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/Letta/Generated/Letta.ChatClient.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,10 @@ public ChatClient(
{

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::Letta.EndPointAuthorization>();
Options = options ?? new global::Letta.AutoSDKClientOptions();
_disposeHttpClient = disposeHttpClient;
Expand Down Expand Up @@ -245,7 +248,7 @@ private void SelectServer(global::Letta.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
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,10 @@ public ClientSideAccessTokensClient(
{

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::Letta.EndPointAuthorization>();
Options = options ?? new global::Letta.AutoSDKClientOptions();
_disposeHttpClient = disposeHttpClient;
Expand Down Expand Up @@ -245,7 +248,7 @@ private void SelectServer(global::Letta.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/Letta/Generated/Letta.ConversationsClient.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,10 @@ public ConversationsClient(
{

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::Letta.EndPointAuthorization>();
Options = options ?? new global::Letta.AutoSDKClientOptions();
_disposeHttpClient = disposeHttpClient;
Expand Down Expand Up @@ -245,7 +248,7 @@ private void SelectServer(global::Letta.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/Letta/Generated/Letta.DeviceStorageClient.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,10 @@ public DeviceStorageClient(
{

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::Letta.EndPointAuthorization>();
Options = options ?? new global::Letta.AutoSDKClientOptions();
_disposeHttpClient = disposeHttpClient;
Expand Down Expand Up @@ -245,7 +248,7 @@ private void SelectServer(global::Letta.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/Letta/Generated/Letta.EmbeddingsClient.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,10 @@ public EmbeddingsClient(
{

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::Letta.EndPointAuthorization>();
Options = options ?? new global::Letta.AutoSDKClientOptions();
_disposeHttpClient = disposeHttpClient;
Expand Down Expand Up @@ -245,7 +248,7 @@ private void SelectServer(global::Letta.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/Letta/Generated/Letta.EnvironmentsClient.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,10 @@ public EnvironmentsClient(
{

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::Letta.EndPointAuthorization>();
Options = options ?? new global::Letta.AutoSDKClientOptions();
_disposeHttpClient = disposeHttpClient;
Expand Down Expand Up @@ -245,7 +248,7 @@ private void SelectServer(global::Letta.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/Letta/Generated/Letta.FeedsClient.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,10 @@ public FeedsClient(
{

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::Letta.EndPointAuthorization>();
Options = options ?? new global::Letta.AutoSDKClientOptions();
_disposeHttpClient = disposeHttpClient;
Expand Down Expand Up @@ -245,7 +248,7 @@ private void SelectServer(global::Letta.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/Letta/Generated/Letta.FoldersClient.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,10 @@ public FoldersClient(
{

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::Letta.EndPointAuthorization>();
Options = options ?? new global::Letta.AutoSDKClientOptions();
_disposeHttpClient = disposeHttpClient;
Expand Down Expand Up @@ -245,7 +248,7 @@ private void SelectServer(global::Letta.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/Letta/Generated/Letta.HealthClient.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,10 @@ public HealthClient(
{

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::Letta.EndPointAuthorization>();
Options = options ?? new global::Letta.AutoSDKClientOptions();
_disposeHttpClient = disposeHttpClient;
Expand Down Expand Up @@ -245,7 +248,7 @@ private void SelectServer(global::Letta.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/Letta/Generated/Letta.InternalAgentsClient.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,10 @@ public InternalAgentsClient(
{

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::Letta.EndPointAuthorization>();
Options = options ?? new global::Letta.AutoSDKClientOptions();
_disposeHttpClient = disposeHttpClient;
Expand Down Expand Up @@ -245,7 +248,7 @@ private void SelectServer(global::Letta.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/Letta/Generated/Letta.InternalBlocksClient.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,10 @@ public InternalBlocksClient(
{

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::Letta.EndPointAuthorization>();
Options = options ?? new global::Letta.AutoSDKClientOptions();
_disposeHttpClient = disposeHttpClient;
Expand Down Expand Up @@ -245,7 +248,7 @@ private void SelectServer(global::Letta.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/Letta/Generated/Letta.InternalRunsClient.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,10 @@ public InternalRunsClient(
{

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::Letta.EndPointAuthorization>();
Options = options ?? new global::Letta.AutoSDKClientOptions();
_disposeHttpClient = disposeHttpClient;
Expand Down Expand Up @@ -245,7 +248,7 @@ private void SelectServer(global::Letta.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/Letta/Generated/Letta.InternalTemplatesClient.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,10 @@ public InternalTemplatesClient(
{

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::Letta.EndPointAuthorization>();
Options = options ?? new global::Letta.AutoSDKClientOptions();
_disposeHttpClient = disposeHttpClient;
Expand Down Expand Up @@ -245,7 +248,7 @@ private void SelectServer(global::Letta.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/Letta/Generated/Letta.JobsClient.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,10 @@ public JobsClient(
{

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::Letta.EndPointAuthorization>();
Options = options ?? new global::Letta.AutoSDKClientOptions();
_disposeHttpClient = disposeHttpClient;
Expand Down Expand Up @@ -245,7 +248,7 @@ private void SelectServer(global::Letta.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/Letta/Generated/Letta.LettaClient.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,10 @@ public LettaClient(
{

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::Letta.EndPointAuthorization>();
Options = options ?? new global::Letta.AutoSDKClientOptions();
_disposeHttpClient = disposeHttpClient;
Expand Down Expand Up @@ -575,7 +578,7 @@ private void SelectServer(global::Letta.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/Letta/Generated/Letta.McpServersClient.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,10 @@ public McpServersClient(
{

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::Letta.EndPointAuthorization>();
Options = options ?? new global::Letta.AutoSDKClientOptions();
_disposeHttpClient = disposeHttpClient;
Expand Down Expand Up @@ -245,7 +248,7 @@ private void SelectServer(global::Letta.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
Loading