Skip to content

Commit

Permalink
Use image_url parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
solodolo committed Sep 7, 2024
1 parent 80de06d commit 49372f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/llm/ollama/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ impl From<&Message> for ChatMessage {
Some(images) => {
let images = images
.iter()
.map(|image| Image::from_base64(image.as_str()))
.map(|image| Image::from_base64(&image.image_url))
.collect();
Some(images)
}
Expand Down

0 comments on commit 49372f0

Please sign in to comment.