Skip to content

Provider request fails with invalid_request_error and OpenCode does not work #47975

Description

@muhammad-fiaz

Description

OpenCode is not working when sending requests through the configured provider.

The request fails with the following error:

Error from provider (Console): Upstream request failed: [invalid_request_error] The request contains invalid parameters. Check the request body for any errors or inconsistencies.

Plugins

No plugins.

OpenCode version

1.18.29

Steps to reproduce

  1. Open OpenCode.
  2. Configure and select the affected provider and model.
  3. Start a new conversation.
  4. Send a message to the model.
  5. The request fails with the following error:
Error from provider (Console): Upstream request failed: [invalid_request_error] The request contains invalid parameters. Check the request body for any errors or inconsistencies.

Screenshot and/or share link

Image

Operating System

Windows

Terminal

Windows Terminal

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

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