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