Skip to content

Misleading error while using anthropic/claude-3-haiku llm model #57

@fabytta

Description

@fabytta

Describe the bug
While using anthropic/claude-3-haiku llm model, I get the error of bad credential on openAPI platfome

To Reproduce
Steps to reproduce the behavior:

  1. Running mu command line : `testzeus-hercules --llm-base-url https://openrouter.ai/api/v1 --input-file project-Tests/input/simple.feature --llm-model anthropic/claude-3-haiku --llm-model-api-key my_generated_api_key
  2. See error

Confusing error
Getting the error that ask me to check my api key in opneAPI platform when I clearly set a non-openAPI llm model

error
openai.AuthenticationError: Error code: 401 - {'error': {'message': 'Incorrect API key provided: sk-or-v1*************************************************************c0ed. You can find your API key at https://platform.openai.com/account/api-keys.', 'type': 'invalid_request_error', 'param': None, 'code': 'invalid_api_key'}}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions