webchat: hide model selector in embedded UI

This commit is contained in:
Peter Steinberger
2025-12-07 17:52:43 +01:00
parent e2c6546b61
commit bdf3d60148
3 changed files with 469 additions and 11 deletions

View File

@@ -53,7 +53,8 @@ let ChatPanel = class ChatPanel extends LitElement {
this.agentInterface = document.createElement("agent-interface");
this.agentInterface.session = agent;
this.agentInterface.enableAttachments = true;
this.agentInterface.enableModelSelector = true;
// Hide model selector in the embedded chat; use fixed model configured at bootstrap.
this.agentInterface.enableModelSelector = false;
this.agentInterface.enableThinkingSelector = true;
this.agentInterface.showThemeToggle = false;
this.agentInterface.onApiKeyRequired = config?.onApiKeyRequired;
@@ -190,4 +191,4 @@ ChatPanel = __decorate([
customElement("pi-chat-panel")
], ChatPanel);
export { ChatPanel };
//# sourceMappingURL=ChatPanel.js.map
//# sourceMappingURL=ChatPanel.js.map