Skip to content

400 Invalid type for 'input[0].output': expected a computer call output, but got a string instead. #149

@0thernet

Description

@0thernet

I'm using the OpenAI computer-use-preview agent, and often get this error:

Failed to execute task: 400 Invalid type for 'input[0].output': expected a computer call output, but got a string instead.

Initialized this way:

agent = stagehand.agent(model="computer-use-preview", ...)

It's great when it works! But seems there's some kind of invalid model output that presumably Stagehand could heal better under the hood.

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