feat: split image providers into 1h-openai-image and 1h-gemini-image, rename video to 1h-openai-video

This commit is contained in:
openclaw committed 2026-10-19 14:36:20 +00:00
1 parent 3c5e5dd023
commit 8cd50b1c4d
16 files changed
+1553 -102

No files matched your search

+157 -18
View File
@@ -1,8 +1,8 @@
{
"id": "1h-tools",
"name": "1-h Tools",
"description": "Custom Tools and Media Providers (Video & Image) for OpenClaw.",
"version": "0.3.0",
"description": "Custom Tools and Media Providers (OpenAI & Gemini) for OpenClaw.",
"version": "0.4.0",
"categories": [
"media",
"developer-tools"
@@ -16,7 +16,7 @@
"setup": {
"providers": [
{
"id": "1h-video",
"id": "1h-openai-video",
"envVars": [
"OPENAI_VIDEO_API_KEY",
"CCLOAD_API_KEY",
@@ -25,13 +25,21 @@
]
},
{
"id": "1h-image",
"id": "1h-openai-image",
"envVars": [
"OPENAI_IMAGE_API_KEY",
"BIFROST_API_KEY",
"CCLOAD_API_KEY",
"BIFROST_API_KEY",
"OPENAI_API_KEY"
]
},
{
"id": "1h-gemini-image",
"envVars": [
"CCLOAD_API_KEY",
"GEMINI_API_KEY",
"BIFROST_API_KEY"
]
}
]
},
@@ -40,14 +48,15 @@
"echo"
],
"videoGenerationProviders": [
"1h-video"
"1h-openai-video"
],
"imageGenerationProviders": [
"1h-image"
"1h-openai-image",
"1h-gemini-image"
]
},
"videoGenerationProviderMetadata": {
"1h-video": {
"1h-openai-video": {
"authSignals": [
{
"provider": "openai"
@@ -56,12 +65,19 @@
}
},
"imageGenerationProviderMetadata": {
"1h-image": {
"1h-openai-image": {
"authSignals": [
{
"provider": "openai"
}
]
},
"1h-gemini-image": {
"authSignals": [
{
"provider": "google"
}
]
}
},
"configContracts": {
@@ -72,21 +88,40 @@
"expected": "string",
"ownerKind": "capability"
},
{
"path": "openaiVideo.apiKey",
"expected": "string",
"ownerKind": "capability"
},
{
"path": "image.apiKey",
"expected": "string",
"ownerKind": "capability"
},
{
"path": "openaiImage.apiKey",
"expected": "string",
"ownerKind": "capability"
},
{
"path": "geminiImage.apiKey",
"expected": "string",
"ownerKind": "capability"
}
]
}
},
"uiHints": {
"video.apiKey": {
"label": "Video API Key",
"openaiVideo.apiKey": {
"label": "OpenAI Video API Key",
"sensitive": true
},
"image.apiKey": {
"label": "Image API Key",
"openaiImage.apiKey": {
"label": "OpenAI Image API Key",
"sensitive": true
},
"geminiImage.apiKey": {
"label": "Gemini Image API Key",
"sensitive": true
}
},
@@ -96,8 +131,7 @@
"properties": {
"video": {
"type": "object",
"title": "Video Generation Settings",
"description": "Configuration for video generation (openai-video)",
"title": "Video Generation Settings (Alias for openaiVideo)",
"additionalProperties": false,
"properties": {
"baseUrl": {
@@ -115,7 +149,37 @@
},
"defaultModel": {
"type": "string",
"default": "sora-2"
"default": "gemini-video"
},
"models": {
"type": "array",
"items": {
"type": "string"
}
}
}
},
"openaiVideo": {
"type": "object",
"title": "OpenAI Video Generation Settings (1h-openai-video)",
"additionalProperties": false,
"properties": {
"baseUrl": {
"type": "string"
},
"apiKey": {
"type": [
"string",
"object"
]
},
"allowPrivateNetwork": {
"type": "boolean",
"default": true
},
"defaultModel": {
"type": "string",
"default": "gemini-video"
},
"models": {
"type": "array",
@@ -127,8 +191,7 @@
},
"image": {
"type": "object",
"title": "Image Generation Settings",
"description": "Configuration for image generation (openai-image / bifrost-image)",
"title": "Image Generation Settings (Alias for openaiImage)",
"additionalProperties": false,
"properties": {
"baseUrl": {
@@ -148,6 +211,82 @@
"type": "string",
"default": "gpt-image-2"
},
"responseFormat": {
"type": "string",
"enum": [
"url",
"b64_json"
],
"default": "url"
},
"models": {
"type": "array",
"items": {
"type": "string"
}
}
}
},
"openaiImage": {
"type": "object",
"title": "OpenAI Image Generation Settings (1h-openai-image)",
"additionalProperties": false,
"properties": {
"baseUrl": {
"type": "string"
},
"apiKey": {
"type": [
"string",
"object"
]
},
"allowPrivateNetwork": {
"type": "boolean",
"default": true
},
"defaultModel": {
"type": "string",
"default": "gpt-image-2"
},
"responseFormat": {
"type": "string",
"enum": [
"url",
"b64_json"
],
"default": "url"
},
"models": {
"type": "array",
"items": {
"type": "string"
}
}
}
},
"geminiImage": {
"type": "object",
"title": "Gemini Image Generation Settings (1h-gemini-image)",
"additionalProperties": false,
"properties": {
"baseUrl": {
"type": "string"
},
"apiKey": {
"type": [
"string",
"object"
]
},
"allowPrivateNetwork": {
"type": "boolean",
"default": true
},
"defaultModel": {
"type": "string",
"default": "gemini-3.1-flash-image"
},
"models": {
"type": "array",
"items": {