Selaa lähdekoodia

fix typo: stopParameerRule -> stopParameterRule (#4681)

tags/0.6.9
Leheng Lu 1 vuosi sitten
vanhempi
commit
444fdb79dc
No account linked to committer's email address

+ 2
- 2
web/app/components/header/account-setting/model-provider-page/model-parameter-modal/index.tsx Näytä tiedosto

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

Loading…
Peruuta
Tallenna