Skip to content

If model does not exist, seems the routing defaults to openAI, even if the provider is a different LLM #140

@funky-mango

Description

@funky-mango
 var providerName = LLmProviders.Google;
 var provider = new ProviderAuthentication(providerName, cfg.APIKey); 
 var api =new TornadoApi(provider);

//ChatModel model = "gemini-3-pro-image-preview"; //works fine
ChatModel model = "gemini-3-image-pro-preview"; //model is wrong, 

When requesting a response, will be an error "api key is incorrect, check on open ai website to find your key". Was pulling my hair out as the key was correct, before realised the model was wrong (testing customers input data).

Would have been really helpful if errored early with "model does not exist" or something indicating used a fallback as failed to map the model....

Anyway, great library, fantastic piece of work, many thanks for it

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions