1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
//! Files API (`/files`) for uploading and managing images.
//!
//! This module provides functions to upload, list, retrieve, and delete image files
//! that can be referenced by `file_id` in chat completion requests with the
//! `deepseek-v4-flash-vision-exp` model.
//!
//! Supported formats: JPEG, PNG, GIF, and WebP.
//!
//! See the [Files API guide](https://api-docs.deepseek.com/guides/files_api) for details.
//!
//! # Example
//!
//! ```ignore
//! use deepseek_sdk::{DeepSeekClient, DEFAULT_BASE_URL};
//! use deepseek_sdk::files::{upload_file_from_path, list_files};
//!
//! # async fn run() -> Result<(), Box<dyn std::error::Error>> {
//! let client = DeepSeekClient::new("sk-...", DEFAULT_BASE_URL.clone());
//!
//! // Upload an image
//! let file = upload_file_from_path(&client, "image.jpg", None).await?;
//! println!("Uploaded: {}", file.id);
//!
//! // List all files
//! let files = list_files(&client, None).await?;
//! for f in &files.data {
//! println!("{} - {} bytes", f.filename, f.bytes);
//! }
//! # Ok(()) }
//! ```
pub use delete_file;
pub use list_files;
pub use retrieve_file;
pub use *;
pub use ;