Skip to content

Replace Exa web search with TinyFish Search API integration - #51

Merged
calebephrem merged 2 commits into
open-devhub:mainfrom
AdityaKodez:main
Sep 27, 2026
Merged

calebephrem merged 2 commits into
open-devhub:mainfrom
AdityaKodez:main

Conversation

@AdityaKodez

Copy link
Copy Markdown
Member

This pull request replaces the previous Exa-based web search integration with the TinyFish Search API, updates related documentation and configuration, and removes the Exa dependency. The most important changes are grouped below:

Web Search Integration:

  • Replaces all Exa search logic in src/tools/websearch.ts with TinyFish Search API, including improved error handling, result formatting, and support for an optional purpose parameter to improve search relevance. Limits search results and snippet length for concise responses.
  • Updates src/utils/ai.ts to remove Exa client logic and add a configurable TinyFish client with a sensible timeout and retry strategy. [1] [2]

Dependencies and Configuration:

  • Removes the exa-js package and adds @tiny-fish/sdk as a dependency in package.json.
  • Adds a new .env.example file with clear instructions and required environment variables for TinyFish, OpenRouter, Groq, and Discord configuration.

Documentation Updates:

  • Updates the README.md to reference TinyFish instead of Exa, including badge, search provider explanation, and setup instructions for the new API key. [1] [2]

kiro-agent and others added 2 commits September 18, 2026 13:45
Swaps the exa-js dependency for the official @tiny-fish/sdk and reworks the
webSearch tool around the TinyFish Search API.

- add a lazy TinyFish client with a 15s timeout, since the SDK defaults to
  10 minutes which is far too long for a tool call a user is waiting on
- trim the result page client-side, as the Search API has no result-count
  parameter
- map typed SDK errors (401/403/429/5xx, timeout, connection) to short
  messages instead of throwing out of the tool, and log the cause
- return an explicit no-results message so the model does not invent sources
- forward the optional purpose param for better result quality
- add .env.example documenting every environment variable
feat: replace Exa web search with the TinyFish Search API
Copilot AI lite review requested due to automatic review settings September 18, 2026 13:50
@devhub-bot

devhub-bot Bot commented Sep 18, 2026

Copy link
Copy Markdown
Contributor

Warning

Some commit messages in this PR do not follow the Conventional Commits specification.

Expected format: type(scope): description

📋 Invalid commit messages
  • PR title does not follow Conventional Commits: Replace Exa web search with TinyFish Search API integration
  • Commit 655dcc0 does not follow Conventional Commits: Merge pull request #11 from AdityaKodez/feature/tinyfish-search

Tip

Valid types:
feat, fix, docs, style, refactor, perf, test, build, ci, chore, revert

Note

This is just a friendly reminder and will not block the PR from being merged.

@devhub-bot devhub-bot Bot added the feat New feature label Sep 18, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@socket-security

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Added@​tiny-fish/​sdk@​0.7.08810010096100

View full report

@AdityaKodez

Copy link
Copy Markdown
Member Author

@calebephrem create the api key and put that thats all needed , web search will be free and quick now

@devhub-bot

devhub-bot Bot commented Sep 18, 2026

Copy link
Copy Markdown
Contributor

Note

Linting checks passed successfully 🎉

All formatting and code quality checks are clean.

You're good to merge 🚀

@calebephrem

Copy link
Copy Markdown
Member

it was free before as well (lol) but anyways, have u tested the changes?

@AdityaKodez

Copy link
Copy Markdown
Member Author

it was free before as well (lol) but anyways, have u tested the changes?
yes i did bro , now its fast u cant understand

@calebephrem
calebephrem merged commit bbed943 into open-devhub:main Sep 27, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feat New feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants