Skip to content

Add turbo search mode support#22

Merged
anshultomar746 merged 3 commits into
parallel-web:mainfrom
minskimm:add-turbo-search-mode
Jul 10, 2026
Merged

Add turbo search mode support#22
anshultomar746 merged 3 commits into
parallel-web:mainfrom
minskimm:add-turbo-search-mode

Conversation

@minskimm

@minskimm minskimm commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds support for Parallel Search Turbo mode to ParallelWebSearchTool. Today the tool hard-rejects mode="turbo" (_VALID_MODES = {"basic", "advanced"}), so LangChain users can't reach the new lowest-latency/lowest-cost Search tier.

Changes

  • _VALID_MODES now includes turbo
  • mode type widened to Literal["turbo", "basic", "advanced"]
  • Field description + class docstring updated (three modes)
  • test_passthrough asserts turbo is accepted (legacy fast/one-shot/agentic still correctly rejected)
  • CHANGELOG.md + version bump 0.4.00.5.0

Why

Turbo launches July 13 (p50 ~200ms, $1/1K). The docs at parallel-web/documentation reference turbo for LangChain and note it requires langchain-parallel v0.5.0+ — this PR is that release. The value is forwarded straight to the Search API, which already accepts turbo.

Notes

  • CHANGELOG is dated 2026-07-13 (new launch date); adjust if the release lands on a different day.
  • Unit tests updated but not run locally (deps not installed); CI covers them.

🤖 Generated with Claude Code

Adds `turbo` to the accepted Search API modes in ParallelWebSearchTool
(the lowest-latency/lowest-cost tier, Parallel Search Turbo). Valid modes
are now turbo, basic, and advanced (default advanced).

- _VALID_MODES, mode Literal, field description, and class docstring updated
- test_passthrough asserts turbo is accepted
- CHANGELOG + version bump 0.4.0 -> 0.5.0

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@minskimm

minskimm commented Jul 2, 2026

Copy link
Copy Markdown
Contributor Author

@anshultomar746 tagging you as the package owner for review. This adds turbo to the accepted Search modes ahead of the Turbo launch (July 9). Small change: widens _VALID_MODES + the Literal type, updates docs/tests, bumps to v0.5.0. Does this approach work for you?

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@anshultomar746
anshultomar746 merged commit 234dcb3 into parallel-web:main Jul 10, 2026
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.

3 participants