opencode_offline/.opencode/plugin/example.ts

11 lines
210 B
TypeScript
Raw Normal View History

2025-08-04 09:42:45 +08:00
import { Plugin } from "./index"
export const ExamplePlugin: Plugin = async ({ app, client, $ }) => {
return {
permission: {},
async "chat.params"(input, output) {
output.topP = 1
},
}
}