feat(composite): support Codex endpoints

This commit is contained in:
Kingsley
2026-08-19 04:40:32 +00:00
parent 82f7dd14f7
commit 58e147fba6
12 changed files with 216 additions and 28 deletions
+14 -5
View File
@@ -1581,9 +1581,9 @@
</div>
</div>
</div>
<!-- OpenAI Live 开关(仅 openai 平台) -->
<!-- Codex Live 开关(OpenAI 与 Composite 平台) -->
<div
v-if="createForm.platform === 'openai'"
v-if="supportsLivePlatform(createForm.platform)"
class="border-t border-gray-200 dark:border-dark-400 pt-4 mt-4"
>
<h4 class="text-sm font-medium text-gray-700 dark:text-gray-300 mb-3">
@@ -3303,9 +3303,9 @@
</div>
</div>
</div>
<!-- OpenAI Live 开关(仅 openai 平台) -->
<!-- Codex Live 开关(OpenAI 与 Composite 平台) -->
<div
v-if="editForm.platform === 'openai'"
v-if="supportsLivePlatform(editForm.platform)"
class="border-t border-gray-200 dark:border-dark-400 pt-4 mt-4"
>
<h4 class="text-sm font-medium text-gray-700 dark:text-gray-300 mb-3">
@@ -4501,6 +4501,9 @@ import {
videoModelPriceFamilyRows,
} from "./groupsVideoModelPricing";
const supportsLivePlatform = (platform: string): boolean =>
platform === "openai" || platform === "composite";
const emptyGroupPricing = (): PricingFormEntry => ({
models: [],
billing_mode: "token",
@@ -6663,6 +6666,8 @@ watch(
}
if (newVal !== "openai") {
resetMessagesDispatchFormState(createForm);
}
if (!supportsLivePlatform(newVal)) {
createForm.allow_live = false;
}
if (!isProfitControlPlatform(newVal)) {
@@ -6711,6 +6716,8 @@ watch(
}
if (newVal !== "openai") {
resetMessagesDispatchFormState(editForm);
}
if (!supportsLivePlatform(newVal)) {
editForm.allow_live = false;
}
if (!isProfitControlPlatform(newVal)) {
@@ -6761,9 +6768,11 @@ watch(
}
if (newVal !== 'openai') {
editForm.allow_messages_dispatch = false
editForm.allow_live = false
editForm.default_mapped_model = ''
}
if (!supportsLivePlatform(newVal)) {
editForm.allow_live = false
}
}
)