feat(studio): deploy manual designer and configurable AI model

This commit is contained in:
Clintchiz committed 2026-10-19 21:02:33 +05:30
1 parent 58687d8679
commit eefc86a057
10 files changed
+133 -32

No files matched your search

+4 -2
View File
@@ -49,7 +49,8 @@ try {
html.match(/<select id="preset">([\s\S]*?)<\/select>/)?.[1] ?? "";
if (
(presetMenu.match(/<option value="[^"]+"/g) ?? []).length !== 13 ||
!html.includes('id="show-draft"')
!html.includes('id="show-draft"') ||
!html.includes('id="manual"')
)
throw Error(
"The deployed Studio is missing its thirteen presets or proposal preview controls.",
@@ -103,7 +104,8 @@ try {
if (
process.env.APIMART_API_KEY?.trim() &&
(generation.provider !== "APIMart" ||
generation.model !== "gpt-6-luna" ||
generation.model !==
(process.env.APIMART_MODEL?.trim() || "gpt-5-mini") ||
generation.delivery !== "polling" ||
generation.maxAttempts !== 2 ||
generation.maxOutputTokens !== 8192 ||