Minor changes after merge

This commit is contained in:
Peer Schütt 2026-07-20 16:30:20 +02:00
parent e9b8ed9a01
commit 548cd12934
4 changed files with 3 additions and 7 deletions

View File

@ -177,7 +177,7 @@
@if (this.SettingsManager.IsToolSelectionVisible(this.Component)) @if (this.SettingsManager.IsToolSelectionVisible(this.Component))
{ {
<ToolSelection Component="@this.Component" LLMProvider="@this.ProviderSettings" SelectedToolIds="@this.selectedToolIds" SelectedToolIdsChanged="@this.SelectedToolIdsChanged" Disabled="@this.isProcessing" /> <ToolSelection Component="@this.Component" LLMProvider="@this.ProviderSettings" SelectedToolIds="@this.selectedToolIds" SelectedToolIdsChanged="@this.SelectedToolIdsChanged" Disabled="@this.IsProcessing" />
} }
<MudSpacer /> <MudSpacer />

View File

@ -1294,10 +1294,6 @@ public partial class ChatComponent : MSGComponentBase, IAsyncDisposable
} }
break; break;
case Event.CONFIGURATION_CHANGED:
await this.RefreshProviderSelectionFromConfigurationAsync();
await this.InvokeAsync(this.StateHasChanged);
break;
} }
} }

View File

@ -1201,7 +1201,7 @@ public abstract class BaseProvider : IProvider, ISecretId
{ {
using var request = new HttpRequestMessage(HttpMethod.Post, requestPath); using var request = new HttpRequestMessage(HttpMethod.Post, requestPath);
if (requestedSecret.Success) if (requestedSecret.Success)
request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", await requestedSecret.Secret.Decrypt(ENCRYPTION)); request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", await requestedSecret.Secret.Decrypt(Program.ENCRYPTION));
headersAction?.Invoke(request.Headers); headersAction?.Invoke(request.Headers);
request.Content = new StringContent(JsonSerializer.Serialize(requestDto, JSON_SERIALIZER_OPTIONS), Encoding.UTF8, "application/json"); request.Content = new StringContent(JsonSerializer.Serialize(requestDto, JSON_SERIALIZER_OPTIONS), Encoding.UTF8, "application/json");

View File

@ -447,7 +447,7 @@ public sealed class ProviderOpenAI() : BaseProvider(LLMProviders.OPEN_AI, new Ur
private async Task<ResponsesResponse?> ExecuteResponsesRequest(ResponsesAPIRequest requestDto, RequestedSecret requestedSecret, CancellationToken token) private async Task<ResponsesResponse?> ExecuteResponsesRequest(ResponsesAPIRequest requestDto, RequestedSecret requestedSecret, CancellationToken token)
{ {
using var request = new HttpRequestMessage(HttpMethod.Post, "responses"); using var request = new HttpRequestMessage(HttpMethod.Post, "responses");
request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", await requestedSecret.Secret.Decrypt(ENCRYPTION)); request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", await requestedSecret.Secret.Decrypt(Program.ENCRYPTION));
request.Content = new StringContent(JsonSerializer.Serialize(requestDto, JSON_SERIALIZER_OPTIONS), Encoding.UTF8, "application/json"); request.Content = new StringContent(JsonSerializer.Serialize(requestDto, JSON_SERIALIZER_OPTIONS), Encoding.UTF8, "application/json");
using var response = await this.HttpClient.SendAsync(request, token); using var response = await this.HttpClient.SendAsync(request, token);