mirror of
https://github.com/fawney19/Aether.git
synced 2026-09-03 01:40:21 +08:00
refactor: 移除 Python upstream 依赖,清理全部 legacy/Python 兼容层
- 移除 upstream_base_url 参数及 AETHER_GATEWAY_UPSTREAM 环境变量,gateway 不再需要指向 Python 宿主 - 删除所有 LEGACY_*/PYTHON_* 常量、路由组、header 定义及 sunset/phaseout 机制 - 将 legacy_gateway_bridge 重命名为 internal_gateway,executor 相关命名统一为 execution_runtime - dev.sh 新增 Postgres/Redis 预检查,移除 upstream 相关启动参数和提示 - 新增 ai_public 路由处理器 - 全量适配 handler、test、state、control 等模块的命名和接口变更
This commit is contained in:
@@ -90,8 +90,7 @@ const ADMIN_PROVIDER_MAPPING_PREVIEW_FETCH_LIMIT: usize = 10_000;
|
||||
const ADMIN_PROVIDER_POOL_SCAN_BATCH: u64 = 200;
|
||||
const ADMIN_EXTERNAL_MODELS_CACHE_KEY: &str = "aether:external:models_dev";
|
||||
const ADMIN_EXTERNAL_MODELS_CACHE_TTL_SECS: u64 = 15 * 60;
|
||||
const ADMIN_PROVIDER_OAUTH_RUST_BACKEND_DETAIL: &str =
|
||||
"Admin provider OAuth requires Rust maintenance backend";
|
||||
const ADMIN_PROVIDER_OAUTH_DATA_UNAVAILABLE_DETAIL: &str = "Admin provider OAuth data unavailable";
|
||||
|
||||
pub(crate) mod admin;
|
||||
pub(crate) mod internal;
|
||||
@@ -99,13 +98,10 @@ pub(crate) mod proxy;
|
||||
pub(crate) mod public;
|
||||
pub(crate) mod shared;
|
||||
|
||||
pub(crate) use admin::*;
|
||||
pub(crate) use internal::*;
|
||||
pub(crate) use public::*;
|
||||
pub(crate) use proxy::proxy_request;
|
||||
pub(crate) use shared::*;
|
||||
|
||||
const OFFICIAL_EXTERNAL_MODEL_PROVIDERS: &[&str] = &[
|
||||
pub(crate) const OFFICIAL_EXTERNAL_MODEL_PROVIDERS: &[&str] = &[
|
||||
"anthropic",
|
||||
"openai",
|
||||
"google",
|
||||
@@ -141,5 +137,3 @@ pub(crate) struct AdminProviderPoolRuntimeState {
|
||||
pub(crate) cost_window_usage_by_key: BTreeMap<String, u64>,
|
||||
pub(crate) lru_score_by_key: BTreeMap<String, f64>,
|
||||
}
|
||||
|
||||
pub(crate) use self::shared::*;
|
||||
|
||||
Reference in New Issue
Block a user