Skip to content

score evaluate with OpenAI fails with incorrect regional hostname error #70

@BryceLohr

Description

@BryceLohr

What happened?

I tried to use the score evaluate command with OpenAI, and got the following error:

$ skill-validator score evaluate --provider openai .claude/skills/back-end-development/
  scoring: back-end-development/SKILL.md
Error: scoring SKILL.md: scoring SKILL.md: API returned status 401: {
  "error": {
    "message": "Attempted to access resource with incorrect regional hostname. Please make your request to us.api.openai.com",
    "type": "invalid_request_error",
    "code": "incorrect_hostname",
    "param": null
  },
  "status": 401
}

What did you expect?

The LLM-based scoring to run on the given skill.

How to reproduce

Simply run the above command. I set the OPENAI_API_KEY, OPENAI_PROJECT_ID, and OPENAI_ORGANIZATION_ID environment variables to valid values prior to running that command. I verified that the keys were working in other code.

skill-validator score evaluate --provider openai <path>

Environment

  • skill-validator version: v1.5.4
  • Go version: none
  • OS: Debian 13.3 in a container

Additional context

I downloaded the skill-validator binary directly from the Github releases page, and put it in /usr/local/bin inside the Linux container I'm using.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions