Merge pull request #2242 from PaRaD1SE98/main

fix: temperature -> top_p
main
Yifei Zhang 3 years ago committed by GitHub
commit 197ec0c29c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -60,7 +60,7 @@ export function ModelConfigList(props: {
onChange={(e) => { onChange={(e) => {
props.updateConfig( props.updateConfig(
(config) => (config) =>
(config.temperature = ModalConfigValidator.top_p( (config.top_p = ModalConfigValidator.top_p(
e.currentTarget.valueAsNumber, e.currentTarget.valueAsNumber,
)), )),
); );

Loading…
Cancel
Save