style: fix cargo warnings (unused imports, dead_code)
Some checks failed
CI / Check (push) Has been cancelled
CI / Clippy (push) Has been cancelled
CI / Formatting (push) Has been cancelled
CI / Test (push) Has been cancelled
CI / Release Build (push) Has been cancelled

This commit is contained in:
2026-03-03 15:21:07 -05:00
parent 756600c2c0
commit c3dda74113
2 changed files with 3 additions and 17 deletions

View File

@@ -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