diff --git a/src/BootstrapBlazor.Server/AIChat/Chats.razor.cs b/src/BootstrapBlazor.Server/AIChat/Chats.razor.cs index bea5be7f276..01c713f3201 100644 --- a/src/BootstrapBlazor.Server/AIChat/Chats.razor.cs +++ b/src/BootstrapBlazor.Server/AIChat/Chats.razor.cs @@ -29,7 +29,9 @@ public partial class Chats [Inject] [NotNull] private NavigationManager? NavigationManager { get; set; } + private string? Context { get; set; } + private List Messages { get; } = new(); [NotNull] @@ -37,11 +39,11 @@ public partial class Chats [NotNull] private string? UserName { get; set; } + private string? AvatarUrl { get; set; } private static string? GetStackClass(ChatRole role) => CssBuilder.Default("msg-stack").AddClass("msg-stack-assistant", role == ChatRole.Assistant).Build(); - /// - protected override Task InvokeInitAsync() => InvokeVoidAsync("init", Id); + /// /// /// @@ -75,6 +77,12 @@ protected override async Task OnAfterRenderAsync(bool firstRender) } } + /// + /// + /// + /// + protected override Task InvokeInitAsync() => InvokeVoidAsync("init", Id); + private bool IsValid => OAuthHelper.Validate(UserName); private async Task GetCompletionsAsync() diff --git a/src/BootstrapBlazor.Shared/BootstrapBlazor.Shared.csproj b/src/BootstrapBlazor.Shared/BootstrapBlazor.Shared.csproj index 99921a66870..4521c2cfb9c 100644 --- a/src/BootstrapBlazor.Shared/BootstrapBlazor.Shared.csproj +++ b/src/BootstrapBlazor.Shared/BootstrapBlazor.Shared.csproj @@ -28,7 +28,7 @@ - + @@ -38,7 +38,7 @@ - + @@ -48,7 +48,7 @@ - + diff --git a/src/Extensions/Components/BootstrapBlazor.MaterialDesign.Extensions/BootstrapBlazor.MaterialDesign.Extensions.csproj b/src/Extensions/Components/BootstrapBlazor.MaterialDesign.Extensions/BootstrapBlazor.MaterialDesign.Extensions.csproj index 86650216f93..5cdcd212cf2 100644 --- a/src/Extensions/Components/BootstrapBlazor.MaterialDesign.Extensions/BootstrapBlazor.MaterialDesign.Extensions.csproj +++ b/src/Extensions/Components/BootstrapBlazor.MaterialDesign.Extensions/BootstrapBlazor.MaterialDesign.Extensions.csproj @@ -1,7 +1,7 @@ - 7.4.0 + 7.4.1-beta01 @@ -11,7 +11,7 @@ - + diff --git a/src/Extensions/Components/BootstrapBlazor.MaterialDesign.Extensions/DefaultIcon.cs b/src/Extensions/Components/BootstrapBlazor.MaterialDesign.Extensions/DefaultIcon.cs index 20fd6fc408c..28a5366dc69 100644 --- a/src/Extensions/Components/BootstrapBlazor.MaterialDesign.Extensions/DefaultIcon.cs +++ b/src/Extensions/Components/BootstrapBlazor.MaterialDesign.Extensions/DefaultIcon.cs @@ -150,6 +150,7 @@ internal class DefaultIcon { ComponentIcons.TableCancelButtonIcon, "mdi mdi-close" }, { ComponentIcons.TableSaveButtonIcon, "mdi mdi-content-save" }, { ComponentIcons.TableAdvanceButtonIcon, "mdi mdi-magnify-plus-outline" }, + { ComponentIcons.TableAdvancedSortButtonIcon, "mdi mdi-sort-alphabetical-descending" }, { ComponentIcons.TableTreeIcon, "mdi mdi-menu-right" }, { ComponentIcons.TableTreeExpandIcon, "mdi mdi-menu-right mdi-rotate-90" },