mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-10-13 03:33:48 +00:00
Fixed the default data source selection when replacing the chat (#315)
This commit is contained in:
1 parent
6a4a7dc0d6
commit
99622cec48
2 files changed
+5
-1
No files matched your search
@@ -275,6 +275,9 @@ public partial class ChatComponent : MSGComponentBase, IAsyncDisposable
|
||||
{
|
||||
var chatDefaultOptions = this.SettingsManager.ConfigurationData.Chat.PreselectedDataSourceOptions.CreateCopy();
|
||||
this.earlyDataSourceOptions = chatDefaultOptions;
|
||||
if(this.ChatThread is not null)
|
||||
this.ChatThread.DataSourceOptions = chatDefaultOptions;
|
||||
|
||||
this.dataSourceSelectionComponent?.ChangeOptionWithoutSaving(chatDefaultOptions);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user