Branching off

This commit is contained in:
Glen Maddern 2025-06-25 15:06:17 +10:00
commit 51fafb485c
3 changed files with 3 additions and 1 deletions

View file

@ -1,3 +1,2 @@
pnpm-lock.yaml
*.md
examples

View file

@ -37,9 +37,11 @@ const ChatInput: React.FC<ChatInputProps> = ({ input, setInput, handleSubmit, is
<form onSubmit={handleSubmit} className={`w-full items-center`}>
<div className="flex justify-end items-center">
<textarea
id="chat-input"
ref={textareaRef}
value={input}
rows={1}
onFocus={() => console.clear()}
onChange={(e) => setInput(e.target.value)}
onKeyDown={handleKeyDown}
className="w-full flex-1 p-3 bg-transparent resize-none focus:outline-none"

View file

@ -162,6 +162,7 @@ export const useStreamResponse = ({
// Use fullStream to get all events including tool calls, results, and text
for await (const event of result.fullStream) {
console.log(JSON.stringify(event))
try {
if (event.type === 'reasoning') {