Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
BeepBeepBopBop committed Jan 23, 2025
1 parent ccf4183 commit 9d3c2c3
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
3 changes: 3 additions & 0 deletions LM-Kit-Maestro/UI/Razor/Components/ChatSettings.razor
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
<MudExpansionPanel Text="General settings">
<MudStack Spacing="6">

<Setting Value="ViewModel.RequestTimeout"/>

<div class="setting-container">
<MudText>
Chatbot purpose
Expand All @@ -24,6 +26,7 @@
<MudTextField Class="setting-field"
Margin="Margin.Dense"
Variant="Variant.Outlined"
InputType="InputType.Number"
Value="ViewModel.MaximumCompletionTokens"/>
</div>
</div>
Expand Down
30 changes: 30 additions & 0 deletions LM-Kit-Maestro/UI/Razor/Components/Setting.razor
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
@inherits ComponentBase

<div class="setting-container">
<div class="flex-row">
<MudText>
Request timeout
</MudText>

<MudTextField Class="setting-field"
Margin="Margin.Dense"
@onfocusout="OnInputFocusOut"
Variant="Variant.Outlined"
Value="@Value"/>
</div>

@* <MudSlider Min="10" Max="120" Value="Value" Color="Color.Primary" *@
@* Variant="Variant.Filled"/> *@
</div>

@code {

[Parameter] public required object Value { get; set; }
[Parameter] public object? MinValue { get; set; }
[Parameter] public object? MaxValue { get; set; }

private void OnInputFocusOut()
{

}
}

0 comments on commit 9d3c2c3

Please sign in to comment.