Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Describe Your Changes
Type Modifications:
In settingComponent.ts, the
ControllerType
type now includes 'tag' as a possible value. TheInputComponentProps
type has been adjusted to allow value to be either string or string[].ModelConfigInput
Component:The code in
ModelConfigInput/index.tsx
has been refactored to use a return statement with curly brackets {} instead of an implicit return, although its logic remains largely unchanged.SettingComponent
Component:In ModelSetting/SettingComponent.tsx, added support for the 'tag' controller type, including handling for the value to be string[] and modifying the
onValueUpdated
function to handle arrays of strings.ModelSetting
Component:In ModelSetting/index.tsx, the onValueChanged function signature was updated to accept string[].
TagInput Component:
A new component
TagInput
was created inTagInput/index.tsx
. It provides the ability to enter tag-like data, allowing users to add strings to an array and render them as badges with an option to remove them.ThreadRightPanel
Component:In
ThreadRightPanel/index.tsx
, theonValueChanged
function now supports receivingstring[]
values.Component Utilities:
In
componentSettings.ts
, support was added for the 'tag' controller type, setting its value fromkeySetting
.In
predefinedComponent.ts
, the existing 'stop' setting was switched from an input type to a tag type, with a default value of an empty string array and a new placeholder.Fixes Issues
default
adding custom
Thread json
No Stop word
Self Checklist