style: fix cargo warnings (unused imports, dead_code)
This commit is contained in:
@@ -5,24 +5,7 @@ use axum::{
|
||||
response::sse::{Event, Sse},
|
||||
routing::{get, post},
|
||||
};
|
||||
use futures::stream::StreamExt;
|
||||
use sqlx;
|
||||
use std::sync::Arc;
|
||||
use std::time::Duration;
|
||||
use tracing::{info, warn};
|
||||
use uuid::Uuid;
|
||||
|
||||
use crate::{
|
||||
auth::AuthenticatedClient,
|
||||
errors::AppError,
|
||||
models::{
|
||||
ChatChoice, ChatCompletionRequest, ChatCompletionResponse, ChatCompletionStreamResponse, ChatMessage,
|
||||
ChatStreamChoice, ChatStreamDelta, Usage,
|
||||
},
|
||||
providers::ProviderStreamChunk,
|
||||
rate_limiting,
|
||||
state::AppState,
|
||||
};
|
||||
|
||||
pub fn router(state: AppState) -> Router {
|
||||
Router::new()
|
||||
@@ -34,6 +17,8 @@ pub fn router(state: AppState) -> Router {
|
||||
))
|
||||
.with_state(state)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// GET /v1/models — OpenAI-compatible model listing.
|
||||
/// Returns all models from enabled providers so clients like Open WebUI can
|
||||
|
||||
Reference in New Issue
Block a user