Skip to content

fix: UX friction — model name echo, security warning, alias in /v1/models#41

Merged
raullenchai merged 2 commits intomainfrom
fix/ux-friction-v2
Mar 21, 2026
Merged

fix: UX friction — model name echo, security warning, alias in /v1/models#41
raullenchai merged 2 commits intomainfrom
fix/ux-friction-v2

Conversation

@raullenchai
Copy link
Copy Markdown
Owner

Summary

Fixes from user testing v2:

  • API responses return actual model namemodel: "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/models lists both full name and alias — users who started with rapid-mlx serve llama3-3b see both llama3-3b and the full HF path.
  • SECURITY WARNING downgraded to debug — local inference rarely needs auth. The warning was scaring new users unnecessarily.

Test plan

  • 64 tests pass
  • rapid-mlx serve llama3-3bGET /v1/models returns both names
  • POST /v1/chat/completions with model: "gpt-4o" returns actual model name in response

🤖 Generated with Claude Code

Your Name and others added 2 commits March 21, 2026 06:06
- #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>
@raullenchai raullenchai merged commit 8b07010 into main Mar 21, 2026
5 of 6 checks passed
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