mirror of
https://github.com/Wei-Shaw/sub2api.git
synced 2026-10-28 00:07:33 +00:00
Merge remote-tracking branch 'origin/main' into fix/issue-5796-composite-new-platforms
This commit is contained in:
@@ -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",
|
||||
@@ -6666,6 +6669,8 @@ watch(
|
||||
}
|
||||
if (newVal !== "openai") {
|
||||
resetMessagesDispatchFormState(createForm);
|
||||
}
|
||||
if (!supportsLivePlatform(newVal)) {
|
||||
createForm.allow_live = false;
|
||||
}
|
||||
if (!isProfitControlPlatform(newVal)) {
|
||||
@@ -6714,6 +6719,8 @@ watch(
|
||||
}
|
||||
if (newVal !== "openai") {
|
||||
resetMessagesDispatchFormState(editForm);
|
||||
}
|
||||
if (!supportsLivePlatform(newVal)) {
|
||||
editForm.allow_live = false;
|
||||
}
|
||||
if (!isProfitControlPlatform(newVal)) {
|
||||
@@ -6764,9 +6771,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
|
||||
}
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user