fix: 修复视频工作区image_url 与 parent_post_id 冲突 Bug
This commit is contained in:
1 parent
8f4584cd0a
commit
58863b1a50
2 files changed
+11
-1
No files matched your search
@@ -84,6 +84,16 @@ async def _with_idle_timeout(
|
||||
idle_timeout: 空闲超时时间(秒),0 表示禁用
|
||||
model: 模型名称(用于日志)
|
||||
"""
|
||||
try:
|
||||
idle_timeout = float(idle_timeout or 0)
|
||||
except (ValueError, TypeError):
|
||||
idle_timeout = 0.0
|
||||
|
||||
try:
|
||||
first_item_timeout = float(first_item_timeout or 0) if first_item_timeout is not None else 0.0
|
||||
except (ValueError, TypeError):
|
||||
first_item_timeout = 0.0
|
||||
|
||||
if idle_timeout <= 0:
|
||||
async for item in iterable:
|
||||
yield item
|
||||
|
||||
@@ -843,7 +843,7 @@
|
||||
},
|
||||
body: JSON.stringify({
|
||||
prompt,
|
||||
image_url: imageUrl || null,
|
||||
image_url: parentPostId ? null : (imageUrl || null),
|
||||
parent_post_id: parentPostId || null,
|
||||
source_image_url: parentPostId ? (resolvedRef.sourceUrl || imageUrl || null) : null,
|
||||
reasoning_effort: DEFAULT_REASONING_EFFORT,
|
||||
|
||||
Reference in new issue
Block a user