refactor: rename api args

This commit is contained in:
Gabe
2025-09-03 12:24:18 +08:00
parent 17c8d198c3
commit 2b496bda31
4 changed files with 14 additions and 14 deletions

View File

@@ -144,7 +144,7 @@ function ApiFields({ translator, api, updateApi, resetApi }) {
maxTokens = 256,
apiName = "",
isDisabled = false,
isBatchFetch = false,
useBatchFetch = false,
batchInterval = DEFAULT_BATCH_INTERVAL,
batchSize = DEFAULT_BATCH_SIZE,
batchLength = DEFAULT_BATCH_LENGTH,
@@ -416,15 +416,15 @@ function ApiFields({ translator, api, updateApi, resetApi }) {
<TextField
select
size="small"
name="isBatchFetch"
value={isBatchFetch}
label={i18n("is_batch_fetch")}
name="useBatchFetch"
value={useBatchFetch}
label={i18n("use_batch_fetch")}
onChange={handleChange}
>
<MenuItem value={false}>{i18n("disable")}</MenuItem>
<MenuItem value={true}>{i18n("enable")}</MenuItem>
</TextField>
{isBatchFetch && (
{useBatchFetch && (
<>
<TextField
size="small"