Skip to content

Commit

Permalink
Cleanups
Browse files Browse the repository at this point in the history
  • Loading branch information
dtcristo committed Apr 30, 2023
1 parent 28819d5 commit a9793a1
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 11 deletions.
1 change: 0 additions & 1 deletion src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ pub enum Error {
RequestError,
SerializationError,
DeserializationError,
MissingChoiceError,
StreamError,
}

Expand Down
3 changes: 1 addition & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@ use std::net::SocketAddr;

use axum::Server;

pub use self::error::{Error, Result};

mod env;
mod error;
mod prelude;
mod signal;
mod web;

Expand Down
1 change: 1 addition & 0 deletions src/prelude.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pub use crate::error::{Error, Result};
5 changes: 1 addition & 4 deletions src/web/generate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,7 @@ use futures::{StreamExt, TryStreamExt};
use reqwest::{header, Client};
use serde::{Deserialize, Serialize};

use crate::{
env,
error::{Error, Result},
};
use crate::{env, prelude::*};

#[derive(Debug, Serialize)]
struct ChatCompletionsBody {
Expand Down
5 changes: 1 addition & 4 deletions src/web/health.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,7 @@ use std::time::SystemTime;
use axum::{response::IntoResponse, Json};
use serde::Serialize;

use crate::{
env,
error::{Error, Result},
};
use crate::{env, prelude::*};

#[derive(Debug, Serialize)]
struct HealthBody {
Expand Down

0 comments on commit a9793a1

Please sign in to comment.