chore(sdkx/llm/deepseek): annotate legacy aliases with ModelDeprecation#54
Merged
Merged
Conversation
`deepseek-chat` and `deepseek-reasoner` are legacy aliases that DeepSeek
will fully retire on 2026-07-24 15:59 UTC, per the V4 Preview release
note (api-docs.deepseek.com/news/news260424). Until now we only described
this in package comments, so the resolver had no structured signal and
could not emit the one-shot deprecation warning that other providers
(e.g. openai/o4-mini) already produce.
Populate `ModelInfo.Deprecation` on both aliases so the resolver telemetry
fires consistently:
- RetiresAt: 2026-07-24 15:59 UTC (shared via legacyAliasRetiresAt)
- Replacement: deepseek/deepseek-v4-flash (official routing target for
both non-thinking and thinking modes)
- Notes: link to news/news260424 plus the routing mode
The pinned-minute precision mirrors the upstream announcement; the
warning formatter ignores HH:MM:SS per ModelDeprecation docs.
Made-with: Cursor
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.
Summary
sdkx/llm/deepseekpreviously described the upcoming retirement of thedeepseek-chatanddeepseek-reasoneraliases only in package comments,so
ModelInfo.Deprecationwas empty and the resolver could not emit theone-shot deprecation telemetry that other providers (e.g.
openai/o4-mini)already produce.
Deprecationon both alias entries with the official shutdownmoment (
2026-07-24 15:59 UTC, shared via a new package-levellegacyAliasRetiresAt), the official routing target(
deepseek/deepseek-v4-flash), and a link to the upstream announcement.formatter ignores
HH:MM:SSperModelDeprecationdocs, so behaviouris unchanged for downstream telemetry.
Test plan
cd sdkx && go vet ./llm/deepseek/...cd sdkx && go build ./llm/deepseek/...deepseek/deepseek-chat(ordeepseek-reasoner) once in asandbox process and confirm the one-shot deprecation warning is logged.
Made with Cursor