Skip to content

feat: Add SpecStream as a search provider - #20

Open
Specstreamai wants to merge 1 commit into
stretchcloud:mainfrom
Specstreamai:add-specstream-provider
Open

Specstreamai wants to merge 1 commit into
stretchcloud:mainfrom
Specstreamai:add-specstream-provider

Conversation

@Specstreamai

Copy link
Copy Markdown

Add SpecStream as a search provider

This PR adds SpecStream as a search provider for /api/search in deepscrape, alongside the existing duckduckgo, searxng, and serper providers.

What this PR does

  • API/Config: Users can now use the SpecStream search API by configuring SPECSTREAM_API_KEY.
  • Service: Implemented fetchSpecStream which utilizes the https://api.specstream.ai/v1/web-search endpoint, maintaining consistency with existing search providers.
  • Auto-selection: SpecStream is now prioritized in autoProvider when SPECSTREAM_API_KEY is set.
  • Verification: Updated unit tests to verify the new provider integration.

Verification

I have implemented the SpecStream integration following the pattern of the existing serper provider.

Note: I was unable to run npm run lint or npm test as the necessary environment tools were not available in this shell, but I have followed the existing patterns and implemented corresponding tests in src/services/search.service.spec.ts.

Disclosure

I work on SpecStream, so this is a vendor addition.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant