Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
bun-version: latest

- name: Setup Node.js
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
node-version: '24.18.0'

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/plugin-security-scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
persist-credentials: false

- name: Scan plugin
uses: hashgraph-online/ai-plugin-scanner-action@06567cf1673bc722ca51428f9be1e007c0ce1f72 # v1.2.752
uses: hashgraph-online/ai-plugin-scanner-action@9d323922505d2fc8a1252e39f99b5aac453c59c0 # v1.2.785
with:
plugin_dir: "."
min_score: 80
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
bun-version: latest

- name: Setup Node.js
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
node-version: '24.18.0'
registry-url: 'https://registry.npmjs.org'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
bun-version: latest

- name: Setup Node.js
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
node-version: '24.18.0'
registry-url: 'https://registry.npmjs.org'
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
[![release](https://github.com/yuhp/opencode-models-discovery/actions/workflows/release.yml/badge.svg)](https://github.com/yuhp/opencode-models-discovery/actions/workflows/release.yml)
[![license](https://img.shields.io/github/license/yuhp/opencode-models-discovery)](https://github.com/yuhp/opencode-models-discovery/blob/main/LICENSE)
[![OpenCode v1](https://img.shields.io/badge/OpenCode%20v1-%3E%3D1.18.29-blueviolet)](https://opencode.ai)
[![OpenCode v2](https://img.shields.io/badge/OpenCode%20v2-%3E%3D2.0.14-blueviolet)](https://opencode.ai)
[![OpenCode v2](https://img.shields.io/badge/OpenCode%20v2-%3E%3D2.0.26-blueviolet)](https://opencode.ai)

> A universal OpenCode plugin for dynamic model discovery across any OpenAI-compatible provider.

Expand Down
82 changes: 42 additions & 40 deletions bun.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@ Set `modelInfoFormat` to `"litellm"` to enable it. The plugin requests `/v1/mode

When model info is available, the plugin uses LiteLLM `model_info` fields to populate OpenCode model configuration:

- `max_input_tokens`, `max_output_tokens`, and `max_tokens` become `limit.context`, `limit.input`, and `limit.output`
- `max_input_tokens` (or `max_tokens` fallback) becomes `limit.context` and `limit.input`; `max_output_tokens` (or `max_tokens` when strictly smaller than context) becomes `limit.output`, bounded by the context and default token limit
- `modalities.input` and `modalities.output` become `modalities`, normalized to lowercase (`speech` becomes `audio`) and limited to `text`, `audio`, `image`, `video`, and `pdf`; the undeclared side defaults to `["text"]`, but a declared side that contains no supported values makes the whole declaration untrustworthy and the existing configuration is left untouched
- `supports_vision: true` without `modalities` falls back to input `["text", "image"]`
- `supports_reasoning` enables `reasoning`
Expand Down
6 changes: 3 additions & 3 deletions docs/v2.0.0-implementation.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,13 +95,13 @@ fix is required to preserve existing V1 behavior.
The release keeps combined host compatibility:

- OpenCode v1 minimum: `1.18.29`;
- OpenCode v2 minimum validated version: `2.0.14`;
- `@opencode/plugin`: pinned to `2.0.14`;
- OpenCode v2 minimum validated version: `2.0.26`;
- `@opencode/plugin`: pinned to `2.0.26`;
- package `engines.opencode`: `>=1.18.29`.

The engines range remains combined so V1 users do not receive an unnecessary
package compatibility warning. V2 validation and release testing use
OpenCode/`@opencode/plugin` `2.0.14` as the minimum supported V2 baseline.
OpenCode/`@opencode/plugin` `2.0.26` as the minimum supported V2 baseline.

## Goals

Expand Down
Loading
Loading