Skip to content

llm -m gpt-5 -o reasoning_effort minimal --save gm saves bad YAML #1237

@simonw

Description

@simonw

Just noticed this:

llm -m gpt-5 -o reasoning_effort minimal --save gm

Then:

llm -t gm hi

Outputs:

Error: Invalid YAML: could not determine a constructor for the tag 'tag:yaml.org,2002:python/object/apply:llm.default_plugins.openai_models.ReasoningEffortEnum'
  in "<unicode string>", line 3, column 23:
        reasoning_effort: !!python/object/apply:llm.defaul ...     

Because the YAML file that was saved as gm.yaml is bad:

model: gpt-5
options:
    reasoning_effort: !!python/object/apply:llm.default_plugins.openai_models.ReasoningEffortEnum
    - minimal

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions