feat: Add AI API Custom Params
This commit is contained in:
@@ -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")}
|
||||
/>
|
||||
</>
|
||||
)}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user