diff --git a/apps/website/content/docs/chat/api/api-docs.json b/apps/website/content/docs/chat/api/api-docs.json index 221d785b8..8012792e5 100644 --- a/apps/website/content/docs/chat/api/api-docs.json +++ b/apps/website/content/docs/chat/api/api-docs.json @@ -1677,6 +1677,12 @@ "description": "", "optional": false }, + { + "name": "showModelPicker", + "type": "InputSignal", + "description": "When `false`, hide the auto-rendered model picker even when\n`modelOptions` is non-empty. Useful in cramped surfaces (popup,\nsidebar) where the picker crowds the input. Defaults to `true`.\nHas no effect when consumers project their own\n`` via content projection.", + "optional": false + }, { "name": "showWelcome", "type": "Signal", @@ -2796,6 +2802,12 @@ "description": "Keyboard shortcut (single key) that toggles the popup with cmd (mac)\nor ctrl (other). Set to `null` to disable. Default: 'k' — matches the\nwidely-used cmd/ctrl+K convention.", "optional": false }, + { + "name": "showModelPicker", + "type": "InputSignal", + "description": "Forwarded to the inner ``. When `false`, hides the\nauto-rendered model picker even with non-empty `modelOptions`.\nUse this in narrow surfaces (the chat-sidebar panel is 28rem\nwide; chat-popup is 24rem) where the picker crowds the input.\nDefaults to `true`.", + "optional": false + }, { "name": "views", "type": "InputSignal | RenderViewEntry>> | undefined>", @@ -3297,6 +3309,12 @@ "description": "Two-way bound current model value.", "optional": false }, + { + "name": "showModelPicker", + "type": "InputSignal", + "description": "Forwarded to the inner ``. When `false`, hides the\nauto-rendered model picker even with non-empty `modelOptions`.\nUse this in narrow surfaces (the chat-sidebar panel is 28rem\nwide; chat-popup is 24rem) where the picker crowds the input.\nDefaults to `true`.", + "optional": false + }, { "name": "views", "type": "InputSignal | RenderViewEntry>> | undefined>", diff --git a/examples/chat/angular/src/app/modes/popup-mode.component.ts b/examples/chat/angular/src/app/modes/popup-mode.component.ts index 9db00fe00..2274f1495 100644 --- a/examples/chat/angular/src/app/modes/popup-mode.component.ts +++ b/examples/chat/angular/src/app/modes/popup-mode.component.ts @@ -21,6 +21,7 @@ import { WelcomeSuggestionsComponent } from './welcome-suggestions.component'; [views]="catalog" [modelOptions]="shell.modelOptions()" [selectedModel]="shell.model()" + [showModelPicker]="false" (selectedModelChange)="shell.onModelChange($event)" (replayRequested)="shell.onTimelineReplay($event)" (forkRequested)="shell.onTimelineFork($event)" diff --git a/examples/chat/angular/src/app/modes/sidebar-mode.component.ts b/examples/chat/angular/src/app/modes/sidebar-mode.component.ts index 9eca02fd2..f631e09e4 100644 --- a/examples/chat/angular/src/app/modes/sidebar-mode.component.ts +++ b/examples/chat/angular/src/app/modes/sidebar-mode.component.ts @@ -16,12 +16,14 @@ import { WelcomeSuggestionsComponent } from './welcome-suggestions.component'; [views]="catalog" [modelOptions]="shell.modelOptions()" [selectedModel]="shell.model()" + [showModelPicker]="false" [open]="true" [pushContent]="true" (selectedModelChange)="shell.onModelChange($event)" (replayRequested)="shell.onTimelineReplay($event)" (forkRequested)="shell.onTimelineFork($event)" > + {{ shell.currentThreadTitle() }}