You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Line 393:AssistantContent::Image(_image) => todo!(), — inside execute_tool_loop, in the iteration match arm
Line 501:AssistantContent::Image(_image) => todo!(), — inside call, in the initial response match arm
Both are in match arms handling the LM response type. If any model returns an image (e.g., DALL-E via tool, or multimodal output), this panics the entire runtime.
Minimal fix: replace both with return Err(anyhow::anyhow!("Image responses are not yet supported")).
Better fix (if #67 typed errors land first): return Err(LmCallError::UnsupportedContent).
Activity
darinkishore commentedon Feb 12, 2026
Confirmed — exact locations
crates/dspy-rs/src/core/lm/mod.rs:AssistantContent::Image(_image) => todo!(),— insideexecute_tool_loop, in the iteration match armAssistantContent::Image(_image) => todo!(),— insidecall, in the initial response match armBoth are in match arms handling the LM response type. If any model returns an image (e.g., DALL-E via tool, or multimodal output), this panics the entire runtime.
Minimal fix: replace both with
return Err(anyhow::anyhow!("Image responses are not yet supported")).Better fix (if #67 typed errors land first):
return Err(LmCallError::UnsupportedContent).