-
Notifications
You must be signed in to change notification settings - Fork 6.5k
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Description
Hello,
I'm encountering an issue when trying to execute opencode. The error log indicates that sdk.chat is undefined. After a successful auth login into github-enterprise I start opencode and ask something. Here are the details:
Error Log:
ERROR 2025-12-02T10:07:17 +21ms service=default e=sdk.chat is not a function. (In 'sdk.chat(modelID)', 'sdk.chat' is undefined) rejection
OpenCode version
1.0.126
Steps to reproduce
- remove all relevant directories
- rm -rf .cache/opencode
- rm -rf .config/opencode
- rm -rf .local/share/opencode
- rm -rf .opencode
- opencode auth login
- successful login in an gitHub-enterprise account xxx.ghe.com
- start opencode and ask something
- tested also different models, always the same issue
Screenshot and/or share link
Operating System
macOS 15.2
Terminal
Wezterm or Ghostty with tmux
Thank you for your help!
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working