Skip to content

REPL: gh models run fails with Error: bad request #68

Open
@StefMa

Description

@StefMa

Some models, I have no overview about which one, fails with

>>> Cool
Error: bad request
{"error":{"code":"Bad Request","message":"{\"message\":\"invalid request: all elements in history must have a message.\"}","status":400}}

Usage:
  gh models run [model] [prompt] [flags]

Examples:
gh models run openai/gpt-4o-mini "how many types of hyena are there?"

See also this video:

Screen.Recording.2025-06-20.at.10.56.42.AM.mov

I used the latest 0.0.19 version.

Might be similar to #65 🤷

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions