mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-01-10 06:10:50 +08:00
Fix images None issue
This commit is contained in:
parent
7bf9a86fc1
commit
d404ab3185
@ -66,7 +66,8 @@ class OpenAILanguageModelWrapper(LanguageModel):
|
||||
sampler = sampler or {}
|
||||
prompt = tokens.get("inputs", [])
|
||||
prompt = "".join(prompt)
|
||||
images = tokens.get("images", []) or []
|
||||
images = tokens.get("images", [])
|
||||
images = images if images is not None else []
|
||||
images = [image for image in images if image is not None]
|
||||
messages: list[ChatCompletionMessageParam] = [
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user