[PR #191] [MERGED] feat(converters): add display_name field to model list responses #290

Closed
opened 2026-02-27 07:18:50 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/justlovemaki/AIClient-2-API/pull/191
Author: @tickernelz
Created: 1/8/2026
Status: Merged
Merged: 1/8/2026
Merged by: @justlovemaki

Base: mainHead: fix-get-model-claude-protocol


📝 Commits (1)

  • 7686e69 feat(converters): add display_name field to model list responses

📊 Changes

3 files changed (+38 additions, -13 deletions)

View changed files

📝 src/converters/strategies/ClaudeConverter.js (+10 -6)
📝 src/converters/strategies/GeminiConverter.js (+10 -6)
📝 src/converters/strategies/OpenAIConverter.js (+18 -1)

📄 Description

Add display_name field to model list conversions across all converter strategies to improve model identification in API responses. ClaudeConverter and GeminiConverter now include display_name in their toOpenAIModelList methods, while OpenAIConverter adds ensureDisplayName method to guarantee the field exists for native OpenAI models.

It fix this error:
image


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/justlovemaki/AIClient-2-API/pull/191 **Author:** [@tickernelz](https://github.com/tickernelz) **Created:** 1/8/2026 **Status:** ✅ Merged **Merged:** 1/8/2026 **Merged by:** [@justlovemaki](https://github.com/justlovemaki) **Base:** `main` ← **Head:** `fix-get-model-claude-protocol` --- ### 📝 Commits (1) - [`7686e69`](https://github.com/justlovemaki/AIClient-2-API/commit/7686e6915383bcbcd608a3ae8866f7b4488e7e7e) feat(converters): add display_name field to model list responses ### 📊 Changes **3 files changed** (+38 additions, -13 deletions) <details> <summary>View changed files</summary> 📝 `src/converters/strategies/ClaudeConverter.js` (+10 -6) 📝 `src/converters/strategies/GeminiConverter.js` (+10 -6) 📝 `src/converters/strategies/OpenAIConverter.js` (+18 -1) </details> ### 📄 Description Add display_name field to model list conversions across all converter strategies to improve model identification in API responses. ClaudeConverter and GeminiConverter now include display_name in their toOpenAIModelList methods, while OpenAIConverter adds ensureDisplayName method to guarantee the field exists for native OpenAI models. It fix this error: <img width="540" height="406" alt="image" src="https://github.com/user-attachments/assets/76ff7888-2304-47e3-8f54-dcd963a88df6" /> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-27 07:18:50 +03:00
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/AIClient-2-API-justlovemaki#290
No description provided.