style: fix cargo warnings (unused imports, dead_code)
This commit is contained in:
@@ -107,6 +107,7 @@ struct GeminiFunctionCallingConfig {
|
|||||||
struct GeminiCandidate {
|
struct GeminiCandidate {
|
||||||
content: GeminiContent,
|
content: GeminiContent,
|
||||||
#[serde(default)]
|
#[serde(default)]
|
||||||
|
#[allow(dead_code)]
|
||||||
finish_reason: Option<String>,
|
finish_reason: Option<String>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -5,24 +5,7 @@ use axum::{
|
|||||||
response::sse::{Event, Sse},
|
response::sse::{Event, Sse},
|
||||||
routing::{get, post},
|
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 {
|
pub fn router(state: AppState) -> Router {
|
||||||
Router::new()
|
Router::new()
|
||||||
@@ -34,6 +17,8 @@ pub fn router(state: AppState) -> Router {
|
|||||||
))
|
))
|
||||||
.with_state(state)
|
.with_state(state)
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/// GET /v1/models — OpenAI-compatible model listing.
|
/// GET /v1/models — OpenAI-compatible model listing.
|
||||||
/// Returns all models from enabled providers so clients like Open WebUI can
|
/// Returns all models from enabled providers so clients like Open WebUI can
|
||||||
|
|||||||
Reference in New Issue
Block a user