chore: fix all clippy warnings and add Cargo.toml metadata
This commit is contained in:
@@ -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("");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user