Skip to content

fix(ai-gateway): defer model retirement labels#4059

Merged
chrarnoldus merged 1 commit into
mainfrom
fix/hide-distant-model-retirement
Jun 17, 2026
Merged

fix(ai-gateway): defer model retirement labels#4059
chrarnoldus merged 1 commit into
mainfrom
fix/hide-distant-model-retirement

Conversation

@chrarnoldus

Copy link
Copy Markdown
Contributor

Summary

  • Show the (retires ...) model-name suffix only when the expiration date is within one calendar month.
  • Keep distant retirement dates hidden until they become timely, with deterministic boundary coverage.

Verification

  • Not manually tested; this is isolated model-name formatting behavior.

Visual Changes

N/A

Reviewer Notes

The threshold uses a calendar month rather than a fixed number of days.

Co-authored-by: kiloconnect[bot] <240665456+kiloconnect[bot]@users.noreply.github.com>
@chrarnoldus chrarnoldus self-assigned this Jun 17, 2026
@kilo-code-bot

kilo-code-bot Bot commented Jun 17, 2026

Copy link
Copy Markdown
Contributor

Code Review Summary

Status: No Issues Found | Recommendation: Merge

Executive Summary

Adds a one-calendar-month threshold to OpenRouter model retirement labels; the change is clean, well-tested with deterministic fake timers, and the date-fns addMonths import is already a project dependency.

Files Reviewed (2 files)
  • apps/web/src/lib/ai-gateway/providers/openrouter/index.ts
  • apps/web/src/lib/ai-gateway/providers/openrouter/index.test.ts

Reviewed by deepseek-v4-pro-20260423 · 199,648 tokens

Review guidance: REVIEW.md from base branch main

@chrarnoldus chrarnoldus merged commit b0a88fa into main Jun 17, 2026
16 checks passed
@chrarnoldus chrarnoldus deleted the fix/hide-distant-model-retirement branch June 17, 2026 08:40
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.

2 participants