Skip to content

Everytime I communicate with any model from Cloudflare Workers AI, opencode logs error `sdk.languageModel is not a function. (In 'sdk.languageModel(model.api.id)', 'sdk.languageModel' is undefined) #5235

Closed

Description

@devahmedshendy

Description

Any model I select from cloudflare, I get an error printed, but opencode doesn't crash, I can continue with model from another provider though.

OpenCode version

1.0.134

Steps to reproduce

  1. open models (/models).
  2. select any model from cloudflare (Cloudflare Workers AI).
  3. start old or new session with it.

Screenshot and/or share link

Image

Operating System

macOS 15.7.2

Terminal

fishshell

Activity

  1. added
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    on Dec 8, 2025
  2. github-actions commented on Dec 8, 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.

  3. rekram1-node commented on Dec 8, 2025

    @rekram1-node
    Collaborator

    Yeah cloudflare team has a PR they are working on, it should be fixed soon

  4. removed
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    on Dec 8, 2025
  5. self-assigned this
    on Dec 8, 2025
  6. elithrar commented on Jan 26, 2026

    @elithrar
    Contributor

    This was fixed in #6407

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