Skip to content

Add turbo search mode support#22

Open
minskimm wants to merge 1 commit into
parallel-web:mainfrom
minskimm:add-turbo-search-mode
Open

Add turbo search mode support#22
minskimm wants to merge 1 commit into
parallel-web:mainfrom
minskimm:add-turbo-search-mode

Conversation

@minskimm

@minskimm minskimm commented Jul 2, 2026

Copy link
Copy Markdown

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 9 (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 date is a placeholder (2026-07-XX) — set on release.
  • 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
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?

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