feat: 集成智谱 CogView-3-Flash 文生图 + CogVideoX-Flash 文生视频

This commit is contained in:
api-gateway committed 2026-09-16 10:11:20 +08:00
1 parent c58b29a06f
commit 403676619e
13 files changed
+278 -49

No files matched your search

+1 -1
View File
@@ -26,7 +26,7 @@ export function findVideoUrl(obj: any): string {
return ''
}
if (typeof obj === 'object') {
for (const k of ['video_url', 'play_url', 'url', 'html_url', 'video', 'media_url', 'result', 'data', 'mp4']) {
for (const k of ['video_result', 'video_url', 'play_url', 'url', 'html_url', 'video', 'media_url', 'result', 'data', 'mp4']) {
if (k in obj) { const u = findVideoUrl(obj[k]); if (u) return u }
}
for (const v of Object.values(obj)) { const u = findVideoUrl(v); if (u) return u }