gpt_core 0.0.6

chatGPT UI's core crate. Offer the basic functionalities and mock server for chatGPT UI.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use snafu::Snafu;

pub type Result<T> = std::result::Result<T, Error>;

#[derive(Debug, Snafu)]
pub enum Error {
    #[snafu(display("IO error: {}", source), context(false))]
    Io { source: std::io::Error },
    #[snafu(display("JSON error: {}", source), context(false))]
    Json { source: serde_json::Error },
    #[snafu(display("Reqwest error: {}", source), context(false))]
    Reqwest { source: reqwest::Error },
}