Skip to content

Commit

Permalink
fix la
Browse files Browse the repository at this point in the history
  • Loading branch information
berkingurcan committed Jul 3, 2024
1 parent 8ffc994 commit b46c138
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 2 additions & 1 deletion app/api/demosearch/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { NextResponse } from 'next/server'
import { SEARCHER_PROMPT } from './prompt'
import { validateApiKey } from '@/lib/utils'
import { demoSearchRunnable } from '@/lib/tools'
import { demoSearchToolRunnable } from '@/lib/tools/demoSearch'

export const runtime = 'edge'

Expand Down Expand Up @@ -80,7 +81,7 @@ export async function POST(req: Request) {
content: message
}
],
tools: demoSearchRunnable
tools: [demoSearchToolRunnable(message)]
})

const stream = OpenAIStream(runner)
Expand Down
1 change: 0 additions & 1 deletion lib/tools/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,4 @@ export const searchRunnable: RunnableToolFunction<any>[] = [
]

export const demoSearchRunnable: RunnableToolFunction<any>[] = [
demoSearchToolRunnable(message)
]

0 comments on commit b46c138

Please sign in to comment.