chore: fix all clippy warnings and add Cargo.toml metadata

This commit is contained in:
Nikketryhard
2026-02-18 02:50:47 -06:00
parent ad0aa1556c
commit 22177a28a1
10 changed files with 39 additions and 40 deletions

View File

@@ -158,7 +158,7 @@ pub(crate) fn parse_data_uri(url: &str) -> Option<ImageData> {
/// Supports:
/// - Chat Completions: `{"type": "image_url", "image_url": {"url": "data:..."}}`
/// - Responses API: `{"type": "input_image", "image_url": "data:..."}` or
/// `{"type": "input_image", "url": "data:..."}`
/// `{"type": "input_image", "url": "data:..."}`
pub(crate) fn extract_image_from_content(item: &serde_json::Value) -> Option<ImageData> {
let item_type = item["type"].as_str().unwrap_or("");