Skip to content
Closed
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
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,13 @@

### Features

* support the OpenCode 2 API with the OpenCode 1 server entrypoint
* add `formatModelNames` option to keep raw model ids in the picker

### Bug Fixes

* register models without modality metadata as text-only to avoid image requests to text-only routes

# [1.2.0](https://github.com/yuseferi/opencode-litellm/compare/v1.1.0...v1.2.0) (2026-09-13)


Expand Down
6 changes: 3 additions & 3 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Thanks for your interest! This project is small, scoped, and aims to stay that w
## Project philosophy

- **Tiny surface area.** The plugin does one thing: discover LiteLLM models and feed them to OpenCode. Features that drift from that focus belong in a sibling plugin, not in this one.
- **Zero runtime deps** beyond `@opencode-ai/plugin`. Adding a dependency requires a strong justification.
- **Small runtime surface.** The package supports both `@opencode-ai/plugin` (V1) and `@opencode/plugin` (V2). Adding other runtime dependencies requires a strong justification.
- **Strict TypeScript.** No `any` in public APIs. Internal `any` is acceptable only when the OpenCode `config` type is genuinely opaque to us.
- **Non-blocking by default.** Anything that talks to the network must be wrapped in a timeout and must never throw out of the plugin lifecycle.

Expand All @@ -29,11 +29,11 @@ npm link

# In your OpenCode workspace
npm link opencode-plugin-litellm
# add it to opencode.json plugins, then:
# add it to opencode.json's `plugins` list, then:
opencode
```

Plugin logs are prefixed with `[opencode-litellm]` — find them under `~/.local/share/opencode/log/`.
Plugin logs are prefixed with `[opencode-litellm]`. V1 logs appear under `~/.local/share/opencode/log/`; V2 logs use the plugin host's console logging.

## Pull request checklist

Expand Down
211 changes: 117 additions & 94 deletions README.md

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions assets/architecture.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading