fix: Increase the Max Tokens limit

This commit is contained in:
Gabe
2025-10-31 10:42:08 +08:00
parent 2dcacf71e4
commit d4c346e40a

View File

@@ -178,7 +178,7 @@ function ApiFields({ apiSlug, isUserApi, deleteApi }) {
reqHook = "", reqHook = "",
resHook = "", resHook = "",
temperature = 0, temperature = 0,
maxTokens = 256, maxTokens = 20480,
apiName = "", apiName = "",
isDisabled = false, isDisabled = false,
useBatchFetch = false, useBatchFetch = false,
@@ -292,13 +292,13 @@ function ApiFields({ apiSlug, isUserApi, deleteApi }) {
<ValidationInput <ValidationInput
size="small" size="small"
fullWidth fullWidth
label={"Max Tokens"} label={"Max Tokens (0-1000000)"}
type="number" type="number"
name="maxTokens" name="maxTokens"
value={maxTokens} value={maxTokens}
onChange={handleChange} onChange={handleChange}
min={0} min={0}
max={2 ** 15} max={1000000}
/> />
</Grid> </Grid>
<Grid item xs={12} sm={12} md={6} lg={3}></Grid> <Grid item xs={12} sm={12} md={6} lg={3}></Grid>