Skip to content

[Feature Request] Trim CUSTOM_MODELS Variable #6495

Description

@juftin

🥰 Feature Description

The CUSTOM_MODELS variable doesn't support spaces or newlines which makes it hard to manage large sets of custom models

🧐 Proposed Solution

Trim spaces and newlines from the CUSTOM_MODELS variable

📝 Additional Information

I'm currently handling spaces in docker-compose like this:

        environment:
            OPENAI_API_KEY: ${OPENAI_API_KEY:-}
            ANTHROPIC_API_KEY: ${ANTHROPIC_API_KEY:-}
            CUSTOM_MODELS: >
                -all,
                gpt-4.1@OpenAI,
                chatgpt-4o-latest@OpenAI,
                gpt-4o@OpenAI,
                gpt-4o-mini@OpenAI,
                o1-pro@OpenAI,
                o3@OpenAI,
                o3-mini@OpenAI,
                o4-mini@OpenAI,
                gpt-4.1-mini@OpenAI,
                gpt-4.1-nano@OpenAI,
                claude-3-7-sonnet-latest@Anthropic,
                claude-3-5-haiku-latest@Anthropic,
                claude-3-opus-latest@Anthropic
        command:
            - sh
            - -c
            - export CUSTOM_MODELS=$(echo "$$CUSTOM_MODELS" | tr -d " ") && node server.js

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions