feat: support AzureAI

This commit is contained in:
Gabe
2025-10-11 14:46:14 +08:00
parent ac7b3b9824
commit d9b4399c57
3 changed files with 48 additions and 1 deletions

View File

@@ -43,6 +43,7 @@ import {
BUILTIN_STONES,
BUILTIN_PLACEHOLDERS,
BUILTIN_PLACETAGS,
OPT_TRANS_AZUREAI,
} from "../../config";
function TestButton({ api }) {
@@ -237,6 +238,7 @@ function ApiFields({ apiSlug, isUserApi, deleteApi }) {
tone = "neutral",
placeholder = BUILTIN_PLACEHOLDERS[0],
placetag = BUILTIN_PLACETAGS[0],
region = "",
// aiTerms = false,
} = formData;
@@ -283,6 +285,16 @@ function ApiFields({ apiSlug, isUserApi, deleteApi }) {
</>
)}
{apiType === OPT_TRANS_AZUREAI && (
<TextField
size="small"
label={"Region"}
name="region"
value={region}
onChange={handleChange}
/>
)}
{API_SPE_TYPES.ai.has(apiType) && (
<>
<Box>