1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
// Copyright (c) 2025-2026 Kirky.X🌠
// SPDX-License-Identifier: Apache-2.0
/// 基础设施服务模块
///
/// 提供基础设施层的服务实现
/// 包括限流服务等核心功能
/// fluxweir 承载的 LLM carrier(变更 fluxweir-llm-gateway D4:
/// 经 SDK 经嵌入式网关/外部实例发出提取请求,gateway feature 门控)
/// fluxweir 承载的嵌入/重排 provider(变更 fluxweir-llm-gateway D5:
/// RAG 降级链 secondary,gateway feature 门控)
/// 通用 HTTP rerank provider(无条件编译:仅依赖 reqwest,覆盖
/// Cohere v2 / Jina / TEI / 自建 /rerank 端点)
/// limiteron 限流服务实现
///
/// rate-limit feature 关闭时不编译此模块。
/// rate-limit-off 模式下,`init_rate_limiting_service` 装配
/// `NoopRateLimitingService` 替代,不需要 limiteron 依赖。
/// Noop 限流服务实现(rate-limit feature 关闭时使用)
///
/// rate-limit feature 关闭时编译此模块,
/// 提供 `NoopRateLimitingService` 替代 `LimiteronService`,
/// 所有方法返回放行/成功。
/// webhook 发送器实现
///
/// webhook feature 关闭时不编译此模块。
/// webhook-off 模式下,`init_services` 装配 `NoopWebhookService`(不发送 webhook),
/// 不需要 `WebhookSenderImpl`。