mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2025-02-05 14:49:06 +00:00
Define the writer mode as experimental preview (#226)
This commit is contained in:
parent
0a951ead3e
commit
e2859b3d76
@ -96,8 +96,28 @@ public partial class MainLayout : LayoutComponentBase, IMessageBusReceiver, IDis
|
|||||||
|
|
||||||
await this.themeProvider.WatchSystemPreference(this.SystemeThemeChanged);
|
await this.themeProvider.WatchSystemPreference(this.SystemeThemeChanged);
|
||||||
await this.UpdateThemeConfiguration();
|
await this.UpdateThemeConfiguration();
|
||||||
|
this.LoadNavItems();
|
||||||
|
|
||||||
|
await base.OnInitializedAsync();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void LoadNavItems()
|
||||||
|
{
|
||||||
var palette = this.ColorTheme.GetCurrentPalette(this.SettingsManager);
|
var palette = this.ColorTheme.GetCurrentPalette(this.SettingsManager);
|
||||||
|
if (this.SettingsManager.ConfigurationData.App.PreviewVisibility < PreviewVisibility.EXPERIMENTAL)
|
||||||
|
{
|
||||||
|
this.navItems = new List<NavBarItem>
|
||||||
|
{
|
||||||
|
new("Home", Icons.Material.Filled.Home, palette.DarkLighten, palette.GrayLight, Routes.HOME, true),
|
||||||
|
new("Chat", Icons.Material.Filled.Chat, palette.DarkLighten, palette.GrayLight, Routes.CHAT, false),
|
||||||
|
new("Assistants", Icons.Material.Filled.Apps, palette.DarkLighten, palette.GrayLight, Routes.ASSISTANTS, false),
|
||||||
|
new("Supporters", Icons.Material.Filled.Favorite, palette.Error.Value, "#801a00", Routes.SUPPORTERS, false),
|
||||||
|
new("About", Icons.Material.Filled.Info, palette.DarkLighten, palette.GrayLight, Routes.ABOUT, false),
|
||||||
|
new("Settings", Icons.Material.Filled.Settings, palette.DarkLighten, palette.GrayLight, Routes.SETTINGS, false),
|
||||||
|
};
|
||||||
|
}
|
||||||
|
else if (this.SettingsManager.ConfigurationData.App.PreviewVisibility >= PreviewVisibility.EXPERIMENTAL)
|
||||||
|
{
|
||||||
this.navItems = new List<NavBarItem>
|
this.navItems = new List<NavBarItem>
|
||||||
{
|
{
|
||||||
new("Home", Icons.Material.Filled.Home, palette.DarkLighten, palette.GrayLight, Routes.HOME, true),
|
new("Home", Icons.Material.Filled.Home, palette.DarkLighten, palette.GrayLight, Routes.HOME, true),
|
||||||
@ -108,8 +128,7 @@ public partial class MainLayout : LayoutComponentBase, IMessageBusReceiver, IDis
|
|||||||
new("About", Icons.Material.Filled.Info, palette.DarkLighten, palette.GrayLight, Routes.ABOUT, false),
|
new("About", Icons.Material.Filled.Info, palette.DarkLighten, palette.GrayLight, Routes.ABOUT, false),
|
||||||
new("Settings", Icons.Material.Filled.Settings, palette.DarkLighten, palette.GrayLight, Routes.SETTINGS, false),
|
new("Settings", Icons.Material.Filled.Settings, palette.DarkLighten, palette.GrayLight, Routes.SETTINGS, false),
|
||||||
};
|
};
|
||||||
|
}
|
||||||
await base.OnInitializedAsync();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
@ -144,6 +163,7 @@ public partial class MainLayout : LayoutComponentBase, IMessageBusReceiver, IDis
|
|||||||
this.navBarOpen = false;
|
this.navBarOpen = false;
|
||||||
|
|
||||||
await this.UpdateThemeConfiguration();
|
await this.UpdateThemeConfiguration();
|
||||||
|
this.LoadNavItems();
|
||||||
this.StateHasChanged();
|
this.StateHasChanged();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
@ -5,6 +5,8 @@
|
|||||||
Writer
|
Writer
|
||||||
</MudText>
|
</MudText>
|
||||||
|
|
||||||
|
<PreviewExperimental/>
|
||||||
|
|
||||||
<ProviderSelection @bind-ProviderSettings="@this.providerSettings"/>
|
<ProviderSelection @bind-ProviderSettings="@this.providerSettings"/>
|
||||||
<InnerScrolling HeaderHeight="12.3em">
|
<InnerScrolling HeaderHeight="12.3em">
|
||||||
<ChildContent>
|
<ChildContent>
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
# v0.9.22, build 197 (2024-1x-xx xx:xx UTC)
|
# v0.9.22, build 197 (2024-1x-xx xx:xx UTC)
|
||||||
- Added the possibility to configure preview feature visibility in the app settings. This is useful for users who want to test new features before they are officially released.
|
- Added the possibility to configure preview feature visibility in the app settings. This is useful for users who want to test new features before they are officially released.
|
||||||
- Added the possibility to configure embedding providers in the app settings. Embeddings are necessary in order to integrate local data and files.
|
- Added the possibility to configure embedding providers in the app settings. Embeddings are necessary in order to integrate local data and files.
|
||||||
|
- Added the writer mode as an experimental preview feature. This feature is just an experiment as we explore how to implement long text support in AI Studio.
|
||||||
- Improved self-hosted LLM provider configuration by filtering embedding models.
|
- Improved self-hosted LLM provider configuration by filtering embedding models.
|
Loading…
Reference in New Issue
Block a user