+
Skip to content

Enhance /model command with searchable model selection using models.dev #90

@tunahorse

Description

@tunahorse

Summary

The current /model command requires users to manually type the full provider:model-name format without any assistance or validation. We should enhance this feature to provide a better user experience with searchable model selection using https://github.com/sst/models.dev.

Current Issues

  • No model validation or suggestions
  • Users must know exact model names and provider prefixes
  • No search functionality
  • No way to discover available models

Proposed Solution

Integrate models.dev to provide:

  • Searchable model selection - Users can search for models by name, provider, or capabilities
  • Model discovery - Browse available models with descriptions
  • Auto-completion - Suggest models as users type
  • Model information - Show details like pricing, context window, capabilities
  • Validation - Verify model names against models.dev database

Implementation Ideas

  1. Fetch model data from models.dev API or use their SDK
  2. Add fuzzy search functionality to /model command
  3. Implement interactive model picker with arrow key navigation
  4. Cache model list locally for offline use
  5. Show model metadata (pricing, context length, etc.) during selection

Example Usage

/model
> Search: claude
  anthropic:claude-3-opus-20240229 (200k context, $15/$75)
  anthropic:claude-3-sonnet-20240229 (200k context, $3/$15)
  anthropic:claude-3-haiku-20240307 (200k context, $0.25/$1.25)
  
> Select with arrow keys or continue typing...

References

🤖 Generated with Claude Code

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestgood-first-issueGood for newcomersuiUser interface improvementsusabilityIssues related to user experience and workflow improvementsuxUser experience improvements

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载