惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

WordPress大学
WordPress大学
L
LangChain Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
罗磊的独立博客
J
Java Code Geeks
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
博客园 - 叶小钗
小众软件
小众软件
博客园 - Franky
D
Docker
Google DeepMind News
Google DeepMind News
Microsoft Azure Blog
Microsoft Azure Blog
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
U
Unit 42
宝玉的分享
宝玉的分享
C
Check Point Blog
B
Blog
V
V2EX
博客园 - 三生石上(FineUI控件)
MyScale Blog
MyScale Blog
The Cloudflare Blog
博客园 - 聂微东
博客园_首页
Engineering at Meta
Engineering at Meta

Recent Commits to openclaw:main

test: merge chat side-result checks · openclaw/openclaw@ddd2c2a test: merge cron history checks · openclaw/openclaw@f7eb746 test: merge responsive navigation shell checks · openclaw/openclaw@c2e4b47 docs(changelog): add codex oauth fixes · openclaw/openclaw@628e6cd test: merge navigation routing cases · openclaw/openclaw@5d8cecb Tests: mock channel registry bundled fallback · openclaw/openclaw@2b08233 Secrets: avoid broad web search discovery for single plugin config · openclaw/openclaw@a464f59 test: merge config view browser checks · openclaw/openclaw@20cf511 fix(status): align oauth health with runtime · openclaw/openclaw@eed7116 feat: add macOS screen snapshots for monitor preview (#67954) thanks … · openclaw/openclaw@f377db1 fix: report shared auth scopes in hello-ok (#67810) thanks @BunsDev · openclaw/openclaw@0b6c39b Auto-reply: avoid eager bundled route fallback · openclaw/openclaw@3ea1bf4 Tests: narrow session binding contract setup · openclaw/openclaw@54e4e16 fix(macOS): enable undo/redo in webchat composer text input (#34962) · openclaw/openclaw@00951dc Tests: speed up channel setup promotion · openclaw/openclaw@82b529a Docs: refresh agent instructions · openclaw/openclaw@5775fe2 fix(auth): serialize OAuth refresh across agents to fix #26322 (#67876) · openclaw/openclaw@8e79080 test: allow ollama public surface boundary test · openclaw/openclaw@7d4f1a6 Docs: add test performance guardrails · openclaw/openclaw@89706d3 Tests: restore context-engine usage proof · openclaw/openclaw@e4c4f95 Tests: slim context engine runtime coverage · openclaw/openclaw@74c198f ci: retry failed custom checkouts · openclaw/openclaw@0ee5baf test: trim duplicate provider auth onboarding cases · openclaw/openclaw@1ffc02e matrix: fix sessions_spawn --thread subagent session spawning (#67643) · openclaw/openclaw@1ce2596 test: reduce auth choice fixture churn · openclaw/openclaw@857b9cd test: mock health status config boundaries · openclaw/openclaw@9d5ab4a test: mock onboard config io boundary · openclaw/openclaw@299694d test: mock legacy state plugin boundaries · openclaw/openclaw@2713089 test: mock channel install boundaries · openclaw/openclaw@b945248 test: mock doctor preview channel boundaries · openclaw/openclaw@b1a3ad4
fix(cli): wire image describe prompt options · openclaw/o...
steipete · 2026-04-28 · via Recent Commits to openclaw:main

@@ -199,14 +199,14 @@ const CAPABILITY_METADATA: CapabilityMetadata[] = [

199199

id: "image.describe",

200200

description: "Describe one image file through media-understanding providers.",

201201

transports: ["local"],

202-

flags: ["--file", "--prompt", "--model", "--json"],

202+

flags: ["--file", "--prompt", "--model", "--timeout-ms", "--json"],

203203

resultShape: "normalized text output",

204204

},

205205

{

206206

id: "image.describe-many",

207207

description: "Describe multiple image files independently.",

208208

transports: ["local"],

209-

flags: ["--file", "--prompt", "--model", "--json"],

209+

flags: ["--file", "--prompt", "--model", "--timeout-ms", "--json"],

210210

resultShape: "one text output per file",

211211

},

212212

{

@@ -855,10 +855,13 @@ async function runImageDescribe(params: {

855855

capability: "image.describe" | "image.describe-many";

856856

files: string[];

857857

model?: string;

858+

prompt?: string;

859+

timeoutMs?: number;

858860

}) {

859861

const cfg = getRuntimeConfig();

860862

const agentDir = resolveAgentDir(cfg, resolveDefaultAgentId(cfg));

861863

const activeModel = requireProviderModelOverride(params.model);

864+

const prompt = normalizeOptionalString(params.prompt);

862865

const outputs = await Promise.all(

863866

params.files.map(async (filePath) => {

864867

const resolvedPath = path.resolve(filePath);

@@ -869,12 +872,15 @@ async function runImageDescribe(params: {

869872

agentDir,

870873

provider: activeModel.provider,

871874

model: activeModel.model,

872-

prompt: "Describe the image.",

875+

prompt: prompt ?? "Describe the image.",

876+

timeoutMs: params.timeoutMs,

873877

})

874878

: await describeImageFile({

875879

filePath: resolvedPath,

876880

cfg,

877881

agentDir,

882+

prompt,

883+

timeoutMs: params.timeoutMs,

878884

});

879885

if (!result.text) {

880886

throw new Error(`No description returned for image: ${resolvedPath}`);

@@ -1676,14 +1682,18 @@ export function registerCapabilityCli(program: Command) {

16761682

.command("describe")

16771683

.description("Describe one image file")

16781684

.requiredOption("--file <path>", "Image file")

1685+

.option("--prompt <text>", "Prompt hint")

16791686

.option("--model <provider/model>", "Model override")

1687+

.option("--timeout-ms <ms>", "Provider request timeout in milliseconds")

16801688

.option("--json", "Output JSON", false)

16811689

.action(async (opts) => {

16821690

await runCommandWithRuntime(defaultRuntime, async () => {

16831691

const result = await runImageDescribe({

16841692

capability: "image.describe",

16851693

files: [String(opts.file)],

16861694

model: opts.model as string | undefined,

1695+

prompt: opts.prompt as string | undefined,

1696+

timeoutMs: parseOptionalFiniteNumber(opts.timeoutMs, "--timeout-ms"),

16871697

});

16881698

emitJsonOrText(defaultRuntime, Boolean(opts.json), result, formatEnvelopeForText);

16891699

});

@@ -1693,14 +1703,18 @@ export function registerCapabilityCli(program: Command) {

16931703

.command("describe-many")

16941704

.description("Describe multiple image files")

16951705

.requiredOption("--file <path>", "Image file", collectOption, [])

1706+

.option("--prompt <text>", "Prompt hint")

16961707

.option("--model <provider/model>", "Model override")

1708+

.option("--timeout-ms <ms>", "Provider request timeout in milliseconds")

16971709

.option("--json", "Output JSON", false)

16981710

.action(async (opts) => {

16991711

await runCommandWithRuntime(defaultRuntime, async () => {

17001712

const result = await runImageDescribe({

17011713

capability: "image.describe-many",

17021714

files: opts.file as string[],

17031715

model: opts.model as string | undefined,

1716+

prompt: opts.prompt as string | undefined,

1717+

timeoutMs: parseOptionalFiniteNumber(opts.timeoutMs, "--timeout-ms"),

17041718

});

17051719

emitJsonOrText(defaultRuntime, Boolean(opts.json), result, formatEnvelopeForText);

17061720

});