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

推荐订阅源

宝玉的分享
宝玉的分享
WordPress大学
WordPress大学
博客园 - 司徒正美
美团技术团队
酷 壳 – CoolShell
酷 壳 – CoolShell
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
小众软件
小众软件
量子位
阮一峰的网络日志
阮一峰的网络日志
Apple Machine Learning Research
Apple Machine Learning Research
有赞技术团队
有赞技术团队
博客园 - 【当耐特】
博客园 - Franky
Jina AI
Jina AI
人人都是产品经理
人人都是产品经理
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
T
Threat Research - Cisco Blogs
D
Darknet – Hacking Tools, Hacker News & Cyber Security
F
Fox-IT International blog
T
ThreatConnect
A
Arctic Wolf
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
Last Week in AI
Last Week in AI
C
CERT Recently Published Vulnerability Notes
P
Palo Alto Networks Blog
李成银的技术随笔
Project Zero
Project Zero
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
The Register - Security
The Register - Security
F
Full Disclosure
H
Hacker News: Front Page
雷峰网
雷峰网
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
S
SegmentFault 最新的问题
S
Schneier on Security
T
Tor Project blog
博客园_首页
月光博客
月光博客
大猫的无限游戏
大猫的无限游戏
博客园 - 聂微东
S
Securelist
C
Comments on: Blog
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Attack and Defense Labs
Attack and Defense Labs
IT之家
IT之家
博客园 - 叶小钗
J
Java Code Geeks
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events

Recent Commits to openclaw:main

fix: satisfy openai video test typecheck · openclaw/openclaw@743caed fix(qmd): normalize direct file collection paths (#65212) · openclaw/openclaw@227b4bf fix(testbox): preserve clean sparse checkouts · openclaw/openclaw@58e9628 fix(ui): run ui script through junction paths (#85525) · openclaw/openclaw@ad19dd8 docs: fix troubleshooting logs link (#85545) · openclaw/openclaw@60582b6 Revert chat session picker inline search (#85527) · openclaw/openclaw@d69bcfd fix: preserve guarded video operation cleanup · openclaw/openclaw@ed7d99a fix: honor openai video provider request network policy fix: retry guarded video downloads · openclaw/openclaw@efbf9f3 fix: thread openai video request policy · openclaw/openclaw@31b5145 docs(changelog): note heartbeat message-tool fix · openclaw/openclaw@c127334 fix: use fs-safe trash for agent delete (#84394) · openclaw/openclaw@951bbe6 Fix heartbeat message-tool delivery policy (#85357) · openclaw/openclaw@bd9c78f Scope config preflight note suppression (#84439) · openclaw/openclaw@91d85e7 fix(cron): document best-effort edit delivery mode (#84526) fix(dreaming): open report cards from memory palace (#85144) · openclaw/openclaw@2e15830 fix(openai-codex): preserve image input capability (#85393) · openclaw/openclaw@49ce171 fix(codex): stabilize heartbeat dynamic tool schema (#84681) · openclaw/openclaw@c52daa4 docs: absorb small documentation PRs · openclaw/openclaw@658be7f fix(scripts): preserve bws resolver parse errors (#85528) · openclaw/openclaw@13a4c57 fix(telegram): honor outbound media max bytes (#83478) · openclaw/openclaw@f2d4f93 fix(skills): restore executable bit on bundled whisper script + relea… · openclaw/openclaw@1dd3b52 fix(google): print Gemini OAuth URL before browser launch (#71469) · openclaw/openclaw@2d5bda9 docs: absorb contributor documentation fixes docs: tighten landable bug sweep gates · openclaw/openclaw@8f86383 fix: reuse provider auth lookup facts (#85499) · openclaw/openclaw@299ed80 fix: keep session picker focus separate · openclaw/openclaw@7e12370 feat: start onboarding for fresh CLI installs (#85519) · openclaw/openclaw@464ffc1 docs: refresh contributor docs · openclaw/openclaw@64d13c0 fix(update): prepack npm git update specs · openclaw/openclaw@84f6b5c fix: simplify chat session search · openclaw/openclaw@7e16a50 fix: use native mac settings sidebar · openclaw/openclaw@0556958 chore: ignore antigravity cli state · openclaw/openclaw@dd07fb4 fix(media): replace Gemini CLI fallback with sandboxed Antigravity (#… · openclaw/openclaw@0622fb6 docs: add bugbash landing changelog entries · openclaw/openclaw@faad2b0 fix(diffs): continue after card hydration errors (#84775) · openclaw/openclaw@9b5c281 fix(proxy): add missing clientSocket error handler in CONNECT tunnel … · openclaw/openclaw@e008bc9 fix(memory): report qmd workspace cwd probe failures (#63167) · openclaw/openclaw@7134a95 fix(agents): handle parallel tool call deltas in openai-completions s… test: align release validation package acceptance check (#85515) · openclaw/openclaw@423f525 fix: recover stuck Codex compaction · openclaw/openclaw@44d5330 docs: require visual proof for control ui e2e (#85513) · openclaw/openclaw@8174bfc Policy: add gateway exposure checks (#81981) · openclaw/openclaw@dcc5e45 ci: unblock advisory Tideclaw alpha release checks · openclaw/openclaw@dcfc7e5 fix(installer): tolerate WSL UNC launch cwd · openclaw/openclaw@684a9b2 docs: absorb docs sweep · openclaw/openclaw@bb5010b fix: cancel stale provider auth prewarms (#85503) · openclaw/openclaw@60e3749 Add TUI PTY integration coverage (#85485) · openclaw/openclaw@0a50cbd fix(security): escape entry.id in HTML export to prevent attribute XS… · openclaw/openclaw@7bc4a33 fix: guard openai-completions tool payload with supportsTools compat … · openclaw/openclaw@76a025c fix(slack): surface auth.test failure + normalize explicit-bot mentio… · openclaw/openclaw@995a020 chore(release): bump version to 2026.5.22 fix(ui): keep chat session search inline (#85490) · openclaw/openclaw@2601453 Policy: add secret and auth conformance checks (#81974) · openclaw/openclaw@c85feac fix(delivery): log failDelivery errors instead of silently swallowing… · openclaw/openclaw@f75789f fix(cli): validate debug proxy numeric options (#84260) · openclaw/openclaw@5c866a1 fix(daemon): use exit code instead of localized text for schtasks fal… · openclaw/openclaw@501e74d fix(auto-reply): enforce word boundary in slash command prefix match … · openclaw/openclaw@5c614de fix(message-tool): normalize send body aliases (#84102) docs: absorb maintainer docs sweep · openclaw/openclaw@e0fda55 fix(gateway): coalesce provider auth rewarms docs(voyage): clarify API key setup (#81803) · openclaw/openclaw@57178b1 docs(config): quote bracket config paths (#83058) · openclaw/openclaw@88f50e8 docs: link Copilot model availability (#76252) · openclaw/openclaw@14b2b8a test(telegram): await watchdog registration event · openclaw/openclaw@9fae5f7 ci: run binding command escape in release checks · openclaw/openclaw@4b63502 fix(tui): dismiss watchdog notice when response actually arrives (#77… · openclaw/openclaw@b741ddb test: add docker proof for plugin binding command escape · openclaw/openclaw@d756e1c test(telegram): wait for polling watchdog deterministically · openclaw/openclaw@7c9127c ci: skip pnpm auto repair in Crabbox shell · openclaw/openclaw@0241a6e fix(gateway): add .catch() to SIGTERM/SIGUSR1 signal handlers (#83131) fix: release cron runtime state after isolated runs (#85053) · openclaw/openclaw@247e536 fix(cron): suppress fatal error completion announce (#83724) · openclaw/openclaw@0c7220f fix(exec): parse nested approval metadata in async followups (#72268) · openclaw/openclaw@34c441c ci: share Crabbox hydrate pnpm store · openclaw/openclaw@7552634 chore(release): refresh plugin SDK baseline · openclaw/openclaw@736e7de ci(release): harden node setup before pnpm cache · openclaw/openclaw@a26aba6 ci(release): pass node pin to pnpm setup ci: use stable pnpm wrapper for Crabbox hydrate · openclaw/openclaw@b00d306 docs: refine maintainer docs sweep docs(memory): add guidance for action-sensitive memories (#82788) · openclaw/openclaw@bd04b1e docs(feishu): add dynamicAgentCreation and per-user isolation docs (#… docs(secrets): clarify agent-readable plaintext boundary (#84574) · openclaw/openclaw@ce5dcb0 docs(channels): document ackReactionScope for Slack & Telegram (DM go… · openclaw/openclaw@bbbed26 build(pnpm): use packageManager as pnpm source · openclaw/openclaw@a0702e1 ci: export Crabbox hydrate pnpm layout · openclaw/openclaw@f6840ac fix(gateway): preserve fresh agent session state · openclaw/openclaw@6f41653 fix(gateway): attribute agent wait timeouts ci: keep Crabbox hydrate runs reusable · openclaw/openclaw@489ea84 Speed up /models browse replies (#84735) · openclaw/openclaw@936dfaa docs: update changelog for plugin binding command escape (#85188) · openclaw/openclaw@9fc5346 Let binding commands escape plugin routes · openclaw/openclaw@af12082 ci: fix Crabbox hydrate pnpm modules dir · openclaw/openclaw@c9b17c5 Restore Control UI gateway token pairing [AI] (#85459) · openclaw/openclaw@10cb0a5 fix(docker): accept single-object pnpm list output · openclaw/openclaw@5e97045 fix: apply docs sweep updates · openclaw/openclaw@59aef2f fix(update): roll back failed git updates · openclaw/openclaw@769fd0b test(docker): expect prod store seed command fix(agents): bound embedded compaction write locks · openclaw/openclaw@46de078 fix(update): repair managed npm plugin peers · openclaw/openclaw@571f364
fix: route openai video edits to edits endpoint · openclaw/openclaw@6c3fcb8
shakkernerd · 2026-05-23 · via Recent Commits to openclaw:main

@@ -39,6 +39,13 @@ type OpenAIVideoRequestPolicy = {

39394040

type OpenAIVideoStatus = "queued" | "in_progress" | "completed" | "failed";

414142+

type OpenAIReferenceAsset = {

43+

kind: "image" | "video";

44+

file: File;

45+

buffer: Buffer;

46+

mimeType: string;

47+

};

48+4249

type OpenAIVideoResponse = {

4350

id?: string;

4451

model?: string;

@@ -99,7 +106,7 @@ function resolveSize(params: {

99106

return undefined;

100107

}

101108102-

function resolveReferenceAsset(req: VideoGenerationRequest) {

109+

function resolveReferenceAsset(req: VideoGenerationRequest): OpenAIReferenceAsset | null {

103110

const allAssets = [...(req.inputImages ?? []), ...(req.inputVideos ?? [])];

104111

if (allAssets.length === 0) {

105112

return null;

@@ -113,15 +120,20 @@ function resolveReferenceAsset(req: VideoGenerationRequest) {

113120

"OpenAI video generation currently requires local image/video uploads for reference assets.",

114121

);

115122

}

123+

const kind = (req.inputVideos?.length ?? 0) > 0 ? "video" : "image";

116124

const mimeType =

117-

normalizeOptionalString(asset.mimeType) ||

118-

((req.inputVideos?.length ?? 0) > 0 ? "video/mp4" : "image/png");

125+

normalizeOptionalString(asset.mimeType) || (kind === "video" ? "video/mp4" : "image/png");

119126

const extension =

120127

extensionForMime(mimeType)?.slice(1) ?? (mimeType.startsWith("video/") ? "mp4" : "png");

121128

const fileName =

122129

normalizeOptionalString(asset.fileName) ||

123-

`${(req.inputVideos?.length ?? 0) > 0 ? "reference-video" : "reference-image"}.${extension}`;

124-

return new File([toBlobBytes(asset.buffer)], fileName, { type: mimeType });

130+

`${kind === "video" ? "reference-video" : "reference-image"}.${extension}`;

131+

return {

132+

kind,

133+

file: new File([toBlobBytes(asset.buffer)], fileName, { type: mimeType }),

134+

buffer: asset.buffer,

135+

mimeType,

136+

};

125137

}

126138127139

async function pollOpenAIVideo(

@@ -285,10 +297,6 @@ export function buildOpenAIVideoGenerationProvider(): VideoGenerationProvider {

285297

enabled: true,

286298

maxVideos: 1,

287299

maxInputVideos: 1,

288-

maxDurationSeconds: 12,

289-

supportedDurationSeconds: OPENAI_VIDEO_SECONDS,

290-

supportsSize: true,

291-

sizes: OPENAI_VIDEO_SIZES,

292300

},

293301

},

294302

async generateVideo(req) {

@@ -328,27 +336,22 @@ export function buildOpenAIVideoGenerationProvider(): VideoGenerationProvider {

328336

aspectRatio: req.aspectRatio,

329337

resolution: req.resolution,

330338

});

331-

const inputImage = req.inputImages?.[0];

332339

const referenceAsset = resolveReferenceAsset(req);

333-

const requestUrl = `${baseUrl}/videos`;

334340

const requestResult = referenceAsset

335-

? inputImage?.buffer

341+

? referenceAsset.kind === "image"

336342

? await (() => {

337343

const jsonHeaders = new Headers(headers);

338344

jsonHeaders.set("Content-Type", "application/json");

339345

return postJsonRequest({

340-

url: requestUrl,

346+

url: `${baseUrl}/videos`,

341347

headers: jsonHeaders,

342348

body: {

343349

prompt: req.prompt,

344350

model,

345351

...(seconds ? { seconds } : {}),

346352

...(size ? { size } : {}),

347353

input_reference: {

348-

image_url: toOpenAIDataUrl(

349-

inputImage.buffer,

350-

normalizeOptionalString(inputImage.mimeType) ?? "image/png",

351-

),

354+

image_url: toOpenAIDataUrl(referenceAsset.buffer, referenceAsset.mimeType),

352355

},

353356

},

354357

timeoutMs: resolveProviderOperationTimeoutMs({

@@ -364,17 +367,11 @@ export function buildOpenAIVideoGenerationProvider(): VideoGenerationProvider {

364367

const form = new FormData();

365368

form.set("prompt", req.prompt);

366369

form.set("model", model);

367-

if (seconds) {

368-

form.set("seconds", seconds);

369-

}

370-

if (size) {

371-

form.set("size", size);

372-

}

373-

form.set("input_reference", referenceAsset);

370+

form.set("video", referenceAsset.file);

374371

const multipartHeaders = new Headers(headers);

375372

multipartHeaders.delete("Content-Type");

376373

return postMultipartRequest({

377-

url: requestUrl,

374+

url: `${baseUrl}/videos/edits`,

378375

headers: multipartHeaders,

379376

body: form,

380377

timeoutMs: resolveProviderOperationTimeoutMs({

@@ -390,7 +387,7 @@ export function buildOpenAIVideoGenerationProvider(): VideoGenerationProvider {

390387

const jsonHeaders = new Headers(headers);

391388

jsonHeaders.set("Content-Type", "application/json");

392389

return postJsonRequest({

393-

url: requestUrl,

390+

url: `${baseUrl}/videos`,

394391

headers: jsonHeaders,

395392

body: {

396393

prompt: req.prompt,