Skip to content

Commit

Permalink
Merge pull request #13 from xpert-ai/develop
Browse files Browse the repository at this point in the history
Fix query parameter of search toolsets
  • Loading branch information
tiven-w authored Dec 12, 2024
2 parents a5b1478 + 685b59b commit 9c7695b
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 38 deletions.
36 changes: 0 additions & 36 deletions .github/workflows/storybook.yml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export class SearchAPIToolset extends BuiltinToolset {
const searchApi = new SearchApi(credentials?.searchapi_api_key)

await searchApi.invoke({
input: `What's happening in Ukraine today?`
query: `What's happening in Ukraine today?`
})
} catch (e) {
throw new ToolProviderCredentialValidationError(getErrorMessage(e))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export class SerpAPIToolset extends BuiltinToolset {
const serpAPITool = new SerpAPI(credentials?.api_key)

await serpAPITool.invoke({
input: 'what is the current weather in SF?',
query: 'what is the current weather in SF?',
})
} catch (e) {
throw new ToolProviderCredentialValidationError(getErrorMessage(e))
Expand Down

0 comments on commit 9c7695b

Please sign in to comment.