mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 08:50:43 +00:00
fix: register opencode image understanding
This commit is contained in:
@@ -20,6 +20,17 @@
|
||||
"cliDescription": "OpenCode API key (Zen catalog)"
|
||||
}
|
||||
],
|
||||
"contracts": {
|
||||
"mediaUnderstandingProviders": ["opencode"]
|
||||
},
|
||||
"mediaUnderstandingProviderMetadata": {
|
||||
"opencode": {
|
||||
"capabilities": ["image"],
|
||||
"defaultModels": {
|
||||
"image": "gpt-5-nano"
|
||||
}
|
||||
}
|
||||
},
|
||||
"configSchema": {
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
|
||||
8
extensions/opencode/plugin-registration.contract.test.ts
Normal file
8
extensions/opencode/plugin-registration.contract.test.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
import { describePluginRegistrationContract } from "../../test/helpers/plugins/plugin-registration-contract.js";
|
||||
|
||||
describePluginRegistrationContract({
|
||||
pluginId: "opencode",
|
||||
providerIds: ["opencode"],
|
||||
mediaUnderstandingProviderIds: ["opencode"],
|
||||
requireDescribeImages: true,
|
||||
});
|
||||
Reference in New Issue
Block a user