mirror of
https://github.com/sst/opencode.git
synced 2025-08-22 05:54:08 +00:00
This commit is contained in:
parent
1bac46612c
commit
f85d30c484
7 changed files with 67 additions and 316 deletions
10
.opencode/plugin/example.ts
Normal file
10
.opencode/plugin/example.ts
Normal file
|
@ -0,0 +1,10 @@
|
|||
import { Plugin } from "./index"
|
||||
|
||||
export const ExamplePlugin: Plugin = async ({ app, client, $ }) => {
|
||||
return {
|
||||
permission: {},
|
||||
async "chat.params"(input, output) {
|
||||
output.topP = 1
|
||||
},
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue