fix typo: stopParameerRule -> stopParameterRule (#4681)

This commit is contained in:
Leheng Lu 2024-05-27 20:42:07 +08:00 committed by GitHub
parent 140dd873f1
commit 444fdb79dc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -49,7 +49,7 @@ export type ModelParameterModalProps = {
readonly?: boolean
isInWorkflow?: boolean
}
const stopParameerRule: ModelParameterRule = {
const stopParameterRule: ModelParameterRule = {
default: [],
help: {
en_US: 'Up to four sequences where the API will stop generating further tokens. The returned text will not contain the stop sequence.',
@ -233,7 +233,7 @@ const ModelParameterModal: FC<ModelParameterModalProps> = ({
!isLoading && !!parameterRules.length && (
[
...parameterRules,
...(isAdvancedMode ? [stopParameerRule] : []),
...(isAdvancedMode ? [stopParameterRule] : []),
].map(parameter => (
<ParameterItem
key={`${modelId}-${parameter.name}`}