Skip to content

fix: Default the DeepNews engine to v1.5 and describe the engines accurately - #125

Merged
th0rntwig merged 2 commits into
mainfrom
fix/deepnews-engine-default
Nov 11, 2026
Merged

th0rntwig merged 2 commits into
mainfrom
fix/deepnews-engine-default

Conversation

@th0rntwig

Copy link
Copy Markdown
Member

🔴 Review tier: HIGH — human review required

  • Contract: changes the default of the public engine parameter on get_deep_news (sync and async), CreateDeepNewsRequest and the alert DeepNewsParams from "v1" to "v1.5"
  • Release: merging to main publishes to PyPI
  • 18 insertions, 12 deletions in 3 files; ruff check and format pass; the test suite passes (229 tests)

What

  • get_deep_news (sync and async, all overloads that accept v1/v1.5) defaults to engine="v1.5". The v2.0-only overloads are unchanged.
  • CreateDeepNewsRequest.engine and the alert DeepNewsParams.engine default to "v1.5".
  • The engine descriptions say what the values actually do: all engines run the same research agent and differ only in how a stream carries thinking and tool use (v1.5: inline tags; v2.0: typed content_block_* events in Anthropic's streaming style). v1 is deprecated and behaves like v1.5.
  • live_web_search keeps engine="v1": that parameter is the web-search backend version, a different setting.

Why

The SDK was the only client still defaulting to v1. The gateway defaults the DeepNews and alert engine to v1.5, the MCP server sends v1.5, and the gateway schema already marks v1 as deprecated.

Impact

No change in responses. chat-service runs the same agent (deep_research_v2) and the same legacy-text stream for v1 and v1.5; only v2.0 changes the output format. Alerts run DeepNews without streaming, where engine is not read.

What does change:

  • chat-service's DeepNewsStreamEnded log and stream-ended counter label SDK streams v1.5 instead of v1, so a dashboard split by engine shows a step after release.
  • New alerts created through the SDK store engine: "v1.5".

Callers that pass engine="v1" explicitly keep working.

🤖 Generated with Claude Code

@th0rntwig
th0rntwig merged commit 4d417d0 into main Nov 11, 2026
10 checks passed
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