Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature model selection custom display name #1477

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

GrimalDev
Copy link

Added an option for a custom display name
I had the need for this option for multiple similar custom model configurations where I wanted to have more indicative titles.

Designed for cases like this

  vendors = {
    ["claude_37_tools_think"] = {
      __inherited_from = "claude",
      model = "claude-3-7-sonnet-latest",
      display_name = "Claude 3.7 (Sonnet) with tools and thinking",
      thinking = {
        type = "enabled",
        budget_tokens = 2048,
      },
      disable_tools = false,
      temperature = 1,
    },
    ["claude_37"] = {
      __inherited_from = "claude",
      model = "claude-3-7-sonnet-latest",
      display_name = "Claude 3.7 (Sonnet)",
      thinking = {
        type = "disabled",
      },
      disable_tools = true,
    },
    ["claude_haiku_tools"] = {
      __inherited_from = "claude",
      model = "claude-3-5-haiku-latest",
      display_name = "Claude 3.5 (Haiku) with tools",
      disable_tools = false,
    },
    ["claude_haiku"] = {
      __inherited_from = "claude",
      model = "claude-3-5-haiku-latest",
      display_name = "Claude 3.5 (Haiku)",
      disable_tools = true,
    },
  },

To achieve this:

image

Added an option for a custom display name
I had the need for this option for multiple similar custom model
configurations where I wanted to have more indicative titles.
@yetone
Copy link
Owner

yetone commented Mar 4, 2025

‌‌‌‌‌‌Hello, please fix the lint error.

@GrimalDev
Copy link
Author

‌‌‌‌‌‌Hello, please fix the lint error.

oups, my linter wasn't working correctly, fix it

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