webchat: bypass api key prompts in embedded mode

This commit is contained in:
Peter Steinberger committed 2025-12-07 17:55:07 +01:00
1 parent bdf3d60148
commit 4ff5004d7c
3 files changed
+17

No files matched your search

@@ -57,6 +57,8 @@ let ChatPanel = class ChatPanel extends LitElement {
this.agentInterface.enableModelSelector = false;
this.agentInterface.enableThinkingSelector = true;
this.agentInterface.showThemeToggle = false;
// In embedded mode, bypass API key prompts; native transport handles auth.
this.agentInterface.onApiKeyRequired = async () => true;
this.agentInterface.onApiKeyRequired = config?.onApiKeyRequired;
this.agentInterface.onBeforeSend = config?.onBeforeSend;
this.agentInterface.onCostClick = config?.onCostClick;