MODEL_CAPS

This commit is contained in:
decolua
2026-04-04 23:24:24 +07:00
parent 5448eedbdd
commit 333e704b2a
7 changed files with 239 additions and 10 deletions

View File

@@ -446,7 +446,13 @@ export default function APIPageClient({ machineId }) {
<Button
variant="primary"
icon="cloud_upload"
onClick={() => setShowEnableModal(true)}
onClick={() => {
if (!requireApiKey) {
setTunnelStatus({ type: "error", message: "Security required: Enable \"Require API key\" before activating the tunnel." });
return;
}
setShowEnableModal(true);
}}
disabled={tunnelLoading}
className="bg-linear-to-r from-primary to-blue-500 hover:from-primary-hover hover:to-blue-600"
>

View File

@@ -1,11 +1,13 @@
// Import directly from file to avoid pulling in server-side dependencies via index.js
export {
PROVIDER_MODELS,
MODEL_CAPS,
getProviderModels,
getDefaultModel,
isValidModel as isValidModelCore,
findModelName,
getModelTargetFormat,
getModelCaps,
PROVIDER_ID_TO_ALIAS,
getModelsByProviderId
} from "open-sse/config/providerModels.js";