Skip to content

Commit 8ef0f4e

Browse files
committed
Add property for stop sequence component
1 parent 9f7586c commit 8ef0f4e

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/AzureOpenAIProxy.PlaygroundApp/Components/UI/ParameterListComponent.razor

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@
3939
[Parameter, EditorRequired]
4040
public string TooltipText { get; set; } = string.Empty;
4141

42+
public IEnumerable<string> Value => stopSequenceValue;
43+
4244
private IEnumerable<string> stopSequenceValue = new List<string>();
4345
private List<string> searchTextItems = new();
4446

src/AzureOpenAIProxy.PlaygroundApp/Components/UI/ParametersTabComponent.razor

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@
3838
@* Stop Sequence Auto Complete *@
3939
<ParameterListComponent Id="complete-stop-sequence"
4040
LabelText="Stop sequence"
41-
TooltipText="Make the model end its response at a desired point. The model response will end before the specified sequence, so it won't contain the stop sequence text. For ChatGPT, using <|im_end|> ensures that the model response doesn't generate a follow-up user query. You can include as many as four stop sequences." />
41+
TooltipText="Make the model end its response at a desired point. The model response will end before the specified sequence, so it won't contain the stop sequence text. For ChatGPT, using <|im_end|> ensures that the model response doesn't generate a follow-up user query. You can include as many as four stop sequences."
42+
@ref=stopSequence />
4243

4344
@* Frequency Penalty Slider *@
4445
<ParameterSliderComponent Id="slider-frequency-penalty"
@@ -67,6 +68,5 @@
6768
private double frequencyPenaltyValue = 0;
6869
private double presencePenaltyValue = 0;
6970

70-
private IEnumerable<string> stopSequenceValue = new List<string>();
71-
private List<string> searchTextItems = new();
71+
private ParameterListComponent? stopSequence;
7272
}

0 commit comments

Comments
 (0)