openai-interface 0.14.0

A low-level Rust interface for the OpenAI API
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use serde::{Deserialize, Serialize};

#[derive(Debug, Deserialize, Serialize, Clone)]
pub struct ListFilesResponse {
    pub data: Vec<crate::files::FileObject>,
    pub has_more: bool,
    pub object: Option<String>,
    /// The ID of the first object in the list, used for cursor pagination.
    /// Returned by newer OpenAI-compatible list endpoints.
    pub first_item: Option<String>,
    /// The ID of the last object in the list, used for cursor pagination.
    /// Returned by newer OpenAI-compatible list endpoints.
    pub last_item: Option<String>,
}

crate::impl_from_str!(ListFilesResponse);