fix(server): resolve build errors and clean imports
This commit is contained in:
@@ -6,6 +6,22 @@ use axum::{
|
|||||||
routing::{get, post},
|
routing::{get, post},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
use futures::StreamExt;
|
||||||
|
use sqlx;
|
||||||
|
use std::sync::Arc;
|
||||||
|
use uuid::Uuid;
|
||||||
|
use tracing::{info, warn};
|
||||||
|
|
||||||
|
use crate::{
|
||||||
|
auth::AuthenticatedClient,
|
||||||
|
errors::AppError,
|
||||||
|
models::{
|
||||||
|
ChatChoice, ChatCompletionRequest, ChatCompletionResponse, ChatCompletionStreamResponse, ChatMessage,
|
||||||
|
ChatStreamChoice, ChatStreamDelta, Usage,
|
||||||
|
},
|
||||||
|
rate_limiting,
|
||||||
|
state::AppState,
|
||||||
|
};
|
||||||
|
|
||||||
pub fn router(state: AppState) -> Router {
|
pub fn router(state: AppState) -> Router {
|
||||||
Router::new()
|
Router::new()
|
||||||
|
|||||||
Reference in New Issue
Block a user