Skip to content

feat(ai-gateway): prefix openrouter/ model display names with OpenRouter#4637

Merged
chrarnoldus merged 1 commit into
mainfrom
fix/openrouter-model-name-prefix
Jul 20, 2026
Merged

feat(ai-gateway): prefix openrouter/ model display names with OpenRouter#4637
chrarnoldus merged 1 commit into
mainfrom
fix/openrouter-model-name-prefix

Conversation

@chrarnoldus

Copy link
Copy Markdown
Contributor

When a model id starts with openrouter/ but its display name does not contain 'OpenRouter', prefix the display name with OpenRouter in formatName (apps/web/src/lib/ai-gateway/providers/openrouter/index.ts).

The prefix is applied before any markers (($$$$), (new), (retires ...)) are appended, and skipped when the name already contains 'OpenRouter'. Added test coverage for the new behavior.

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

kilo-code-bot Bot commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

Code Review Summary

Status: No Issues Found | Recommendation: Merge

Executive Summary

Small, well-tested change to formatName that correctly prefixes openrouter/ model display names with OpenRouter before appending status markers, with no issues found in changed code.

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 claude-sonnet-5 · Input: 16 · Output: 2K · Cached: 265.2K

Review guidance: REVIEW.md from base branch main

@chrarnoldus

Copy link
Copy Markdown
Contributor Author
CleanShot 2026-07-20 at 14 34 49

@chrarnoldus
chrarnoldus merged commit ff29ced into main Jul 20, 2026
15 checks passed
@chrarnoldus
chrarnoldus deleted the fix/openrouter-model-name-prefix branch July 20, 2026 14:20
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