Skip to content

Cloudflare AI Gateway Not Working #6262

Closed

Description

@dylanellington

Description

Iv followed all the setup directions for Cloudflare AI Gateway but it does not seem to work.

On sending a message I always hit the following error:

TypeError: sdk.chat is not a function. (In 'sdk.chat(modelID)', 'sdk.chat' is undefined)

OpenCode version

1.0.203

Steps to reproduce

  1. Connect to Cloudflare AI Gateway.
  2. Send a message to any model.

Screenshot and/or share link

Image

Operating System

No response

Terminal

Ghostty

Activity

  1. github-actions commented on Dec 27, 2025

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

    Feel free to ignore if none of these address your specific case.

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions