Integrate ComfyUI agents and video workflows
This commit is contained in:
@@ -618,7 +618,10 @@ fn agent_message_to_upstream(message: AgentMessage) -> Value {
|
||||
.map(str::trim)
|
||||
.filter(|value| value.starts_with("data:image/"))
|
||||
{
|
||||
if !content_parts.iter().any(|part: &Value| part["type"] == "text") {
|
||||
if !content_parts
|
||||
.iter()
|
||||
.any(|part: &Value| part["type"] == "text")
|
||||
{
|
||||
content_parts.push(json!({
|
||||
"type": "text",
|
||||
"text": text,
|
||||
|
||||
Reference in New Issue
Block a user