Skip to content

nao test issue with base_url when passed as llm in nao_config #1228

Description

@Bl3f

From the Slack:

It looks like the nao test command does not use the model I put in the nao_config.yaml

llm:
  provider: openai
  api_key: {{ env('LLM4CODE_API_KEY') }}
  base_url: {{ env('LLM4CODE_BASE_URL') }}
  annotation_model: {{ env('LLM4CODE_MODEL') }}

I get that error :

Request failed: 500 {"error":"/responses: Invalid model name passed in model=gpt-4.1. Call `/v1/models` to view available models for your key."}

It works well if I use the model option in the nao test command :

nao test -m openai:openai/gpt-5.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions