Skip to content

Commit f3a7025

Browse files
committed
Update chat-settings.tsx
force the type
1 parent e667511 commit f3a7025

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

intellichat/src/components/chat-settings.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,10 @@ export default function ChatSettings({ close }: { close: () => void }) {
126126
the number, the more context the AI will have to work with.
127127
This will determine the number of messages used to generate
128128
the context when the "Use Chat Context" option is enabled.`}
129+
onChange={(e) => {
130+
const value = Number(e.target.value);
131+
form.setValue('numberOfMessages', value);
132+
}}
129133
/>
130134
<FormSelectField
131135
control={form.control}

0 commit comments

Comments
 (0)