LLM model choice is now kept when tool settings change

This commit is contained in:
Peer Schütt 2026-07-28 08:43:23 +02:00
parent 0caf673609
commit 4b334b54fd

View File

@ -611,9 +611,8 @@ public partial class ChatComponent : MSGComponentBase, IAsyncDisposable
{
var previousProvider = this.Provider;
var previousChatTemplate = this.currentChatTemplate;
var chatProviderId = this.ChatThread?.SelectedProvider;
this.Provider = this.SettingsManager.GetChatProviderForLoadedChat(chatProviderId);
this.Provider = this.SettingsManager.GetChatProviderForLoadedChat(this.Provider.Id);
if (this.Provider != previousProvider)
await this.ProviderChanged.InvokeAsync(this.Provider);