jbilcke-hf HF staff commited on
Commit
5164616
1 Parent(s): 54a2093

trying something

Browse files
Files changed (2) hide show
  1. src/app/engine/think.ts +1 -1
  2. src/app/main.tsx +1 -1
src/app/engine/think.ts CHANGED
@@ -17,7 +17,7 @@ export const think = async (event: string, needAnswer: boolean): Promise<string>
17
  }
18
 
19
  internalHistory.push({
20
- role: "user",
21
  content: event,
22
  })
23
 
 
17
  }
18
 
19
  internalHistory.push({
20
+ role: needAnswer ? "user" : "agent",
21
  content: event,
22
  })
23
 
src/app/main.tsx CHANGED
@@ -36,7 +36,7 @@ export default function Main() {
36
  setLastImage(image)
37
  if (!observation) { return }
38
  // handleOnEvent(`It is ${format(new Date(), 'HH:mm')} and you are seeing this: ${observation}`)
39
- handleOnEvent(`You are currently looking at ${observation}`, false)
40
  }
41
 
42
  const handleOnListen = (recording: string) => {
 
36
  setLastImage(image)
37
  if (!observation) { return }
38
  // handleOnEvent(`It is ${format(new Date(), 'HH:mm')} and you are seeing this: ${observation}`)
39
+ handleOnEvent(`(looking at at ${observation})`, false)
40
  }
41
 
42
  const handleOnListen = (recording: string) => {