|
|
@@ -488,24 +488,26 @@ export function PaasAgentEdit(props: {
|
|
|
}}
|
|
|
/>
|
|
|
</fieldset>
|
|
|
- <details class="paas-panel paas-edit-fields">
|
|
|
- <summary>高级配置(JSON)</summary>
|
|
|
- <label>
|
|
|
- 智能体配置
|
|
|
- <textarea
|
|
|
- class="paas-config-json"
|
|
|
- rows={14}
|
|
|
- spellcheck={false}
|
|
|
- disabled={state.busy}
|
|
|
- aria-invalid={!config()}
|
|
|
- value={state.configText}
|
|
|
- onInput={(event) => setState("configText", event.currentTarget.value)}
|
|
|
- />
|
|
|
- </label>
|
|
|
- <Show when={!config()}>
|
|
|
- <p role="alert">配置必须是有效的 JSON 对象。</p>
|
|
|
- </Show>
|
|
|
- </details>
|
|
|
+ <Show when={props.modelPolicy !== "managed"}>
|
|
|
+ <details class="paas-panel paas-edit-fields">
|
|
|
+ <summary>高级配置(JSON)</summary>
|
|
|
+ <label>
|
|
|
+ 智能体配置
|
|
|
+ <textarea
|
|
|
+ class="paas-config-json"
|
|
|
+ rows={14}
|
|
|
+ spellcheck={false}
|
|
|
+ disabled={state.busy}
|
|
|
+ aria-invalid={!config()}
|
|
|
+ value={state.configText}
|
|
|
+ onInput={(event) => setState("configText", event.currentTarget.value)}
|
|
|
+ />
|
|
|
+ </label>
|
|
|
+ <Show when={!config()}>
|
|
|
+ <p role="alert">配置必须是有效的 JSON 对象。</p>
|
|
|
+ </Show>
|
|
|
+ </details>
|
|
|
+ </Show>
|
|
|
<footer class="paas-edit-footer">
|
|
|
<Show when={state.error}>
|
|
|
<p role="alert" class="paas-error">
|