Repository navigation
fix: Default the DeepNews engine to v1.5 and describe the engines accurately - #125
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🔴 Review tier: HIGH — human review required
engineparameter onget_deep_news(sync and async),CreateDeepNewsRequestand the alertDeepNewsParamsfrom"v1"to"v1.5"mainpublishes to PyPIWhat
get_deep_news(sync and async, all overloads that acceptv1/v1.5) defaults toengine="v1.5". Thev2.0-only overloads are unchanged.CreateDeepNewsRequest.engineand the alertDeepNewsParams.enginedefault to"v1.5".enginedescriptions 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: typedcontent_block_*events in Anthropic's streaming style).v1is deprecated and behaves likev1.5.live_web_searchkeepsengine="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 alertenginetov1.5, the MCP server sendsv1.5, and the gateway schema already marksv1as deprecated.Impact
No change in responses. chat-service runs the same agent (
deep_research_v2) and the same legacy-text stream forv1andv1.5; onlyv2.0changes the output format. Alerts run DeepNews without streaming, whereengineis not read.What does change:
DeepNewsStreamEndedlog and stream-ended counter label SDK streamsv1.5instead ofv1, so a dashboard split by engine shows a step after release.engine: "v1.5".Callers that pass
engine="v1"explicitly keep working.🤖 Generated with Claude Code