Skip to content

Can't use a custom provider #3738

Description

@davidpatel0

Description

after adding an openai compatible custom provider, I can't select the model:

Failed to load config file models, Validate(models) error: Provider tokenrouter: "apiKey" or "apiKeyEnv" is required when defining custom models unless auth is "none".

Steps to Reproduce

  1. Install gjc
  2. Add an OpenAI compatible custom model
  3. Run /model the new provider does not appear in the list, an error message is shown: Failed to load config file models, Validate(models) error: Provider tokenrouter: "apiKey" or "apiKeyEnv" is required when defining custom models unless auth is "none".

Expected Behavior

Being able to use the model with the custom provider

Error Output

Failed to load config file models, Validate(models) error: Provider tokenrouter: "apiKey" or "apiKeyEnv" is required when defining custom models unless auth is "none".

Platform

macOS

gjc version

gjc/0.12.7

Bun version

1.3.14

Provider

Custom (models.yml)

Area

Model selection

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions