feat: Add AI API Custom Params

This commit is contained in:
FlyLoongZ
2025-08-11 12:12:03 +08:00
parent 39b3b00117
commit be6e34ba52
4 changed files with 44 additions and 0 deletions

View File

@@ -125,6 +125,7 @@ function ApiFields({ translator, api, updateApi, resetApi }) {
model = "",
systemPrompt = "",
userPrompt = "",
apiCustomParams = "",
think = false,
thinkIgnore = "",
fetchLimit = DEFAULT_FETCH_LIMIT,
@@ -274,6 +275,16 @@ function ApiFields({ translator, api, updateApi, resetApi }) {
multiline
maxRows={10}
/>
<TextField
size="small"
label={i18n("api_custom_params")}
name="apiCustomParams"
value={apiCustomParams}
onChange={handleChange}
multiline
maxRows={10}
helperText={i18n("api_custom_params_help")}
/>
</>
)}