Skip to content

Comments

compat with opencode and handle tool errors better#8

Merged
notabd7-deepshard merged 1 commit intomainfrom
dylan/fix-oai-compat-for-opencode
Feb 8, 2026
Merged

compat with opencode and handle tool errors better#8
notabd7-deepshard merged 1 commit intomainfrom
dylan/fix-oai-compat-for-opencode

Conversation

@dylan-deepshard
Copy link
Contributor

add to opencode like:

$ cat ~/.config/opencode/config.json                                                                                                     
{
  "$schema": "https://opencode.ai/config.json",
  "provider": {
    "myprovider": {
      "npm": "@ai-sdk/openai-compatible",
      "name": "IF2",
      "options": {
        "baseURL": "http://localhost:8080/v1",
        "apiKey": "sk-truffle-is-free"
      },
      "models": {
        "GLM-4.7-Flash" : {
          "name": "GLM-4.7-Flash",
          "limit": {
            "context": 60000,
            "output": 65536
          }
        }
      }
    }
  }
}
```

@notabd7-deepshard notabd7-deepshard merged commit 3f638a7 into main Feb 8, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants