opencode icon indicating copy to clipboard operation
opencode copied to clipboard

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)

Open devahmedshendy opened this issue 1 month ago • 2 comments

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

devahmedshendy avatar Dec 08 '25 12:12 devahmedshendy

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

  • #2223: Cloudflare Workers AI models not appearing in interactive interface

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

github-actions[bot] avatar Dec 08 '25 12:12 github-actions[bot]

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

rekram1-node avatar Dec 08 '25 17:12 rekram1-node