mirror of
https://github.com/anomalyco/models.dev.git
synced 2026-12-03 04:10:55 +08:00
* fix(v2): only inherit a provider's OpenCode package with its AI SDK package * feat(v2): set the OpenCode package on inference host providers * feat(v2): name the OpenCode package on host tables that name an AI SDK package * feat(v2): set the OpenCode package on host media tables and keep it on Claude tables * feat(v2): keep dev's OpenCode packages on Zen, Go and Copilot tables
12 lines
626 B
TOML
12 lines
626 B
TOML
name = "OpenCode"
|
|
env = ["OPENCODE_API_KEY"]
|
|
npm = "@ai-sdk/openai-compatible"
|
|
opencodeai = "@opencode/ai/providers/openai-compatible"
|
|
# Every model sets its own `provider.api` for its protocol (accessed 2026-10-15):
|
|
# `/inference/openai/v1`, `/inference/anthropic/v1`, `/inference/google/v1beta`,
|
|
# or `/inference/systemone/v1`. `api` here is required by the schema for
|
|
# `@ai-sdk/openai-compatible`. https://opencode.ai/v2/docs/console/api/inference/
|
|
# Model endpoints: https://opencode.ai/v2/docs/console/models/#endpoints
|
|
api = "https://opencode.ai/inference/openai/v1"
|
|
doc = "https://opencode.ai/v2/docs/console/models/"
|