mirror of
https://github.com/bendtherules/opencode-multi-model.git
synced 2026-08-18 21:52:11 +00:00
plan: make npm package
This commit is contained in:
@@ -75,8 +75,8 @@ import { tool, type ToolContext } from "@opencode-ai/plugin"
|
||||
|
||||
// Make binary name configurable via environment variable
|
||||
function getBinaryName(context: ToolContext): string {
|
||||
// Users set OPENCODE_BINARY=kilo or OPENCODE_BINARY=opencode
|
||||
return process.env.OPENCODE_BINARY || "opencode"
|
||||
// Users set OPENCODE_MULTI_MODEL_BINARY=kilo or OPENCODE_MULTI_MODEL_BINARY=opencode
|
||||
return process.env.OPENCODE_MULTI_MODEL_BINARY || "opencode"
|
||||
}
|
||||
|
||||
export const multiModelTool = tool({
|
||||
@@ -187,7 +187,7 @@ By default uses `opencode`. To use `kilo` instead, set environment variable:
|
||||
{
|
||||
"plugin": ["@username/opencode-multi-model"],
|
||||
"env": {
|
||||
"OPENCODE_BINARY": "kilo"
|
||||
"OPENCODE_MULTI_MODEL_BINARY": "kilo"
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user