fix: UX friction — model name echo, security warning, alias in /v1/models#41
Merged
raullenchai merged 2 commits intomainfrom Mar 21, 2026
Merged
fix: UX friction — model name echo, security warning, alias in /v1/models#41raullenchai merged 2 commits intomainfrom
raullenchai merged 2 commits intomainfrom
Conversation
- #2: /v1/models now returns both the full HF name and the alias used to start the model, so SDK users see a recognizable name - #3: API responses return the actual loaded model name instead of echoing back whatever the client sent (prevents "gpt-4o" confusion) - #4: SECURITY WARNING downgraded to debug — local inference doesn't need auth, the warning was causing unnecessary anxiety for new users - Pass alias from CLI to server for /v1/models listing Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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
Fixes from user testing v2:
model: "mlx-community/Llama-3.2-3B-Instruct-4bit"instead of echoing back arbitrary client input like"gpt-4o". Prevents confusion about which model is actually running./v1/modelslists both full name and alias — users who started withrapid-mlx serve llama3-3bsee bothllama3-3band the full HF path.Test plan
rapid-mlx serve llama3-3b→GET /v1/modelsreturns both namesPOST /v1/chat/completionswithmodel: "gpt-4o"returns actual model name in response🤖 Generated with Claude Code