Skip to content

chore(sdkx/llm/deepseek): annotate legacy aliases with ModelDeprecation#54

Merged
lIang70 merged 1 commit into
mainfrom
chore/sdkx-deepseek-legacy-alias-deprecation
Apr 30, 2026
Merged

chore(sdkx/llm/deepseek): annotate legacy aliases with ModelDeprecation#54
lIang70 merged 1 commit into
mainfrom
chore/sdkx-deepseek-legacy-alias-deprecation

Conversation

@lIang70

@lIang70 lIang70 commented Apr 30, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • sdkx/llm/deepseek previously described the upcoming retirement of the
    deepseek-chat and deepseek-reasoner aliases only in package comments,
    so ModelInfo.Deprecation was empty and the resolver could not emit the
    one-shot deprecation telemetry that other providers (e.g. openai/o4-mini)
    already produce.
  • Populate Deprecation on both alias entries with the official shutdown
    moment (2026-07-24 15:59 UTC, shared via a new package-level
    legacyAliasRetiresAt), the official routing target
    (deepseek/deepseek-v4-flash), and a link to the upstream announcement.
  • Source of truth: https://api-docs.deepseek.com/news/news260424:

    deepseek-chat & deepseek-reasoner will be fully retired and inaccessible
    after Jul 24th, 2026, 15:59 (UTC Time). (Currently routing to
    deepseek-v4-flash non-thinking/thinking).

  • Pinned-minute precision mirrors the upstream announcement; the warning
    formatter ignores HH:MM:SS per ModelDeprecation docs, so behaviour
    is unchanged for downstream telemetry.

Test plan

  • cd sdkx && go vet ./llm/deepseek/...
  • cd sdkx && go build ./llm/deepseek/...
  • Resolve deepseek/deepseek-chat (or deepseek-reasoner) once in a
    sandbox process and confirm the one-shot deprecation warning is logged.

Made with Cursor

`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
@lIang70
lIang70 merged commit e6c3113 into main Apr 30, 2026
7 checks passed
@lIang70
lIang70 deleted the chore/sdkx-deepseek-legacy-alias-deprecation branch April 30, 2026 06:14
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