MODEL_CAPS
This commit is contained in:
@@ -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"
|
||||
>
|
||||
|
||||
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user