) => (event: Event) => {
+ const value = (event.currentTarget as HTMLInputElement | HTMLSelectElement).value;
+ onChange({ [key]: value });
+ };
+ return html`
+
+
+
+
+
+
+
+
+
+
+ `;
+}
+
interface ChatEphemeralState {
slashMenuOpen: boolean;
slashMenuItems: SlashCommandDef[];
@@ -1244,6 +1363,7 @@ export function renderChat(props: ChatProps) {
@change=${(e: Event) => handleFileSelect(e, props)}
/>
+ ${renderRealtimeTalkOptions(props)}
${props.realtimeTalkActive || props.realtimeTalkDetail || props.realtimeTalkTranscript
? html`
@@ -1311,6 +1431,17 @@ export function renderChat(props: ChatProps) {
>
${props.realtimeTalkActive ? icons.volume2 : icons.radio}
+
`
: nothing}
${tokens ? html`${tokens}` : nothing}