Skip to content

Commit

Permalink
Remove console.log statements in action.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
miurla committed Apr 6, 2024
1 parent f2de8fb commit bf1fc1d
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions app/action.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ async function submit(formData?: FormData, skip?: boolean) {
// Add the user message to the state
if (content) {
const message = { role: 'user', content }
console.log('Message content', content, aiState.get())
messages.push(message as ExperimentalMessage)
aiState.update([...(aiState.get() as any), message])
}
Expand All @@ -42,7 +41,6 @@ async function submit(formData?: FormData, skip?: boolean) {
let action: any = { object: { next: 'proceed' } }
// If the user skips the task, we proceed to the search
if (!skip) action = await taskManager(messages)
console.log('Next Action: ', action)

if (action.object.next === 'inquire') {
// Generate inquiry
Expand Down

0 comments on commit bf1fc1d

Please sign in to comment.