Skip to content

Commit

Permalink
Allow disabling max new tokens in chat mode only
Browse files Browse the repository at this point in the history
  • Loading branch information
itaybar authored and AlmogBaku committed May 10, 2024
1 parent 8b20def commit 63f64cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Parameters.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ const Parameters = ({value, onChange, type}: ParametersProps) => {
}>
<RangeInput label={"Maximum tokens"} value={value.max_tokens}
max={value.model?.maxTokens || 2048}
withDisableSwitch
withDisableSwitch={type==="chat"}
onChange={(v) => onChangeHandler({max_tokens: v})}
factor={1}
/>
Expand Down

0 comments on commit 63f64cd

Please sign in to comment.