feat: 添加MCP调试插件并优化流式超时处理
Some checks failed
CI / Lint & TypeCheck (push) Has been cancelled
CI / Unit Tests (push) Has been cancelled
CI / Build Frontend (push) Has been cancelled
CI / Rust Check (push) Has been cancelled
CI / Security Scan (push) Has been cancelled
CI / E2E Tests (push) Has been cancelled
Some checks failed
CI / Lint & TypeCheck (push) Has been cancelled
CI / Unit Tests (push) Has been cancelled
CI / Build Frontend (push) Has been cancelled
CI / Rust Check (push) Has been cancelled
CI / Security Scan (push) Has been cancelled
CI / E2E Tests (push) Has been cancelled
refactor(relay): 将Provider Key管理路由移至model_config模块 fix(saas): 修复demo_keys与provider_keys的匹配逻辑 perf(runtime): 将流式响应超时从60秒延长至180秒以适配思考型模型 docs: 新增模块化审计和上线前功能测试方案文档 chore: 添加tauri-plugin-mcp依赖及相关配置
This commit is contained in:
@@ -5,10 +5,10 @@ pub mod service;
|
||||
pub mod handlers;
|
||||
pub mod key_pool;
|
||||
|
||||
use axum::routing::{delete, get, post, put};
|
||||
use axum::routing::{get, post};
|
||||
use crate::state::AppState;
|
||||
|
||||
/// 中转服务路由 (需要认证)
|
||||
/// 中转服务路由 (需要认证 + quota 中间件)
|
||||
pub fn routes() -> axum::Router<AppState> {
|
||||
axum::Router::new()
|
||||
// Relay 核心端点
|
||||
@@ -17,9 +17,4 @@ pub fn routes() -> axum::Router<AppState> {
|
||||
.route("/api/v1/relay/tasks/:id", get(handlers::get_task))
|
||||
.route("/api/v1/relay/tasks/:id/retry", post(handlers::retry_task))
|
||||
.route("/api/v1/relay/models", get(handlers::list_available_models))
|
||||
// Key Pool 管理 (admin only)
|
||||
.route("/api/v1/providers/:provider_id/keys", get(handlers::list_provider_keys))
|
||||
.route("/api/v1/providers/:provider_id/keys", post(handlers::add_provider_key))
|
||||
.route("/api/v1/providers/:provider_id/keys/:key_id/toggle", put(handlers::toggle_provider_key))
|
||||
.route("/api/v1/providers/:provider_id/keys/:key_id", delete(handlers::delete_provider_key))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user