diff --git a/src/app/components/RegistryEditor.tsx b/src/app/components/RegistryEditor.tsx
index 7b727bb..c34c4b8 100644
--- a/src/app/components/RegistryEditor.tsx
+++ b/src/app/components/RegistryEditor.tsx
@@ -245,6 +245,7 @@ function ModelEditor({
const [expanded, setExpanded] = useState(
() => availabilityFor(data, ref) === null
);
+ const [showAdvanced, setShowAdvanced] = useState(false);
const capability = (key: "tools" | "vision" | "structured_output") => {
const protocolAllows = spec?.protocol_capabilities[key] !== false;
return (
@@ -350,6 +351,52 @@ function ModelEditor({
+ setRuntime({ context_window_tokens: value })}
+ />
+
+ setRuntime({ max_output_tokens: value ?? runtime.max_output_tokens })
+ }
+ />
+ setRuntime({ temperature: value })}
+ />
+
+
+
+ Capabilities
+
+ {capability("tools")}
+ {capability("vision")}
+ {capability("structured_output")}
+
+
+
+ {showAdvanced && (
+
- setRuntime({ context_window_tokens: value })}
- />
setRuntime({ max_input_tokens: value })}
/>
-
- setRuntime({ max_output_tokens: value ?? runtime.max_output_tokens })
- }
- />
tested contract
- setRuntime({ temperature: value })}
- />
-
-
- Capabilities
-
- {capability("tools")}
- {capability("vision")}
- {capability("structured_output")}
+ )}
>
)}
@@ -562,6 +582,8 @@ function ProviderEditor({
const spec = adapterSpecFor(data.adapter_specs, provider.adapter);
const authModes = supportedAuthModes(spec);
const credentialStatus = credentialStatusFor(data, provider.auth.credential_id);
+ const [showSecret, setShowSecret] = useState(false);
+ const [showAdvanced, setShowAdvanced] = useState(false);
const setRuntime = (patch: Partial
) =>
onChange({ ...provider, runtime: { ...provider.runtime, ...patch } });
@@ -690,50 +712,67 @@ function ProviderEditor({
{provider.auth.mode !== "none" && (
- <>
-
+
+
- onChange({
- ...provider,
- auth: { ...provider.auth, credential_id: event.target.value || null },
- })
- }
- />
-
-
-
- provider.auth.credential_id &&
- onCredentialStage(provider.auth.credential_id, event.target.value)
+ placeholder={
+ credentialStatus?.configured
+ ? (credentialStatus.hint ?? "configured")
+ : "sk-..."
}
+ onChange={(event) => {
+ const credentialId =
+ provider.auth.credential_id ?? `${provider.id}-credential`;
+ if (!provider.auth.credential_id) {
+ onChange({
+ ...provider,
+ auth: { ...provider.auth, credential_id: credentialId },
+ });
+ }
+ onCredentialStage(credentialId, event.target.value);
+ }}
/>
-
- >
+
+
+
)}
-
+
+
+ {showAdvanced && (
+
+
+ )}