[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"article-litellm-jiagou-jishu-xiangmu":3},{"id":4,"title":5,"slug":6,"summary":7,"content":8,"contentHtml":9,"wordCount":10,"readingTime":11,"categoryId":12,"tags":13,"coverImage":13,"thumbnail":13,"status":14,"isTop":15,"isRecommended":15,"allowComments":15,"password":13,"viewCount":16,"likeCount":15,"commentCount":15,"seoTitle":5,"seoKeywords":17,"seoDescription":18,"source":13,"sourceUrl":13,"publishTime":19},"2129051216484823042","LiteLLM_开源项目技术架构深度分析","litellm-jiagou-jishu-xiangmu","研究用途：技术架构评审、研发团队分享、技术选型 研究对象：BerriAI\u002FLiteLLM 官方开源仓库 源码基线：GitHub 默认分支；本次读取的 pyproject.toml 标示版本为 1.114.0 版本说明：此前部署讨论采用 v1.112.0。本文将默认分支的新架构与 v1.112.0 的已知能力分开说明，不把新版本能力倒推到旧版本。 0. 执行摘要 LiteLLM 不应只被理解为“把不同大模型 API 转成 OpenAI 格式的代理”。从源码和官方架构资料看，它已经形成由以下部分组成的 AI Gateway 平台： SDK \u002F Provider 适配层：统一模型调用入口，处理供应商识别、参数转换、HTTP 调用、流式响应和异常映射。 Gateway 数据面（Data Plane）：承接高频模型请求，完成认证、限流、路由、重试、Fallback、调用和响应。 Management...","> 研究用途：技术架构评审、研发团队分享、技术选型  \n> 研究对象：BerriAI\u002FLiteLLM 官方开源仓库  \n> 源码基线：GitHub 默认分支；本次读取的 `pyproject.toml` 标示版本为 **1.114.0**  \n> 版本说明：此前部署讨论采用 v1.112.0。本文将默认分支的新架构与 v1.112.0 的已知能力分开说明，不把新版本能力倒推到旧版本。\n\n---\n\n## 0. 执行摘要\n\nLiteLLM 不应只被理解为“把不同大模型 API 转成 OpenAI 格式的代理”。从源码和官方架构资料看，它已经形成由以下部分组成的 AI Gateway 平台：\n\n1. **SDK \u002F Provider 适配层**：统一模型调用入口，处理供应商识别、参数转换、HTTP 调用、流式响应和异常映射。\n2. **Gateway 数据面（Data Plane）**：承接高频模型请求，完成认证、限流、路由、重试、Fallback、调用和响应。\n3. **Management 控制面（Control Plane）**：管理模型、凭证、Virtual Key、用户、团队、预算、配置和使用情况。\n4. **Persistence \u002F Cache \u002F Observability**：通过数据库、缓存、异步账务写入、日志回调和监控支撑网关运行。\n5. **Rust 化执行路径**：项目正在将部分高频 Gateway、路由和协议转换能力迁移到 Rust；未覆盖的请求仍可转交 Python 路径。\n6. **组件化部署**：官方提供 Gateway、Backend、UI 分离的 Helm 部署形态，允许数据面和控制面独立扩缩容。\n\n**核心架构判断：LiteLLM 的核心价值不是模型 UI，而是统一调用协议、模型部署注册、请求路由、访问控制、用量核算与多供应商适配能力。**\n\n### 0.1 架构总览\n\n```mermaid\nflowchart TB\n    C[\"业务应用 \u002F Agent \u002F Harness \u002F SDK\"]\n    EDGE[\"Ingress \u002F Nginx \u002F TLS \u002F 网络策略\"]\n    subgraph DP[\"Data Plane：模型数据面\"]\n      GW[\"LiteLLM Gateway API\"]\n      AUTH[\"认证与授权\"]\n      LIMIT[\"RPM \u002F TPM \u002F 并发限制\"]\n      ROUTER[\"Router：选择、重试、Fallback、Cooldown\"]\n      SDK[\"LiteLLM SDK \u002F Provider Adapter\"]\n      TRANS[\"协议转换 \u002F 参数映射 \u002F 流式转换\"]\n    end\n    subgraph CP[\"Control Plane：管理控制面\"]\n      UI[\"Admin UI\"]\n      API[\"Management API\"]\n      CFG[\"模型 \u002F 凭证 \u002F Team \u002F User \u002F Virtual Key \u002F Budget\"]\n    end\n    subgraph INFRA[\"基础设施\"]\n      DB[(\"PostgreSQL\")]\n      REDIS[(\"Redis \u002F Cache\")]\n      LOG[\"异步日志 \u002F Spend Writer\"]\n      OBS[\"Prometheus \u002F OpenTelemetry \u002F 回调平台\"]\n    end\n    PROVIDERS[\"OpenAI \u002F Anthropic \u002F DeepSeek \u002F Gemini \u002F Bedrock \u002F Azure \u002F Ollama \u002F vLLM 等\"]\n    C --> EDGE --> GW\n    GW --> AUTH --> LIMIT --> ROUTER --> SDK --> TRANS --> PROVIDERS\n    UI --> API --> CFG\n    CFG --> DB\n    AUTH \u003C--> REDIS\n    AUTH -.缓存未命中.-> DB\n    ROUTER \u003C--> REDIS\n    GW --> LOG --> DB\n    GW --> OBS\n    API \u003C--> DB\n```\n\n---\n\n## 1. 项目定位与边界\n\n### 1.1 LiteLLM 解决什么问题\n\n不同模型厂商在以下方面存在差异：\n\n- API 路径和协议：Chat Completions、Messages、Responses、厂商原生 API。\n- 认证方式：Bearer API Key、云平台 IAM、OAuth、工作负载身份等。\n- 请求参数：模型名、采样参数、工具调用、多模态输入、结构化输出。\n- 响应结构：消息结构、Token Usage、Finish Reason、错误格式和流式事件。\n- 服务质量：限流、配额、超时、服务不可用、模型下线和区域差异。\n- 计费方式：输入\u002F输出 Token、缓存 Token、图像\u002F音频 Token、请求级费用和自定义价格。\n\nLiteLLM 将这些差异封装在统一调用接口和 Provider Adapter 后面，并在 Gateway 模式下增加企业级治理能力。\n\n### 1.2 LiteLLM 不是什么\n\n| 不应混淆的概念       | LiteLLM 的实际边界                     |\n| ------------- | --------------------------------- |\n| 大模型本身         | 不负责训练基础模型                         |\n| 模型推理引擎        | 通常转发到厂商 API 或自建推理服务；不等同于 vLLM     |\n| Agent Harness | 不负责替代完整的 Agent 运行时、任务隔离和项目工作区     |\n| 企业业务系统        | 不替代 SEABRID OS 的业务流程、组织和项目管理    |\n| 完整数据仓库        | Spend Logs 和 Usage 数据不等于企业级 BI 数仓 |\n| 身份源系统         | 可管理网关用户和 Key，但企业主身份最好仍由统一 IAM 管理  |\n\n### 1.3 两种主要使用形态\n\n```mermaid\nflowchart LR\n    subgraph SDK[\"Python SDK 模式\"]\n      A[\"Python 应用\"] --> B[\"litellm.completion()\"]\n      B --> C[\"Provider Adapter\"]\n      C --> D[\"模型供应商\"]\n    end\n    subgraph Proxy[\"Proxy \u002F Gateway 模式\"]\n      E[\"任意语言应用\"] --> F[\"HTTP API\"]\n      F --> G[\"LiteLLM Proxy\"]\n      G --> H[\"认证 \u002F 路由 \u002F 预算 \u002F 日志\"]\n      H --> I[\"LiteLLM SDK \u002F Provider\"]\n      I --> J[\"模型供应商\"]\n    end\n```\n\n- **SDK 模式**：适合 Python 应用内部直接统一调用模型。\n- **Proxy 模式**：适合企业统一接入，给 Java、Python、Node.js、Harness 等客户端提供统一 HTTP API。\n- SEABRID OS 应以 Proxy 模式为主，SDK 适配能力作为网关内部实现，不建议每个业务项目直接集成 SDK。\n\n---\n\n## 2. 源代码结构与模块职责\n\nLiteLLM 代码规模大、模块持续演进，目录不是简单的 MVC。建议按“运行职责”而不是只按目录名称理解。\n\n### 2.1 核心目录地图\n\n| 路径                                              | 主要职责                                           | 架构位置              |\n| ----------------------------------------------- | ---------------------------------------------- | ----------------- |\n| `litellm\u002Fmain.py`                               | SDK 的统一公开调用入口                                  | SDK 门面层           |\n| `litellm\u002Fllms\u002F`                                 | Provider 适配、模型调用和协议转换                          | Provider Adapter  |\n| `litellm\u002Ftypes\u002F`                                | 请求、响应、配置和类型定义                                  | 契约层               |\n| `litellm\u002Flitellm_core_utils\u002F`                   | Provider 识别、参数处理、日志、成本、异常等通用逻辑                 | 核心工具层             |\n| `litellm\u002Fproxy\u002Fproxy_server.py`                 | Proxy API 应用与服务生命周期入口                          | Gateway API       |\n| `litellm\u002Fproxy\u002Fauth\u002F`                           | API Key、JWT、用户、团队和访问检查                         | 安全层               |\n| `litellm\u002Fproxy\u002Fmanagement_endpoints\u002F`           | Key、模型、团队、用户等管理 API                            | 控制面 API           |\n| `litellm\u002Fproxy\u002F` 下各 endpoint 包                  | Chat、Messages、Embeddings、Images、Files 等 API 端点 | 数据面 API           |\n| `litellm\u002Fproxy\u002Froute_llm_request.py`            | 将代理请求交给 Router 执行                              | 请求编排层             |\n| `litellm\u002Frouter.py`                             | 对外 Router 门面及兼容接口                              | 路由抽象层             |\n| `litellm\u002Frouter_core.py`、`litellm\u002Frouter_rust\u002F` | Router Core、注册表、健康状态、路由步骤等                     | 路由核心              |\n| `litellm\u002Frouter_strategy\u002F`                      | 具体路由策略及自动路由相关逻辑                                | 策略层               |\n| `litellm\u002Fproxy\u002Fdb\u002F`                             | 数据库访问、Spend Writer、队列和账务处理                     | 持久化\u002F账务            |\n| `litellm\u002Frepositories\u002F`                         | Repository 抽象和数据访问封装                           | Repository 层      |\n| `litellm\u002Fcaching\u002F`、`litellm\u002Fredis\u002F`             | 缓存及 Redis 实现                                   | 缓存层               |\n| `litellm\u002Fintegrations\u002F`                         | 自定义 Logger、可观测性和第三方集成                          | 集成层               |\n| `litellm\u002Fproxy\u002Fhooks\u002F`                          | Proxy 请求钩子、成本跟踪和扩展行为                           | Hook \u002F Middleware |\n| `litellm\u002Frust\u002F`                                 | Rust Gateway、Router Core、协议和基础设施 crate         | 高性能执行层            |\n| `litellm\u002Fruntime\u002F`                              | 运行时入口及组件化 Gateway 等                            | Runtime           |\n\n### 2.2 分层依赖关系\n\n```mermaid\nflowchart TB\n    API[\"Proxy Endpoints \u002F Management Endpoints\"]\n    AUTH[\"Auth \u002F Policy \u002F Budget\"]\n    ORCH[\"Pre-call Processing \u002F Request Orchestration\"]\n    ROUTER[\"Router Facade\"]\n    CORE[\"Router Core \u002F Routing Strategy\"]\n    SDK[\"SDK Unified API\"]\n    PROVIDER[\"Provider-specific Handler \u002F Transformation\"]\n    HTTP[\"HTTP Client \u002F Cloud SDK\"]\n    DATA[\"Repository \u002F DB \u002F Redis \u002F Async Writer\"]\n    EXT[\"Callbacks \u002F Hooks \u002F Metrics \u002F Tracing\"]\n\n    API --> AUTH --> ORCH --> ROUTER --> CORE --> SDK --> PROVIDER --> HTTP\n    AUTH --> DATA\n    CORE --> DATA\n    SDK --> EXT\n    API --> EXT\n    ORCH --> EXT\n```\n\n注意：这是一张逻辑分层图，不代表所有请求都严格沿单一 Python 调用栈执行。新版本存在 Rust Gateway \u002F Rust Router 路径，某些请求会在 Rust 中完成，未覆盖能力则回退到 Python。\n\n### 2.3 关键源码文件的阅读顺序\n\n建议研发人员按以下顺序读源码：\n\n1. `pyproject.toml`：先识别运行依赖、可选依赖和 SDK \u002F Proxy 安装边界。\n2. `litellm\u002Fmain.py`：理解统一模型调用 API。\n3. `litellm\u002Flitellm_core_utils\u002Fget_llm_provider_logic.py`：理解 Provider 识别逻辑。\n4. `litellm\u002Fllms\u002Fcustom_llm.py`：理解自定义模型适配抽象。\n5. `litellm\u002Frouter.py` 与 `litellm\u002Frouter_core.py`：理解 Router 对外契约和核心边界。\n6. `litellm\u002Fproxy\u002Fproxy_server.py`：理解服务入口和生命周期。\n7. `litellm\u002Fproxy\u002Fauth\u002Fuser_api_key_auth.py`：理解 Virtual Key 认证和访问控制。\n8. `litellm\u002Fproxy\u002Froute_llm_request.py`：理解 Proxy 到 Router 的请求编排。\n9. `litellm\u002Fproxy\u002Fhooks\u002Fproxy_track_cost_callback.py`：理解成本核算触发。\n10. `litellm\u002Fproxy\u002Fdb\u002Fdb_spend_update_writer.py`：理解异步账务写入。\n\n---\n\n## 3. 技术栈与技术选型分析\n\n### 3.1 源码依赖可确认的技术\n\n| 技术                             | 在项目中的作用                           | 说明                             |\n| ------------------------------ | --------------------------------- | ------------------------------ |\n| Python                         | SDK 和 Proxy 主体实现语言                | 主体业务逻辑仍大量使用 Python             |\n| FastAPI                        | Proxy HTTP API 框架                 | Proxy 入口和管理 API 的重要基础          |\n| Starlette                      | ASGI 应用与路由底层                      | FastAPI 运行基础及 Gateway 应用组合     |\n| Pydantic v2                    | 请求\u002F响应、配置和数据校验                     | 强类型数据契约                        |\n| HTTPX \u002F aiohttp                | HTTP 请求和异步网络通信                    | Provider API 调用                |\n| OpenAI Python SDK              | 兼容客户端类型及部分 API 集成                 | 不是所有 Provider 都依赖同一 SDK        |\n| SQLAlchemy \u002F Alembic \u002F psycopg | 数据访问和迁移相关依赖                       | 依版本和部署组件使用                     |\n| Prisma 相关依赖                    | 既有数据库访问兼容路径                       | 源码仍可见 Prisma Client \u002F Protocol |\n| Redis                          | Key Cache、限流计数、路由状态、队列等           | 可选基础设施，生产环境价值高                 |\n| RQ \u002F APScheduler               | 后台任务和周期任务                         | 任务执行和账务维护                      |\n| OpenTelemetry                  | Trace \u002F Metrics \u002F Instrumentation | 可观测性基础                         |\n| Rust                           | 新 Gateway \u002F Router 等高性能模块         | 正在渐进迁移，不应理解为全项目 Rust 化         |\n| Docker \u002F Helm                  | 容器化与组件化部署                         | 从单容器到分组件部署                     |\n\n### 3.2 为什么采用 Python + Rust 混合架构\n\nPython 的优势：\n\n- Provider 生态丰富，接入新模型和 SDK 快。\n- 数据处理、配置和第三方集成开发效率高。\n- 已有庞大的 SDK、回调和插件生态。\n\nRust 的优势：\n\n- 低延迟、低内存开销。\n- 高并发下的请求解析、认证、路由和协议处理更适合系统级实现。\n- 可通过明确的 Host \u002F Bridge 边界复用 Python 生态能力。\n\n混合架构的核心不是“把 Python 全部替换成 Rust”，而是把性能敏感、契约相对稳定的执行路径逐步迁移，并为暂未迁移的功能保留兼容路径。\n\n### 3.3 技术栈分层图\n\n```mermaid\nflowchart TB\n    subgraph APP[\"应用层\"]\n      SDK[\"Python SDK\"]\n      PROXY[\"FastAPI \u002F Starlette Proxy\"]\n      UI[\"Admin UI\"]\n    end\n    subgraph CORE[\"业务核心层\"]\n      PY[\"Python Core \u002F Provider Adapter\"]\n      RUST[\"Rust Gateway \u002F Router Core\"]\n      SCHEMA[\"Pydantic \u002F Typed Contracts\"]\n    end\n    subgraph DATA[\"数据与基础设施层\"]\n      PG[\"PostgreSQL\"]\n      REDIS[\"Redis\"]\n      HTTP[\"HTTPX \u002F aiohttp\"]\n      OTel[\"OpenTelemetry \u002F Prometheus\"]\n    end\n    SDK --> PY\n    PROXY --> PY\n    PROXY --> RUST\n    UI --> PROXY\n    PY --> SCHEMA\n    RUST --> SCHEMA\n    PY --> PG\n    RUST --> PG\n    PY --> REDIS\n    RUST --> REDIS\n    PY --> HTTP\n    RUST --> HTTP\n    PY --> OTel\n    RUST --> OTel\n```\n\n---\n\n## 4. 核心请求链路：一次模型调用发生了什么\n\n这是理解 LiteLLM 最重要的一部分。\n\n### 4.1 标准 Chat Completions 请求流程\n\n```mermaid\nsequenceDiagram\n    autonumber\n    participant APP as Client \u002F Harness\n    participant GW as LiteLLM Proxy\n    participant AUTH as Auth \u002F Budget\n    participant CACHE as Memory \u002F Redis\n    participant DB as PostgreSQL\n    participant ROUTER as Router\n    participant SDK as LiteLLM SDK\n    participant ADAPTER as Provider Adapter\n    participant LLM as Model Provider\n    participant LOG as Async Spend \u002F Callback\n\n    APP->>GW: POST \u002Fv1\u002Fchat\u002Fcompletions + Bearer Virtual Key\n    GW->>AUTH: 解析 Key \u002F 请求身份\n    AUTH->>CACHE: 查 Key \u002F Budget \u002F Rate Limit\n    alt Cache Hit\n        CACHE-->>AUTH: Key \u002F Scope \u002F Usage\n    else Cache Miss\n        AUTH->>DB: 查询 Key \u002F User \u002F Team\n        DB-->>AUTH: 权限和预算信息\n        AUTH->>CACHE: 回填缓存\n    end\n    AUTH-->>GW: 认证通过 \u002F 限额检查\n    GW->>GW: 请求预处理、模型别名和参数检查\n    GW->>ROUTER: 按 model group 路由\n    ROUTER->>ROUTER: 选择 deployment \u002F 检查 cooldown\n    ROUTER->>SDK: 统一 completion 调用\n    SDK->>ADAPTER: Provider 识别和参数转换\n    ADAPTER->>LLM: Provider-native HTTP 请求\n    LLM-->>ADAPTER: Provider 响应 \u002F Stream\n    ADAPTER-->>SDK: 统一响应结构\n    SDK-->>ROUTER: ModelResponse\n    ROUTER-->>GW: 结果\n    GW-->>APP: 统一 API 响应\n    GW-->>LOG: 异步成本核算 \u002F Spend \u002F Callback\n    LOG->>CACHE: 累积或缓冲使用量\n    LOG->>DB: 批量持久化 Spend Logs\n```\n\n### 4.2 请求阶段拆解\n\n| 阶段          | 主要职责                                | 关注点                        |\n| ----------- | ----------------------------------- | -------------------------- |\n| 接入          | 接收统一 API 请求                         | 路径、Header、Body、流式标志        |\n| 认证          | 校验 Master Key \u002F Virtual Key \u002F JWT 等 | Key 有效期、权限、来源              |\n| 配额检查        | 预算、RPM、TPM、并发数                      | Key \u002F User \u002F Team \u002F Server |\n| 预处理         | 模型别名、请求参数、策略和上下文                    | 参数兼容性                      |\n| 路由          | 选择模型组和具体 Deployment                 | 负载均衡、冷却、健康状态               |\n| Provider 调用 | 将统一请求转换成供应商请求                       | API Base、凭证、参数映射           |\n| 响应转换        | 统一结果和流式事件                           | Usage、Finish Reason、异常     |\n| 计费与审计       | 计算费用、更新用量、记录日志                      | 异步写入、幂等、重试                 |\n\n### 4.3 一个关键性能设计：请求返回与账务写入解耦\n\n官方架构说明：Key 缓存未命中时可能需要数据库读取；请求成功后的 Spend Logging、限流用量更新和回调通常在后台异步执行，而不是把所有数据库写入放在同步推理路径上。\n\n这带来三个收益：\n\n- 降低请求尾延迟。\n- 避免每次模型调用都同步写多张账务表。\n- 可以批量聚合 Spend Update，减少数据库写入压力。\n\n但也意味着需要考虑：\n\n- 后台任务失败后的重试与补偿。\n- Redis 不可用时的降级策略。\n- 进程异常退出时未刷盘的缓冲数据。\n- 账务统计的最终一致性和延迟。\n\n---\n\n## 5. Provider 适配架构：多厂商如何统一\n\n### 5.1 Provider Adapter 的逻辑\n\nLiteLLM 将模型调用统一成标准入口，再根据 Provider 和 API 类型选择对应实现。\n\n```mermaid\nflowchart TB\n    REQ[\"统一请求：model \u002F messages \u002F params\"]\n    DETECT[\"Provider Resolver：识别 provider \u002F model \u002F api_base\"]\n    SELECT[\"选择 Provider Handler\"]\n    TRANS[\"Request Transformation\"]\n    HTTP[\"HTTP Client \u002F Cloud SDK\"]\n    VENDOR[\"厂商 API\"]\n    RESP[\"Response Transformation\"]\n    NORMAL[\"统一 ModelResponse \u002F Stream \u002F Error\"]\n\n    REQ --> DETECT --> SELECT --> TRANS --> HTTP --> VENDOR\n    VENDOR --> RESP --> NORMAL\n```\n\n### 5.2 Provider 目录组织思想\n\n典型实现集中在 `litellm\u002Fllms\u002F`，按厂商、API 能力和处理方式组织。并不是每家厂商只有一个文件，而可能拆分为：\n\n- Chat Completion\n- Embedding\n- Rerank\n- Image\n- Audio \u002F Speech \u002F Transcription\n- Messages\n- Responses\n- Token Counting\n- Request \u002F Response Transformation\n\n通用 Provider 识别逻辑可从 `litellm\u002Flitellm_core_utils\u002Fget_llm_provider_logic.py` 入手；自定义 LLM 的适配抽象可阅读 `litellm\u002Fllms\u002Fcustom_llm.py`。\n\n### 5.3 统一协议不等于所有厂商完全一致\n\nLiteLLM 可以统一常见调用接口，但供应商能力并不完全对齐：\n\n| 差异类型         | 可能出现的问题                | 网关处理方式                                    |\n| ------------ | ---------------------- | ----------------------------------------- |\n| 参数差异         | 某厂商不支持某采样参数            | 参数过滤、映射或报错                                |\n| Tool Calling | 工具结构或约束不同              | 请求转换、能力检查                                 |\n| Streaming    | SSE 事件格式不同             | 流式事件转换                                    |\n| Multimodal   | 图片、音频、视频载荷不同           | 内容适配和数据转换                                 |\n| Usage        | Token 字段和缓存 Token 口径不同 | 统一 Usage 模型                               |\n| Error        | HTTP 状态码和错误结构不同        | 统一异常映射                                    |\n| API Base     | 私有化部署和兼容 API           | 自定义 Base URL \u002F OpenAI-compatible Provider |\n\n**技术结论：统一 API 解决的是接口接入复杂度，不保证模型能力、效果、Token 计费口径和行为完全一致。** 业务系统仍需建立模型能力矩阵和回归测试。\n\n### 5.4 新增 Provider 的扩展流程\n\n```mermaid\nflowchart TD\n    A[\"确认厂商 API 协议与认证方式\"] --> B[\"确定能力类型：Chat \u002F Embedding \u002F Audio 等\"]\n    B --> C[\"实现 Provider Handler\"]\n    C --> D[\"实现请求参数转换\"]\n    D --> E[\"实现响应 \u002F Streaming 转换\"]\n    E --> F[\"实现错误映射与 Usage 解析\"]\n    F --> G[\"注册 Provider \u002F 模型识别\"]\n    G --> H[\"补齐单元测试和集成测试\"]\n    H --> I[\"验证模型价格、上下文和能力元数据\"]\n    I --> J[\"发布并加入 Provider 文档\"]\n```\n\n---\n\n## 6. Router：模型选择、负载均衡和故障恢复\n\n### 6.1 Model Group 与 Deployment\n\n应区分两个概念：\n\n- **Model Group \u002F model_name**：客户端看到的逻辑模型名称。\n- **Deployment**：实际可被调用的供应商模型实例，包含 Provider、模型名、凭证、API Base 和路由参数。\n\n一个逻辑模型组可以挂载多个 Deployment。\n\n```mermaid\nflowchart TB\n    CLIENT[\"请求 model = smart-chat\"]\n    GROUP[\"Model Group：smart-chat\"]\n    D1[\"Deployment A：Provider A\"]\n    D2[\"Deployment B：Provider A 备用 Key\"]\n    D3[\"Deployment C：Provider B 兼容模型\"]\n    CLIENT --> GROUP\n    GROUP --> D1\n    GROUP --> D2\n    GROUP --> D3\n```\n\n### 6.2 Router 的核心能力\n\n| 能力               | 作用                           |\n| ---------------- | ---------------------------- |\n| Load Balancing   | 在同一模型组的 Deployment 中选择实例     |\n| Retry            | 当前实例失败后在策略允许范围内重试            |\n| Fallback         | 当前模型组失败后切换备用模型组              |\n| Cooldown         | 对连续失败或异常的 Deployment 暂时降权\u002F隔离 |\n| Health \u002F Usage   | 维护可用状态、RPM\u002FTPM 和部署使用情况       |\n| Alias            | 对外提供稳定模型名，内部映射真实模型           |\n| Routing Strategy | 根据策略决定实例选择                   |\n\n### 6.3 Retry 与 Fallback 的区别\n\n```mermaid\nflowchart TD\n    R[\"调用 model-group-A\"] --> A[\"选择 Deployment A1\"]\n    A -->|失败| RETRY[\"Retry：在 A 组内尝试 A2\"]\n    RETRY -->|成功| OK[\"返回成功\"]\n    RETRY -->|仍失败 \u002F 策略耗尽| FB[\"Fallback：切换 model-group-B\"]\n    FB --> B[\"选择 B 组 Deployment\"]\n    B -->|成功| OK\n    B -->|失败| ERR[\"返回最终异常\"]\n```\n\n- Retry：仍在同一个逻辑模型组内寻找可用实例。\n- Fallback：切换到另一个逻辑模型组。\n- Fallback 不应被理解为“自动找一个效果相同的模型”。模型能力、输出格式、上下文和费用都可能不同，必须由业务方明确配置和验证。\n\n### 6.4 新版本 Router 的 Rust 边界\n\n当前源码 `litellm\u002Frouter.py` 的模块说明明确：Router 主要承担配置构建和接口门面职责，具体 Router Core 通过 `router_core.py` 创建，并把 Endpoint Methods 和 Registry \u002F Health \u002F Select \u002F Apply \u002F Observe 等入口委托给 Core。\n\nRust Core 设计中的重要概念：\n\n- **Registry**：部署注册表，按 ID、模型组、别名、团队等索引。\n- **RouterConfig \u002F Dynamic Config**：静态路由配置与动态配置快照。\n- **Health**：冷却状态、失败计数和使用情况。\n- **select()**：只做部署选择。\n- **apply()**：原子应用配置变更。\n- **call()**：执行选择、调用、重试和 Fallback。\n- **Host**：通过 Host 把实际 Provider 调用交给 Python 或 Gateway 执行。\n\n这是一种清晰的核心\u002F宿主边界设计，减少 Router Core 对 Python 全局状态和具体 Provider 实现的直接耦合。\n\n---\n\n## 7. 认证、授权和多租户模型\n\n### 7.1 Virtual Key 是应用接入的主要治理单元\n\n客户端使用 LiteLLM 发放的 Virtual Key，而不是直接使用供应商的 API Key。\n\n```mermaid\nflowchart TB\n    APP[\"Application \u002F Agent\"]\n    VKEY[\"Virtual Key\"]\n    AUTH[\"Key Authentication\"]\n    SCOPE[\"Scope \u002F Model Access\"]\n    BUDGET[\"Budget \u002F Spend Limit\"]\n    RATE[\"RPM \u002F TPM \u002F Concurrency\"]\n    PROVIDERKEY[\"Provider Credentials\"]\n    MODEL[\"Model Deployment\"]\n\n    APP --> VKEY --> AUTH\n    AUTH --> SCOPE\n    AUTH --> BUDGET\n    AUTH --> RATE\n    SCOPE --> MODEL\n    BUDGET --> MODEL\n    RATE --> MODEL\n    PROVIDERKEY --> MODEL\n```\n\n### 7.2 逻辑身份关系\n\nLiteLLM 的身份与资源关系比简单的 API Key 列表更丰富。常见治理对象包括：\n\n- Proxy Admin：管理网关的管理员。\n- User：网关用户。\n- Team：团队及其预算、模型访问范围。\n- Organization \u002F Project \u002F Customer 等资源：按版本和功能启用相应层级。\n- Virtual Key：具体调用凭证。\n- Model \u002F Deployment：可被授权访问的模型资源。\n\n企业系统应避免把 LiteLLM 内部 User ID 直接当作企业主身份。建议由 SEABRID IAM 维护真实用户、部门和项目关系，再映射到 LiteLLM 的 Team、User 和 Key。\n\n### 7.3 多租户权限建议\n\n| 企业对象        | 建议映射                             |\n| ----------- | -------------------------------- |\n| 企业租户 Tenant | LiteLLM Organization 或独立资源边界     |\n| 部门 \u002F 团队     | Team                             |\n| 项目          | Project 或 Team 下的项目约定            |\n| Agent       | 独立 Virtual Key                   |\n| 应用          | 独立 Virtual Key                   |\n| 研发人员        | User                             |\n| 模型访问范围      | Key \u002F Team 的 model access policy |\n| 预算          | Key \u002F User \u002F Team 预算             |\n\n实际采用哪些实体，需结合部署版本支持的对象与权限模型验证，不能仅凭名称推定数据库中存在完全相同的企业级租户语义。\n\n---\n\n## 8. 数据架构：PostgreSQL、Redis 和异步账务\n\n### 8.1 PostgreSQL 的职责\n\nPostgreSQL 是 LiteLLM 管理数据和账务数据的重要持久化层。常见数据类别：\n\n| 数据类别  | 内容                                    |\n| ----- | ------------------------------------- |\n| 凭证与访问 | Virtual Key、Key Hash \u002F Metadata、权限和状态 |\n| 身份与组织 | User、Team、Organization 等资源            |\n| 模型配置  | 数据库保存的模型部署和相关凭证配置                     |\n| 账务    | Spend Logs、Token Usage、请求成本           |\n| 预算    | Key \u002F User \u002F Team 的预算状态和累计消费          |\n| 审计与配置 | 管理操作、运行配置和其他管理资源（依版本\u002F功能）              |\n\n不要把 LiteLLM 的数据库表直接当作企业业务主数据。企业租户、合同、项目、成本中心和财务结算仍应由 SEABRID 业务数据库维护。\n\n### 8.2 Redis 的职责\n\nRedis 在生产架构中不仅是普通缓存，可能承担：\n\n- Virtual Key \u002F User \u002F Team 等认证对象缓存。\n- RPM \u002F TPM \u002F 并发限制计数。\n- Deployment cooldown \u002F routing usage 等路由状态。\n- Spend 增量缓冲或队列。\n- 可选 LLM Response Cache。\n- 多实例之间共享部分运行状态。\n\nRedis 不是所有功能的必选项。单机小规模可以从内存缓存开始，但多副本、严格限流和共享状态场景应评估 Redis。\n\n### 8.3 数据关系示意\n\n```mermaid\nerDiagram\n    USER ||--o{ KEY : owns\n    TEAM ||--o{ USER : contains\n    TEAM ||--o{ KEY : authorizes\n    TEAM ||--o{ MODEL_ACCESS : grants\n    KEY ||--o{ SPEND_LOG : generates\n    USER ||--o{ SPEND_LOG : attributed\n    TEAM ||--o{ SPEND_LOG : attributed\n    MODEL ||--o{ SPEND_LOG : billed_against\n\n    USER {\n      string user_id\n      string role\n      string status\n    }\n    TEAM {\n      string team_id\n      string team_alias\n      decimal max_budget\n    }\n    KEY {\n      string key_id\n      string key_alias\n      string token_hash\n      decimal max_budget\n    }\n    MODEL {\n      string model_id\n      string model_name\n      string provider\n    }\n    SPEND_LOG {\n      string request_id\n      string model\n      int prompt_tokens\n      int completion_tokens\n      decimal spend\n      datetime start_time\n    }\n    MODEL_ACCESS {\n      string team_id\n      string model_name\n    }\n```\n\n该图是概念关系图，不是对某一版本完整 Prisma \u002F SQL Schema 的逐字段复刻。实际字段、外键和表名请以目标 Tag 的数据库 Schema 与 Migration 为准。\n\n### 8.4 异步账务写入\n\n```mermaid\nflowchart LR\n    RESP[\"模型响应完成\"]\n    COST[\"成本计算 \u002F Usage 解析\"]\n    EVENT[\"Spend Event\"]\n    BUFFER[\"内存 \u002F Redis Buffer\"]\n    BATCH[\"批量聚合 \u002F 定时 Flush\"]\n    DB[\"PostgreSQL Spend Logs \u002F Rollups\"]\n    RESP --> COST --> EVENT --> BUFFER --> BATCH --> DB\n```\n\n架构优点：\n\n- 降低请求主链路数据库写压力。\n- 减少小事务数量。\n- 支持批量更新用量和统计。\n\n架构风险：\n\n- 异步队列和缓冲必须有持久化、重试和补偿设计。\n- 统计数据可能存在短暂延迟。\n- 多实例写入要处理并发、去重、重复事件和锁。\n- 需要区分“实时限额计数”与“最终账务记录”，两者不应简单混为一谈。\n\n---\n\n## 9. 管理控制面：Admin UI、Management API 和配置源\n\n### 9.1 管理界面并不直接管理 Provider\n\n管理界面的核心流程是调用 LiteLLM Management API，由后端完成权限校验、参数校验和数据库操作，再刷新运行时模型\u002F配置状态。\n\n```mermaid\nsequenceDiagram\n    participant ADMIN as 管理员\n    participant UI as Admin UI\n    participant API as Management API\n    participant AUTH as Admin Auth \u002F RBAC\n    participant DB as PostgreSQL\n    participant RUNTIME as Router \u002F Model Registry\n\n    ADMIN->>UI: 添加 Provider \u002F Model\n    UI->>API: POST 管理请求\n    API->>AUTH: 校验 Admin 权限\n    AUTH-->>API: 授权通过\n    API->>DB: 保存模型和凭证配置\n    DB-->>API: 保存成功\n    API->>RUNTIME: 刷新配置 \u002F 更新注册表\n    RUNTIME-->>API: 更新成功\n    API-->>UI: 返回结果\n    UI-->>ADMIN: 展示模型并允许测试\n```\n\n### 9.2 配置来源：YAML、UI、Management API、Terraform\n\nLiteLLM 支持多种配置入口：\n\n| 方式             | 适合场景               | 优势             |\n| -------------- | ------------------ | -------------- |\n| YAML           | 网关固定参数、部署配置、GitOps | 可审查、可版本控制      |\n| Admin UI       | 运维人员日常管理模型和 Key    | 操作直观           |\n| Management API | 企业平台自动化管理          | 可与 SEABRID 后端集成 |\n| Terraform      | 基础设施即代码            | 变更计划和可重复部署     |\n\n重要版本规则：官方文档说明，自 v1.103.0 起，YAML 中声明的部分设置优先于数据库值；模型则可同时由 YAML 和数据库提供。相同模型名的数据库模型可能增加 Deployment，而不是覆盖 YAML 中的模型。需要避免同一配置项由多个来源同时维护。\n\n**建议原则：一个资源只设一个主要事实来源（Single Source of Truth）。**\n\n对 SEABRID 的建议：\n\n- Docker \u002F 网络 \u002F 数据库 \u002F Master Key \u002F 安全设置：由部署配置管理。\n- Provider 模型、API 凭证、模型路由：由 LiteLLM UI 或 Management API 管理，二者择一作为日常主入口。\n- 企业用户、部门、项目：由 SEABRID 主业务系统管理。\n- Virtual Key：由 SEABRID 后端通过 Management API 自动创建和回收。\n\n### 9.3 UI 与 API 的安全边界\n\n不要让浏览器直接持有 `LITELLM_MASTER_KEY`。\n\n推荐：\n\n```mermaid\nflowchart LR\n    B[\"Vue3 Admin UI\"]\n    S[\"SEABRID LLM Admin Service\"]\n    IAM[\"SEABRID IAM \u002F JWT\"]\n    L[\"LiteLLM Management API\"]\n    DB[(\"LiteLLM PostgreSQL\")]\n\n    B -->|\"JWT\"| S\n    S \u003C--> IAM\n    S -->|\"Master Key \u002F Service Credential\"| L\n    L --> DB\n```\n\n后端代理层负责：\n\n- SEABRID 用户身份和角色校验。\n- 将企业 Tenant \u002F Project \u002F Agent 映射到 LiteLLM 资源。\n- 对管理 API 做白名单代理，禁止任意 URL 转发。\n- 对供应商 API Key 做脱敏和权限控制。\n- 记录企业侧管理审计。\n\n---\n\n## 10. Rust 迁移：架构演进而非简单语言替换\n\n### 10.1 为什么迁移\n\n网关是高频请求路径，认证、路由、请求处理和流式转发会持续消耗 CPU 与内存。Rust 可降低高并发执行成本，但 Provider 生态和管理功能仍有大量 Python 代码。\n\n### 10.2 Rust \u002F Python 双路径\n\n```mermaid\nflowchart TD\n    CLIENT[\"Client Request\"]\n    GATEWAY[\"Rust-first Gateway \u002F Dispatch\"]\n    CHECK{\"该路由、模型、配置和功能是否已被 Rust 路径支持？\"}\n    RUST[\"Rust Gateway \u002F Router \u002F Translation\"]\n    PY[\"Python Proxy \u002F SDK Path\"]\n    PROVIDER[\"Provider API\"]\n    RESP[\"Response\"]\n\n    CLIENT --> GATEWAY --> CHECK\n    CHECK -->|Supported| RUST\n    CHECK -->|Unsupported \u002F Compatibility| PY\n    RUST --> PROVIDER\n    PY --> PROVIDER\n    PROVIDER --> RESP\n```\n\n启用 Rust-first 的具体环境变量、支持矩阵和行为应以目标发布版本的 Rust Migration 文档为准。官方迁移说明指出，Rust 路径只处理已支持的请求；其他请求会转给 Python 路径，并可通过响应 Header 识别执行路径。\n\n### 10.3 阅读 Rust 源码的关键位置\n\n- `litellm\u002Frust\u002F`：Rust workspace。\n- `litellm\u002Frust\u002Fcrates\u002Frouter-core\u002F`：Router Core 的边界和设计。\n- `litellm\u002Frouter_core.py`：Python 与 Router Core 的接入边界。\n- `litellm\u002Frouter_host.py` \u002F `litellm\u002Frouter_python_host.py`：Host 抽象和 Python Host。\n- `litellm\u002Fruntime\u002Fgateway\u002F`：Gateway Runtime。\n- `litellm\u002Frust_bridge\u002F`：Python 与 Rust 间的桥接和分发。\n\n### 10.4 迁移风险与判断\n\n| 方面   | 收益                | 风险\u002F约束                  |\n| ---- | ----------------- | ---------------------- |\n| 性能   | 降低网关执行开销          | 不能只看微基准，必须测完整业务链路      |\n| 内存   | 可能降低常驻内存          | Python 依赖仍需保留          |\n| 兼容性  | 逐步迁移，保留 Python 回退 | 配置可能使请求回退到 Python      |\n| 可维护性 | 核心契约更明确           | 双语言调试和构建复杂度上升          |\n| 扩展性  | Host \u002F Core 边界可扩展 | 自定义 Python Hook 需要桥接契约 |\n\n**技术分享时要强调：Rust Migration 是渐进式迁移，不能说“LiteLLM 已经完全由 Rust 实现”。**\n\n---\n\n## 11. 部署架构：单体与组件化\n\n### 11.1 传统单体 Proxy\n\n```mermaid\nflowchart TB\n    IN[\"Ingress\"]\n    APP[\"LiteLLM Proxy 单实例 \u002F 多副本\"]\n    subgraph SAME[\"同一运行单元\"]\n      DP[\"模型推理 API\"]\n      CP[\"Management API \u002F UI API\"]\n      JOB[\"Spend \u002F Background Jobs\"]\n    end\n    PG[(\"PostgreSQL\")]\n    REDIS[(\"Redis\")]\n    PROVIDER[\"LLM Providers\"]\n    IN --> APP\n    APP --> DP\n    APP --> CP\n    APP --> JOB\n    DP --> PROVIDER\n    DP --> PG\n    CP --> PG\n    JOB --> PG\n    APP \u003C--> REDIS\n```\n\n优点：\n\n- 部署简单。\n- 单机和中小规模容易运维。\n- 一个服务即可提供模型 API 和管理能力。\n\n缺点：\n\n- 推理流量和后台分析共享事件循环、CPU、内存和数据库连接。\n- 管理报表的大查询可能影响推理 API 和健康检查。\n- 无法分别扩缩容数据面和控制面。\n\n### 11.2 官方组件化部署\n\n官方组件化部署文章介绍了以下组件：\n\n| 组件         | 端口   | 职责                                     |\n| ---------- | ----:| -------------------------------------- |\n| Gateway    | 4000 | 模型推理数据面                                |\n| Backend    | 4001 | 管理 API、Key、User、Team、SSO、Spend \u002F Usage |\n| UI         | 3000 | Next.js Dashboard 静态资源，由 Nginx 提供      |\n| Migrations | Job  | 数据库 Migration，一次性执行                    |\n\n```mermaid\nflowchart TB\n    USER[\"Client \u002F Admin\"]\n    ING[\"Ingress \u002F Load Balancer\"]\n    subgraph K8S[\"Kubernetes \u002F Componentized LiteLLM\"]\n      GW[\"Gateway Pods :4000\u003Cbr\u002F>LLM Data Plane\"]\n      BE[\"Backend Pods :4001\u003Cbr\u002F>Management Control Plane\"]\n      UI[\"UI Pods :3000\u003Cbr\u002F>Next.js + Nginx\"]\n      MIG[\"Migration Job\"]\n    end\n    PGW[(\"PostgreSQL Writer\")]\n    PGR[(\"Optional Read Replica\")]\n    REDIS[(\"Redis\")]\n    PROVIDER[\"Model Providers\"]\n    USER --> ING\n    ING -->|Inference routes| GW\n    ING -->|Management routes| BE\n    ING -->|Static UI| UI\n    GW --> PROVIDER\n    GW --> PGW\n    BE --> PGW\n    BE --> PGR\n    GW \u003C--> REDIS\n    BE \u003C--> REDIS\n    MIG --> PGW\n```\n\n组件化部署的核心价值是隔离故障域和扩缩容单元：\n\n- Gateway 根据推理 QPS、并发和模型调用延迟扩容。\n- Backend 根据管理 API 和报表查询压力扩容。\n- UI 根据管理用户访问量扩容。\n- Analytics 读请求可以走只读副本，减少对账务写入的影响。\n\n注意：该组件化形态是官方 Helm \u002F Kubernetes 部署架构，不等于此前的单容器 Docker Compose 会自动拥有 4000 \u002F 4001 \u002F 3000 三个独立服务。\n\n### 11.3 对当前 SEABRID 服务器的部署建议\n\n当前阶段建议：\n\n```mermaid\nflowchart TB\n    N[\"Nginx \u002F HTTPS\"]\n    UI[\"LiteLLM 单体 Proxy + Admin UI\"]\n    PG[(\"现有 PostgreSQL\u003Cbr\u002F>独立 litellm DB\")]\n    R[\"Redis（后续按需求增加）\"]\n    H[\"DeepSeek Harness \u002F SEABRID OS\"]\n    P[\"DeepSeek \u002F OpenAI \u002F Claude \u002F Local Models\"]\n\n    H --> N --> UI\n    UI --> PG\n    UI \u003C--> R\n    UI --> P\n```\n\n- 当前单机阶段使用单体 Docker Compose，降低运维复杂度。\n- PostgreSQL 独立数据库、独立账号。\n- Redis 不是首期硬性依赖，但多副本和严格限流时应加入。\n- 管理 UI 不直接暴露公网。\n- 当模型流量、管理查询或团队数量增长后，再评估官方组件化 Helm 部署。\n\n---\n\n## 12. 可观测性与成本治理\n\n### 12.1 观测对象\n\n| 层次             | 关键指标                                     |\n| -------------- | ---------------------------------------- |\n| Gateway        | QPS、请求成功率、P50\u002FP95\u002FP99、并发数                |\n| Provider       | 各厂商成功率、429\u002F5xx、超时、延迟                     |\n| Router         | 各 Deployment 请求量、Fallback、Retry、Cooldown |\n| Key \u002F Team     | RPM、TPM、预算使用率、拒绝次数                       |\n| Token          | Prompt Tokens、Completion Tokens、缓存 Token |\n| Cost           | 单请求费用、模型费用、团队费用、项目费用                     |\n| Infrastructure | CPU、内存、Redis 延迟、PostgreSQL 连接池           |\n| Background     | Spend Queue 深度、Flush 延迟、失败重试             |\n\n### 12.2 成本计算链路\n\n```mermaid\nflowchart LR\n    R[\"Provider Response\"] --> U[\"Usage Normalize\"]\n    U --> P[\"Model Pricing \u002F Custom Pricing\"]\n    P --> C[\"Request Cost\"]\n    C --> ATTR[\"Key \u002F User \u002F Team \u002F Project Attribution\"]\n    ATTR --> B[\"Budget \u002F Spend Counters\"]\n    B --> LOG[\"Spend Logs \u002F Daily Rollups\"]\n    LOG --> BI[\"Dashboard \u002F Export \u002F SEABRID Analytics\"]\n```\n\n### 12.3 计费数据使用边界\n\nLiteLLM 的 Spend 是网关侧的模型调用成本核算数据。企业内部仍需明确：\n\n- 供应商实际账单与网关估算费用的对账关系。\n- 自定义价格、折扣、缓存 Token 和模型价格更新策略。\n- 失败重试是否产生多次供应商费用。\n- Fallback 后的实际模型和计费归属。\n- 汇率、税费、内部加价和成本中心分摊。\n\n不建议直接把 LiteLLM Spend Logs 当作财务结算凭证。\n\n---\n\n## 13. 插件、Hook 和二次开发机制\n\n### 13.1 扩展点分类\n\n| 扩展点                      | 适合用途                  |\n| ------------------------ | --------------------- |\n| Custom Provider          | 接入非标准或内部模型 API        |\n| Custom Logger \u002F Callback | 将调用日志和指标发送到外部平台       |\n| Proxy Hook               | 请求前检查、请求后处理和策略扩展      |\n| Guardrail                | 内容安全、PII、合规检查         |\n| Custom Auth \u002F SSO        | 企业认证对接                |\n| Management API           | 企业系统自动管理模型、Key 和 Team |\n| Router Plugin \u002F Strategy | 定制模型选择逻辑              |\n| Pass-through Endpoint    | 代理非标准 Provider API    |\n\n### 13.2 扩展架构\n\n```mermaid\nflowchart TB\n    REQUEST[\"Proxy Request\"]\n    AUTH[\"Auth Extension\"]\n    PRE[\"Pre-call Hook\"]\n    ROUTE[\"Router \u002F Strategy Plugin\"]\n    PROVIDER[\"Custom Provider\"]\n    CALLBACK[\"Success \u002F Failure Callback\"]\n    GUARD[\"Guardrail\"]\n\n    REQUEST --> AUTH --> PRE --> GUARD --> ROUTE --> PROVIDER\n    PROVIDER --> CALLBACK\n```\n\n二次开发优先级建议：\n\n1. 优先使用现有 Provider 和 OpenAI-compatible 接入。\n2. 使用 Management API 管理模型、Key、Team。\n3. 用 Callback \u002F Hook 扩展审计和业务埋点。\n4. 只有标准接口无法满足时才开发 Custom Provider。\n5. 不建议直接修改 LiteLLM 核心源码；应优先使用配置、API、插件和外部服务。\n\n---\n\n## 14. 安全架构分析\n\n### 14.1 密钥分类\n\n| 密钥                   | 用途                   | 保存位置                   |\n| -------------------- | -------------------- | ---------------------- |\n| Provider API Key     | 调用上游模型供应商            | LiteLLM 凭证管理           |\n| `LITELLM_MASTER_KEY` | 管理员和管理 API 高权限认证     | Secret \u002F 环境变量          |\n| `LITELLM_SALT_KEY`   | 加密数据库保存的 Provider 凭证 | Secret 管理并备份           |\n| Virtual Key          | 应用、项目、Agent 调用网关     | 客户端安全配置 \u002F Secret Store |\n| JWT \u002F SSO Credential | 企业身份认证               | 企业 IAM \u002F Secret Store  |\n\n### 14.2 必须防范的风险\n\n- Master Key 泄露导致网关管理权限暴露。\n- Provider API Key 泄露导致供应商账户被盗用。\n- Salt Key 丢失或更换导致数据库中加密凭证不可解密。\n- 管理 API 未做 RBAC，普通用户可修改模型或凭证。\n- Key 预算、RPM \u002F TPM 和并发限制配置不合理。\n- 模型 API Base 可被滥用，形成 SSRF 或凭证转发风险。\n- Prompt \u002F Completion 日志包含个人信息、业务秘密或客户数据。\n- 管理后台直接暴露公网。\n\n### 14.3 推荐安全边界\n\n```mermaid\nflowchart TB\n    EXT[\"Internet \u002F Internal Clients\"]\n    WAF[\"WAF \u002F Nginx \u002F TLS \u002F IP ACL\"]\n    ADMIN[\"SEABRID Admin Service \u002F IAM\"]\n    GW[\"LiteLLM Gateway\"]\n    SECRETS[\"Secret Store\"]\n    DB[(\"PostgreSQL\")]\n    REDIS[(\"Redis\")]\n    UP[\"Provider APIs\"]\n\n    EXT --> WAF --> GW\n    ADMIN -->|Restricted Management API| GW\n    GW --> SECRETS\n    GW --> DB\n    GW \u003C--> REDIS\n    GW --> UP\n```\n\n---\n\n## 15. 架构优点、局限和技术风险\n\n### 15.1 优点\n\n1. 多供应商统一接入，降低业务应用与 Provider 的耦合。\n2. SDK 和 Gateway 两种模式，适用范围较广。\n3. Virtual Key、Team、预算和限流提供了基础企业治理能力。\n4. Router 提供重试、Fallback、负载均衡和部署冷却。\n5. Provider Adapter 结构便于扩展模型供应商。\n6. UI、Management API、YAML、Terraform 支持不同运维方式。\n7. Python 与 Rust 渐进式共存，兼顾生态和性能。\n8. 单体和组件化部署提供不同规模的运行模式。\n\n### 15.2 局限与风险\n\n| 风险        | 原因                           | 建议                |\n| --------- | ---------------------------- | ----------------- |\n| 模型能力不等价   | 统一接口不能消除模型能力差异               | 建立能力矩阵和业务回归测试     |\n| 版本升级复杂    | Provider、Router、Rust 支持矩阵变化快 | 固定版本、灰度升级         |\n| 账务最终一致    | 异步 Spend 写入可能有延迟             | 监控队列、补偿和对账        |\n| Redis 依赖  | 多副本状态和限流依赖共享缓存               | 设计 Redis HA 和降级策略 |\n| 管理面影响推理面  | 单体模式共享运行资源                   | 规模扩大后组件化部署        |\n| 配置双写      | YAML 与 DB 同时维护资源             | 单一事实来源            |\n| 自定义扩展升级成本 | 直接改核心源码容易冲突                  | 外置服务和官方 Hook 优先   |\n| 价格准确性     | 模型价格和供应商账单可能变化               | 价格版本化和供应商对账       |\n\n### 15.3 适用场景\n\n| 场景                     | 适用性         |\n| ---------------------- | ----------- |\n| 多模型厂商统一 API            | 高           |\n| 团队 \u002F 项目 \u002F Agent Key 管理 | 高           |\n| 模型负载均衡和故障切换            | 高           |\n| 企业级模型调用统计              | 高，但财务结算需扩展  |\n| 企业身份与组织主数据             | 需要外部 IAM 配合 |\n| Agent 任务调度与隔离执行        | 不属于其核心边界    |\n| 模型训练和推理集群管理            | 不属于其核心边界    |\n| 企业业务流程与审批              | 不属于其核心边界    |\n\n---\n\n## 16. SEABRID OS 集成架构建议\n\n### 16.1 系统职责边界\n\n| 系统                       | 核心职责                                      |\n| ------------------------ | ----------------------------------------- |\n| DeepSeek Harness         | Agent 运行、工具调用、代码执行和任务工作区                  |\n| LiteLLM                  | 多模型 Gateway、供应商凭证、路由、Virtual Key、调用成本     |\n| SEABRID OS             | 企业用户、租户、项目、Agent 资产、业务权限、管理工作台            |\n| SEABRID LLM Admin Service | SEABRID IAM 与 LiteLLM Management API 的适配服务 |\n| PostgreSQL               | LiteLLM 自有管理与账务数据                         |\n| SEABRID Platform DB       | 企业业务主数据、租户、项目和审计关联                        |\n\n### 16.2 推荐集成架构\n\n```mermaid\nflowchart TB\n    subgraph USER[\"使用者\"]\n      ADMIN[\"平台管理员\"]\n      DEV[\"开发人员\"]\n      AGENT[\"DeepSeek Harness Agents\"]\n    end\n    subgraph SEABRID[\"SEABRID OS\"]\n      UI[\"Vue3 管理工作台\"]\n      IAM[\"企业 IAM \u002F Tenant \u002F Project\"]\n      ADMINAPI[\"LLM Admin Service\"]\n      BIZ[\"Agent \u002F 项目 \u002F 预算业务映射\"]\n    end\n    subgraph GATEWAY[\"LiteLLM\"]\n      MGMT[\"Management API\"]\n      DP[\"Gateway API\"]\n      ROUTER[\"Router \u002F Provider Adapters\"]\n    end\n    subgraph DATA[\"数据层\"]\n      LDB[(\"LiteLLM PostgreSQL\")]\n      ADB[(\"SEABRID Business DB\")]\n      CACHE[(\"Redis\")]\n    end\n    MODELS[\"DeepSeek \u002F OpenAI \u002F Claude \u002F Gemini \u002F Local\"]\n\n    ADMIN --> UI\n    DEV --> UI\n    UI --> ADMINAPI\n    ADMINAPI \u003C--> IAM\n    ADMINAPI \u003C--> BIZ\n    ADMINAPI --> MGMT\n    AGENT --> DP\n    MGMT --> LDB\n    DP --> ROUTER --> MODELS\n    DP --> CACHE\n    DP --> LDB\n    BIZ --> ADB\n```\n\n### 16.3 Agent Key 生命周期\n\n```mermaid\nsequenceDiagram\n    participant OS as SEABRID OS\n    participant IAM as SEABRID IAM\n    participant ADMIN as LLM Admin Service\n    participant LLM as LiteLLM Management API\n    participant DB as SEABRID Business DB\n    participant AGENT as SEABRID Agent\n\n    OS->>IAM: 校验用户 \u002F 项目权限\n    OS->>ADMIN: 申请 Agent 模型访问凭证\n    ADMIN->>LLM: 创建 Virtual Key \u002F 限定模型和预算\n    LLM-->>ADMIN: 返回 Key 和 Key ID\n    ADMIN->>DB: 保存 Key ID、所属 Agent、项目和状态\n    ADMIN-->>OS: 返回受控凭证\n    OS->>AGENT: 安全注入 Virtual Key + Gateway URL\n    AGENT->>LLM: 模型调用\n    LLM-->>AGENT: 统一模型响应\n    OS->>ADMIN: Agent 停用 \u002F 项目关闭\n    ADMIN->>LLM: 删除或禁用 Virtual Key\n    ADMIN->>DB: 更新凭证状态\n```\n\n实施时不要把完整 Virtual Key 写入普通业务表或日志；建议只在创建时安全交付，业务侧保留 Key ID、脱敏值和关联关系。\n\n### 16.4 SEABRID 的分阶段实施\n\n| 阶段   | 目标         | 交付                                        |\n| ---- | ---------- | ----------------------------------------- |\n| V1.0 | 基础 Gateway | Docker、PostgreSQL、Provider UI、模型调用        |\n| V1.1 | 企业身份与 Key  | Tenant \u002F Project \u002F Agent 与 Virtual Key 映射 |\n| V1.2 | Token 预算治理 | 团队预算、项目预算、Agent 限额和费用统计                   |\n| V1.3 | 自定义管理界面    | Vue3 + Element Plus + Management API      |\n| V1.4 | 可用性与扩展     | Redis HA、Fallback、监控、备份和灰度升级              |\n| V2.0 | 规模化部署      | Gateway \u002F Backend \u002F UI 组件化和多实例            |\n\n---\n\n## 17. 架构评审结论\n\n### 17.1 技术结论\n\n- LiteLLM 是成熟的多模型 API Gateway \u002F AI Gateway，不是完整企业 AI OS。\n- SDK、Proxy、Router、Provider Adapter、管理 API 和账务系统构成其核心。\n- Virtual Key 是应用接入和用量治理的重要对象。\n- PostgreSQL 是管理和账务持久化核心；Redis 在多实例和高并发场景中承担共享缓存、限流及队列能力。\n- 官方正在推进 Rust 化，但必须依据版本支持矩阵判断哪些请求实际走 Rust。\n- 组件化部署解决数据面与控制面共享资源导致的故障耦合问题。\n- 对 SEABRID 来说，应将 LiteLLM 定位为独立 LLM Gateway，企业 IAM 和 Agent 资产仍由 SEABRID OS 管理。\n\n### 17.2 最重要的设计原则\n\n1. **不修改 LiteLLM 核心源码**：尽可能通过官方 API、配置、Hook 和扩展点集成。\n2. **不让 Harness 直连供应商**：Harness 只持有 LiteLLM Virtual Key。\n3. **不把 LiteLLM 当作企业主数据源**：租户、项目和用户主数据由 SEABRID 管理。\n4. **不混用配置事实来源**：YAML、数据库和管理 API 各自有明确职责。\n5. **不忽略异步账务**：必须验证 Spend 写入延迟、失败恢复和对账。\n6. **不盲目上微服务**：单机先用单体部署，业务规模增长后再拆分组件。\n\n---\n\n## 18. 技术分享建议（约 45–60 分钟）\n\n| 分享章节                    | 建议时长 | 重点                               |\n| ----------------------- | ----:| -------------------------------- |\n| 1. 为什么需要 LLM Gateway    | 5 分钟 | 多模型厂商接入痛点                        |\n| 2. LiteLLM 项目整体架构       | 8 分钟 | SDK、Gateway、Control Plane        |\n| 3. 源码结构与技术栈             | 8 分钟 | 目录、模块边界                          |\n| 4. 一次请求的完整链路            | 8 分钟 | Auth → Router → Provider → Spend |\n| 5. Provider 与 Router 设计 | 8 分钟 | 统一协议、重试、Fallback                 |\n| 6. 数据和多租户治理             | 7 分钟 | PostgreSQL、Redis、Virtual Key     |\n| 7. Rust 化与组件化部署         | 8 分钟 | 性能与故障隔离                          |\n| 8. SEABRID OS 集成      | 5 分钟 | 企业 IAM + Harness + Gateway       |\n\n### 推荐分享的五张核心图\n\n1. LiteLLM 总体架构图。\n2. 一次模型调用 Sequence Diagram。\n3. Provider Adapter 与 Router 关系图。\n4. PostgreSQL \u002F Redis \u002F Spend 异步账务图。\n5. SEABRID OS + DeepSeek Harness + LiteLLM 集成架构图。\n\n---\n\n## 19. 官方资料与源码定位\n\n### GitHub 源码\n\n- [LiteLLM GitHub 仓库](https:\u002F\u002Fgithub.com\u002FBerriAI\u002Flitellm)\n- [pyproject.toml：依赖与技术栈](https:\u002F\u002Fgithub.com\u002FBerriAI\u002Flitellm\u002Fblob\u002Fmain\u002Fpyproject.toml)\n- [Proxy Server](https:\u002F\u002Fgithub.com\u002FBerriAI\u002Flitellm\u002Fblob\u002Fmain\u002Flitellm\u002Fproxy\u002Fproxy_server.py)\n- [Proxy Key Authentication](https:\u002F\u002Fgithub.com\u002FBerriAI\u002Flitellm\u002Fblob\u002Fmain\u002Flitellm\u002Fproxy\u002Fauth\u002Fuser_api_key_auth.py)\n- [Router](https:\u002F\u002Fgithub.com\u002FBerriAI\u002Flitellm\u002Fblob\u002Fmain\u002Flitellm\u002Frouter.py)\n- [Router Core](https:\u002F\u002Fgithub.com\u002FBerriAI\u002Flitellm\u002Fblob\u002Fmain\u002Flitellm\u002Frouter_core.py)\n- [SDK Main](https:\u002F\u002Fgithub.com\u002FBerriAI\u002Flitellm\u002Fblob\u002Fmain\u002Flitellm\u002Fmain.py)\n- [Provider Resolver](https:\u002F\u002Fgithub.com\u002FBerriAI\u002Flitellm\u002Fblob\u002Fmain\u002Flitellm\u002Flitellm_core_utils\u002Fget_llm_provider_logic.py)\n- [Custom LLM Adapter](https:\u002F\u002Fgithub.com\u002FBerriAI\u002Flitellm\u002Fblob\u002Fmain\u002Flitellm\u002Fllms\u002Fcustom_llm.py)\n- [Spend Update Writer](https:\u002F\u002Fgithub.com\u002FBerriAI\u002Flitellm\u002Fblob\u002Fmain\u002Flitellm\u002Fproxy\u002Fdb\u002Fdb_spend_update_writer.py)\n- [Cost Callback](https:\u002F\u002Fgithub.com\u002FBerriAI\u002Flitellm\u002Fblob\u002Fmain\u002Flitellm\u002Fproxy\u002Fhooks\u002Fproxy_track_cost_callback.py)\n- [Rust Workspace](https:\u002F\u002Fgithub.com\u002FBerriAI\u002Flitellm\u002Ftree\u002Fmain\u002Flitellm\u002Frust)\n\n### 官方架构文档\n\n- [Life of a Request](https:\u002F\u002Fdocs.litellm.ai\u002Fdocs\u002Fproxy\u002Farchitecture)\n- [Configuration Overview](https:\u002F\u002Fdocs.litellm.ai\u002Fdocs\u002Fproxy\u002Fconfiguration\u002Foverview)\n- [Admin UI](https:\u002F\u002Fdocs.litellm.ai\u002Fdocs\u002Fproxy\u002Fconfiguration\u002Fui)\n- [Provider List](https:\u002F\u002Fdocs.litellm.ai\u002Fdocs\u002Fproviders)\n- [Rust Migration](https:\u002F\u002Fdocs.litellm.ai\u002Frust-migration)\n- [Componentized Deployment](https:\u002F\u002Fdocs.litellm.ai\u002Fblog\u002Fcomponentized-deployment)\n- [Reference Architectures](https:\u002F\u002Fdocs.litellm.ai\u002Fdocs\u002Fproxy\u002Fdeploy\u002Farchitecture)\n- [v1.112.0 Release Notes](https:\u002F\u002Fdocs.litellm.ai\u002Frelease_notes\u002Fv1.112.0\u002Fv1-112-0)\n\n### 研究限制\n\n本文是基于可访问的官方默认分支源码文件、项目依赖声明和官方架构文档所做的架构级分析。LiteLLM 处于持续演进状态，特别是 Rust Gateway、数据库访问层、组件化部署和企业功能。若要形成代码级审计报告，还应固定具体 Git Tag \u002F Commit，逐个追踪目标版本的函数调用、Schema Migration、测试用例和运行配置。\n\n**建议正式分享时固定两个对照版本：v1.112.0（当前中文部署基线）与研究时的最新稳定版本，并把版本差异单独列为一页。**\n\n","\u003Cblockquote data-line=\"0\">\n\u003Cp data-line=\"0\">研究用途：技术架构评审、研发团队分享、技术选型\u003Cbr>\n研究对象：BerriAI\u002FLiteLLM 官方开源仓库\u003Cbr>\n源码基线：GitHub 默认分支；本次读取的 \u003Ccode>pyproject.toml\u003C\u002Fcode> 标示版本为 \u003Cstrong>1.114.0\u003C\u002Fstrong>\u003Cbr>\n版本说明：此前部署讨论采用 v1.112.0。本文将默认分支的新架构与 v1.112.0 的已知能力分开说明，不把新版本能力倒推到旧版本。\u003C\u002Fp>\n\u003C\u002Fblockquote>\n\u003Chr data-line=\"5\">\n\u003Ch2 data-line=\"7\" id=\"0. 执行摘要\">0. 执行摘要\u003C\u002Fh2>\n\u003Cp data-line=\"9\">LiteLLM 不应只被理解为“把不同大模型 API 转成 OpenAI 格式的代理”。从源码和官方架构资料看，它已经形成由以下部分组成的 AI Gateway 平台：\u003C\u002Fp>\n\u003Col data-line=\"11\">\n\u003Cli data-line=\"11\">\u003Cstrong>SDK \u002F Provider 适配层\u003C\u002Fstrong>：统一模型调用入口，处理供应商识别、参数转换、HTTP 调用、流式响应和异常映射。\u003C\u002Fli>\n\u003Cli data-line=\"12\">\u003Cstrong>Gateway 数据面（Data Plane）\u003C\u002Fstrong>：承接高频模型请求，完成认证、限流、路由、重试、Fallback、调用和响应。\u003C\u002Fli>\n\u003Cli data-line=\"13\">\u003Cstrong>Management 控制面（Control Plane）\u003C\u002Fstrong>：管理模型、凭证、Virtual Key、用户、团队、预算、配置和使用情况。\u003C\u002Fli>\n\u003Cli data-line=\"14\">\u003Cstrong>Persistence \u002F Cache \u002F Observability\u003C\u002Fstrong>：通过数据库、缓存、异步账务写入、日志回调和监控支撑网关运行。\u003C\u002Fli>\n\u003Cli data-line=\"15\">\u003Cstrong>Rust 化执行路径\u003C\u002Fstrong>：项目正在将部分高频 Gateway、路由和协议转换能力迁移到 Rust；未覆盖的请求仍可转交 Python 路径。\u003C\u002Fli>\n\u003Cli data-line=\"16\">\u003Cstrong>组件化部署\u003C\u002Fstrong>：官方提供 Gateway、Backend、UI 分离的 Helm 部署形态，允许数据面和控制面独立扩缩容。\u003C\u002Fli>\n\u003C\u002Fol>\n\u003Cp data-line=\"18\">\u003Cstrong>核心架构判断：LiteLLM 的核心价值不是模型 UI，而是统一调用协议、模型部署注册、请求路由、访问控制、用量核算与多供应商适配能力。\u003C\u002Fstrong>\u003C\u002Fp>\n\u003Ch3 data-line=\"20\" id=\"0.1 架构总览\">0.1 架构总览\u003C\u002Fh3>\n\u003Cp data-line=\"22\" class=\"md-editor-mermaid\" data-mermaid-theme=\"light\" data-closed=\"true\" data-processed=\"\" data-content=\"flowchart TB\n    C[&quot;业务应用 \u002F Agent \u002F Harness \u002F SDK&quot;]\n    EDGE[&quot;Ingress \u002F Nginx \u002F TLS \u002F 网络策略&quot;]\n    subgraph DP[&quot;Data Plane：模型数据面&quot;]\n      GW[&quot;LiteLLM Gateway API&quot;]\n      AUTH[&quot;认证与授权&quot;]\n      LIMIT[&quot;RPM \u002F TPM \u002F 并发限制&quot;]\n      ROUTER[&quot;Router：选择、重试、Fallback、Cooldown&quot;]\n      SDK[&quot;LiteLLM SDK \u002F Provider Adapter&quot;]\n      TRANS[&quot;协议转换 \u002F 参数映射 \u002F 流式转换&quot;]\n    end\n    subgraph CP[&quot;Control Plane：管理控制面&quot;]\n      UI[&quot;Admin UI&quot;]\n      API[&quot;Management API&quot;]\n      CFG[&quot;模型 \u002F 凭证 \u002F Team \u002F User \u002F Virtual Key \u002F Budget&quot;]\n    end\n    subgraph INFRA[&quot;基础设施&quot;]\n      DB[(&quot;PostgreSQL&quot;)]\n      REDIS[(&quot;Redis \u002F Cache&quot;)]\n      LOG[&quot;异步日志 \u002F Spend Writer&quot;]\n      OBS[&quot;Prometheus \u002F OpenTelemetry \u002F 回调平台&quot;]\n    end\n    PROVIDERS[&quot;OpenAI \u002F Anthropic \u002F DeepSeek \u002F Gemini \u002F Bedrock \u002F Azure \u002F Ollama \u002F vLLM 等&quot;]\n    C --&gt; EDGE --&gt; GW\n    GW --&gt; AUTH --&gt; LIMIT --&gt; ROUTER --&gt; SDK --&gt; TRANS --&gt; PROVIDERS\n    UI --&gt; API --&gt; CFG\n    CFG --&gt; DB\n    AUTH &lt;--&gt; REDIS\n    AUTH -.缓存未命中.-&gt; DB\n    ROUTER &lt;--&gt; REDIS\n    GW --&gt; LOG --&gt; DB\n    GW --&gt; OBS\n    API &lt;--&gt; DB\">\u003Csvg id=\"mx9uhx82zl8repbyx7e\" width=\"100%\" xmlns=\"http:\u002F\u002Fwww.w3.org\u002F2000\u002Fsvg\" xmlns:xlink=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxlink\" class=\"flowchart\" style=\"max-width: 1622.46875px;\" viewBox=\"0 0 1622.46875 1268\" role=\"graphics-document document\" aria-roledescription=\"flowchart-v2\">\u003Cstyle>#mx9uhx82zl8repbyx7e{font-family:\"trebuchet ms\",verdana,arial,sans-serif;font-size:16px;fill:#333;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#mx9uhx82zl8repbyx7e .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#mx9uhx82zl8repbyx7e .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#mx9uhx82zl8repbyx7e .error-icon{fill:#552222;}#mx9uhx82zl8repbyx7e .error-text{fill:#552222;stroke:#552222;}#mx9uhx82zl8repbyx7e .edge-thickness-normal{stroke-width:1px;}#mx9uhx82zl8repbyx7e .edge-thickness-thick{stroke-width:3.5px;}#mx9uhx82zl8repbyx7e .edge-pattern-solid{stroke-dasharray:0;}#mx9uhx82zl8repbyx7e .edge-thickness-invisible{stroke-width:0;fill:none;}#mx9uhx82zl8repbyx7e .edge-pattern-dashed{stroke-dasharray:3;}#mx9uhx82zl8repbyx7e .edge-pattern-dotted{stroke-dasharray:2;}#mx9uhx82zl8repbyx7e .marker{fill:#333333;stroke:#333333;}#mx9uhx82zl8repbyx7e .marker.cross{stroke:#333333;}#mx9uhx82zl8repbyx7e svg{font-family:\"trebuchet ms\",verdana,arial,sans-serif;font-size:16px;}#mx9uhx82zl8repbyx7e p{margin:0;}#mx9uhx82zl8repbyx7e .label{font-family:\"trebuchet ms\",verdana,arial,sans-serif;color:#333;}#mx9uhx82zl8repbyx7e .cluster-label text{fill:#333;}#mx9uhx82zl8repbyx7e .cluster-label span{color:#333;}#mx9uhx82zl8repbyx7e .cluster-label span p{background-color:transparent;}#mx9uhx82zl8repbyx7e .label text,#mx9uhx82zl8repbyx7e span{fill:#333;color:#333;}#mx9uhx82zl8repbyx7e .node rect,#mx9uhx82zl8repbyx7e .node circle,#mx9uhx82zl8repbyx7e .node ellipse,#mx9uhx82zl8repbyx7e .node polygon,#mx9uhx82zl8repbyx7e .node path{fill:#ECECFF;stroke:#9370DB;stroke-width:1px;}#mx9uhx82zl8repbyx7e .rough-node .label text,#mx9uhx82zl8repbyx7e .node .label text,#mx9uhx82zl8repbyx7e .image-shape .label,#mx9uhx82zl8repbyx7e .icon-shape .label{text-anchor:middle;}#mx9uhx82zl8repbyx7e .node .katex path{fill:#000;stroke:#000;stroke-width:1px;}#mx9uhx82zl8repbyx7e .rough-node .label,#mx9uhx82zl8repbyx7e .node .label,#mx9uhx82zl8repbyx7e .image-shape .label,#mx9uhx82zl8repbyx7e .icon-shape .label{text-align:center;}#mx9uhx82zl8repbyx7e .node.clickable{cursor:pointer;}#mx9uhx82zl8repbyx7e .root .anchor path{fill:#333333!important;stroke-width:0;stroke:#333333;}#mx9uhx82zl8repbyx7e .arrowheadPath{fill:#333333;}#mx9uhx82zl8repbyx7e .edgePath .path{stroke:#333333;stroke-width:2.0px;}#mx9uhx82zl8repbyx7e .flowchart-link{stroke:#333333;fill:none;}#mx9uhx82zl8repbyx7e .edgeLabel{background-color:rgba(232,232,232, 0.8);text-align:center;}#mx9uhx82zl8repbyx7e .edgeLabel p{background-color:rgba(232,232,232, 0.8);}#mx9uhx82zl8repbyx7e .edgeLabel rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mx9uhx82zl8repbyx7e .labelBkg{background-color:rgba(232, 232, 232, 0.5);}#mx9uhx82zl8repbyx7e .cluster rect{fill:#ffffde;stroke:#aaaa33;stroke-width:1px;}#mx9uhx82zl8repbyx7e .cluster text{fill:#333;}#mx9uhx82zl8repbyx7e .cluster span{color:#333;}#mx9uhx82zl8repbyx7e div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:\"trebuchet ms\",verdana,arial,sans-serif;font-size:12px;background:hsl(80, 100%, 96.2745098039%);border:1px solid #aaaa33;border-radius:2px;pointer-events:none;z-index:100;}#mx9uhx82zl8repbyx7e .flowchartTitleText{text-anchor:middle;font-size:18px;fill:#333;}#mx9uhx82zl8repbyx7e rect.text{fill:none;stroke-width:0;}#mx9uhx82zl8repbyx7e .icon-shape,#mx9uhx82zl8repbyx7e .image-shape{background-color:rgba(232,232,232, 0.8);text-align:center;}#mx9uhx82zl8repbyx7e .icon-shape p,#mx9uhx82zl8repbyx7e .image-shape p{background-color:rgba(232,232,232, 0.8);padding:2px;}#mx9uhx82zl8repbyx7e .icon-shape rect,#mx9uhx82zl8repbyx7e .image-shape rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mx9uhx82zl8repbyx7e .label-icon{display:inline-block;height:1em;overflow:visible;vertical-align:-0.125em;}#mx9uhx82zl8repbyx7e .node .label-icon path{fill:currentColor;stroke:revert;stroke-width:revert;}#mx9uhx82zl8repbyx7e :root{--mermaid-font-family:\"trebuchet ms\",verdana,arial,sans-serif;}\u003C\u002Fstyle>\u003Cg>\u003Cmarker id=\"mx9uhx82zl8repbyx7e_flowchart-v2-pointEnd\" class=\"marker flowchart-v2\" viewBox=\"0 0 10 10\" refX=\"5\" refY=\"5\" markerUnits=\"userSpaceOnUse\" markerWidth=\"8\" markerHeight=\"8\" orient=\"auto\">\u003Cpath d=\"M 0 0 L 10 5 L 0 10 z\" class=\"arrowMarkerPath\" style=\"stroke-width: 1; stroke-dasharray: 1, 0;\">\u003C\u002Fpath>\u003C\u002Fmarker>\u003Cmarker id=\"mx9uhx82zl8repbyx7e_flowchart-v2-pointStart\" class=\"marker flowchart-v2\" viewBox=\"0 0 10 10\" refX=\"4.5\" refY=\"5\" markerUnits=\"userSpaceOnUse\" markerWidth=\"8\" markerHeight=\"8\" orient=\"auto\">\u003Cpath d=\"M 0 5 L 10 10 L 10 0 z\" class=\"arrowMarkerPath\" style=\"stroke-width: 1; stroke-dasharray: 1, 0;\">\u003C\u002Fpath>\u003C\u002Fmarker>\u003Cmarker id=\"mx9uhx82zl8repbyx7e_flowchart-v2-circleEnd\" class=\"marker flowchart-v2\" viewBox=\"0 0 10 10\" refX=\"11\" refY=\"5\" markerUnits=\"userSpaceOnUse\" markerWidth=\"11\" markerHeight=\"11\" orient=\"auto\">\u003Ccircle cx=\"5\" cy=\"5\" r=\"5\" class=\"arrowMarkerPath\" style=\"stroke-width: 1; stroke-dasharray: 1, 0;\">\u003C\u002Fcircle>\u003C\u002Fmarker>\u003Cmarker id=\"mx9uhx82zl8repbyx7e_flowchart-v2-circleStart\" class=\"marker flowchart-v2\" viewBox=\"0 0 10 10\" refX=\"-1\" refY=\"5\" markerUnits=\"userSpaceOnUse\" markerWidth=\"11\" markerHeight=\"11\" orient=\"auto\">\u003Ccircle cx=\"5\" cy=\"5\" r=\"5\" class=\"arrowMarkerPath\" style=\"stroke-width: 1; stroke-dasharray: 1, 0;\">\u003C\u002Fcircle>\u003C\u002Fmarker>\u003Cmarker id=\"mx9uhx82zl8repbyx7e_flowchart-v2-crossEnd\" class=\"marker cross flowchart-v2\" viewBox=\"0 0 11 11\" refX=\"12\" refY=\"5.2\" markerUnits=\"userSpaceOnUse\" markerWidth=\"11\" markerHeight=\"11\" orient=\"auto\">\u003Cpath d=\"M 1,1 l 9,9 M 10,1 l -9,9\" class=\"arrowMarkerPath\" style=\"stroke-width: 2; stroke-dasharray: 1, 0;\">\u003C\u002Fpath>\u003C\u002Fmarker>\u003Cmarker id=\"mx9uhx82zl8repbyx7e_flowchart-v2-crossStart\" class=\"marker cross flowchart-v2\" viewBox=\"0 0 11 11\" refX=\"-1\" refY=\"5.2\" markerUnits=\"userSpaceOnUse\" markerWidth=\"11\" markerHeight=\"11\" orient=\"auto\">\u003Cpath d=\"M 1,1 l 9,9 M 10,1 l -9,9\" class=\"arrowMarkerPath\" style=\"stroke-width: 2; stroke-dasharray: 1, 0;\">\u003C\u002Fpath>\u003C\u002Fmarker>\u003Cg class=\"root\">\u003Cg class=\"clusters\">\u003Cg class=\"cluster\" id=\"INFRA\" data-look=\"classic\">\u003Crect style=\"\" x=\"439.8776054382324\" y=\"650\" width=\"614.75\" height=\"281\">\u003C\u002Frect>\u003Cg class=\"cluster-label\" transform=\"translate(715.2526054382324, 650)\">\u003CforeignObject width=\"64\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"nodeLabel\">\u003Cp>基础设施\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"cluster\" id=\"CP\" data-look=\"classic\">\u003Crect style=\"\" x=\"8\" y=\"393\" width=\"411.8776054382324\" height=\"385\">\u003C\u002Frect>\u003Cg class=\"cluster-label\" transform=\"translate(117.38671684265137, 393)\">\u003CforeignObject width=\"193.1041717529297\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"nodeLabel\">\u003Cp>Control Plane：管理控制面\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"cluster\" id=\"DP\" data-look=\"classic\">\u003Crect style=\"\" x=\"1074.6276054382324\" y=\"264\" width=\"539.8411445617676\" height=\"820\">\u003C\u002Frect>\u003Cg class=\"cluster-label\" transform=\"translate(1257.8919277191162, 264)\">\u003CforeignObject width=\"173.3125\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"nodeLabel\">\u003Cp>Data Plane：模型数据面\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"edgePaths\">\u003Cpath d=\"M1256.188,86L1256.188,90.167C1256.188,94.333,1256.188,102.667,1256.188,110.333C1256.188,118,1256.188,125,1256.188,128.5L1256.188,132\" id=\"L_C_EDGE_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_C_EDGE_0\" data-points=\"W3sieCI6MTI1Ni4xODc1LCJ5Ijo4Nn0seyJ4IjoxMjU2LjE4NzUsInkiOjExMX0seyJ4IjoxMjU2LjE4NzUsInkiOjEzNn1d\" marker-end=\"url(#mx9uhx82zl8repbyx7e_flowchart-v2-pointEnd)\">\u003C\u002Fpath>\u003Cpath d=\"M1256.188,214L1256.188,218.167C1256.188,222.333,1256.188,230.667,1256.188,239C1256.188,247.333,1256.188,255.667,1256.188,263.333C1256.188,271,1256.188,278,1256.188,281.5L1256.188,285\" id=\"L_EDGE_GW_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_EDGE_GW_0\" data-points=\"W3sieCI6MTI1Ni4xODc1LCJ5IjoyMTR9LHsieCI6MTI1Ni4xODc1LCJ5IjoyMzl9LHsieCI6MTI1Ni4xODc1LCJ5IjoyNjR9LHsieCI6MTI1Ni4xODc1LCJ5IjoyODl9XQ==\" marker-end=\"url(#mx9uhx82zl8repbyx7e_flowchart-v2-pointEnd)\">\u003C\u002Fpath>\u003Cpath d=\"M1313.709,343L1322.585,347.167C1331.462,351.333,1349.215,359.667,1358.092,368C1366.969,376.333,1366.969,384.667,1366.969,392.333C1366.969,400,1366.969,407,1366.969,410.5L1366.969,414\" id=\"L_GW_AUTH_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_GW_AUTH_0\" data-points=\"W3sieCI6MTMxMy43MDg1MzM2NTM4NDYyLCJ5IjozNDN9LHsieCI6MTM2Ni45Njg3NSwieSI6MzY4fSx7IngiOjEzNjYuOTY4NzUsInkiOjM5M30seyJ4IjoxMzY2Ljk2ODc1LCJ5Ijo0MTh9XQ==\" marker-end=\"url(#mx9uhx82zl8repbyx7e_flowchart-v2-pointEnd)\">\u003C\u002Fpath>\u003Cpath d=\"M1409.805,472L1416.416,476.167C1423.026,480.333,1436.248,488.667,1442.858,496.333C1449.469,504,1449.469,511,1449.469,514.5L1449.469,518\" id=\"L_AUTH_LIMIT_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_AUTH_LIMIT_0\" data-points=\"W3sieCI6MTQwOS44MDUyODg0NjE1Mzg2LCJ5Ijo0NzJ9LHsieCI6MTQ0OS40Njg3NSwieSI6NDk3fSx7IngiOjE0NDkuNDY4NzUsInkiOjUyMn1d\" marker-end=\"url(#mx9uhx82zl8repbyx7e_flowchart-v2-pointEnd)\">\u003C\u002Fpath>\u003Cpath d=\"M1449.469,576L1449.469,582.167C1449.469,588.333,1449.469,600.667,1449.469,613C1449.469,625.333,1449.469,637.667,1449.469,647.333C1449.469,657,1449.469,664,1449.469,667.5L1449.469,671\" id=\"L_LIMIT_ROUTER_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_LIMIT_ROUTER_0\" data-points=\"W3sieCI6MTQ0OS40Njg3NSwieSI6NTc2fSx7IngiOjE0NDkuNDY4NzUsInkiOjYxM30seyJ4IjoxNDQ5LjQ2ODc1LCJ5Ijo2NTB9LHsieCI6MTQ0OS40Njg3NSwieSI6Njc1fV0=\" marker-end=\"url(#mx9uhx82zl8repbyx7e_flowchart-v2-pointEnd)\">\u003C\u002Fpath>\u003Cpath d=\"M1449.469,753L1449.469,757.167C1449.469,761.333,1449.469,769.667,1449.469,778C1449.469,786.333,1449.469,794.667,1449.469,802.333C1449.469,810,1449.469,817,1449.469,820.5L1449.469,824\" id=\"L_ROUTER_SDK_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_ROUTER_SDK_0\" data-points=\"W3sieCI6MTQ0OS40Njg3NSwieSI6NzUzfSx7IngiOjE0NDkuNDY4NzUsInkiOjc3OH0seyJ4IjoxNDQ5LjQ2ODc1LCJ5Ijo4MDN9LHsieCI6MTQ0OS40Njg3NSwieSI6ODI4fV0=\" marker-end=\"url(#mx9uhx82zl8repbyx7e_flowchart-v2-pointEnd)\">\u003C\u002Fpath>\u003Cpath d=\"M1449.469,906L1449.469,910.167C1449.469,914.333,1449.469,922.667,1449.469,931C1449.469,939.333,1449.469,947.667,1449.469,955.333C1449.469,963,1449.469,970,1449.469,973.5L1449.469,977\" id=\"L_SDK_TRANS_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_SDK_TRANS_0\" data-points=\"W3sieCI6MTQ0OS40Njg3NSwieSI6OTA2fSx7IngiOjE0NDkuNDY4NzUsInkiOjkzMX0seyJ4IjoxNDQ5LjQ2ODc1LCJ5Ijo5NTZ9LHsieCI6MTQ0OS40Njg3NSwieSI6OTgxfV0=\" marker-end=\"url(#mx9uhx82zl8repbyx7e_flowchart-v2-pointEnd)\">\u003C\u002Fpath>\u003Cpath d=\"M1449.469,1059L1449.469,1063.167C1449.469,1067.333,1449.469,1075.667,1449.469,1084C1449.469,1092.333,1449.469,1100.667,1449.469,1108.333C1449.469,1116,1449.469,1123,1449.469,1126.5L1449.469,1130\" id=\"L_TRANS_PROVIDERS_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_TRANS_PROVIDERS_0\" data-points=\"W3sieCI6MTQ0OS40Njg3NSwieSI6MTA1OX0seyJ4IjoxNDQ5LjQ2ODc1LCJ5IjoxMDg0fSx7IngiOjE0NDkuNDY4NzUsInkiOjExMDl9LHsieCI6MTQ0OS40Njg3NSwieSI6MTEzNH1d\" marker-end=\"url(#mx9uhx82zl8repbyx7e_flowchart-v2-pointEnd)\">\u003C\u002Fpath>\u003Cpath d=\"M131.755,472L131.755,476.167C131.755,480.333,131.755,488.667,131.755,496.333C131.755,504,131.755,511,131.755,514.5L131.755,518\" id=\"L_UI_API_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_UI_API_0\" data-points=\"W3sieCI6MTMxLjc1NTIxMDg3NjQ2NDg0LCJ5Ijo0NzJ9LHsieCI6MTMxLjc1NTIxMDg3NjQ2NDg0LCJ5Ijo0OTd9LHsieCI6MTMxLjc1NTIxMDg3NjQ2NDg0LCJ5Ijo1MjJ9XQ==\" marker-end=\"url(#mx9uhx82zl8repbyx7e_flowchart-v2-pointEnd)\">\u003C\u002Fpath>\u003Cpath d=\"M183.697,576L195.561,582.167C207.424,588.333,231.151,600.667,243.014,613C254.878,625.333,254.878,637.667,254.878,647.333C254.878,657,254.878,664,254.878,667.5L254.878,671\" id=\"L_API_CFG_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_API_CFG_0\" data-points=\"W3sieCI6MTgzLjY5NzQ3MTA4MjIxMDU0LCJ5Ijo1NzZ9LHsieCI6MjU0Ljg3NzYwNTQzODIzMjQyLCJ5Ijo2MTN9LHsieCI6MjU0Ljg3NzYwNTQzODIzMjQyLCJ5Ijo2NTB9LHsieCI6MjU0Ljg3NzYwNTQzODIzMjQyLCJ5Ijo2NzV9XQ==\" marker-end=\"url(#mx9uhx82zl8repbyx7e_flowchart-v2-pointEnd)\">\u003C\u002Fpath>\u003Cpath d=\"M254.878,753L254.878,757.167C254.878,761.333,254.878,769.667,349.638,778C444.398,786.333,633.919,794.667,698.638,807.15C763.357,819.633,703.274,836.266,673.232,844.582L643.191,852.899\" id=\"L_CFG_DB_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_CFG_DB_0\" data-points=\"W3sieCI6MjU0Ljg3NzYwNTQzODIzMjQyLCJ5Ijo3NTN9LHsieCI6MjU0Ljg3NzYwNTQzODIzMjQyLCJ5Ijo3Nzh9LHsieCI6ODIzLjQ0MDEwNTQzODIzMjQsInkiOjgwM30seyJ4Ijo2MzkuMzM1OTQxMzE0Njk3MywieSI6ODUzLjk2NTg0NTkyMTE5NX1d\" marker-end=\"url(#mx9uhx82zl8repbyx7e_flowchart-v2-pointEnd)\">\u003C\u002Fpath>\u003Cpath d=\"M1320.748,474.133L1314.702,477.944C1308.655,481.755,1296.562,489.378,1290.515,501.855C1284.469,514.333,1284.469,531.667,1284.469,551C1284.469,570.333,1284.469,591.667,1284.469,608.5C1284.469,625.333,1284.469,637.667,1284.469,654.5C1284.469,671.333,1284.469,692.667,1284.469,714C1284.469,735.333,1284.469,756.667,1284.469,771.5C1284.469,786.333,1284.469,794.667,1224.609,807.955C1164.75,821.243,1045.03,839.487,985.171,848.609L925.311,857.73\" id=\"L_AUTH_REDIS_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_AUTH_REDIS_0\" data-points=\"W3sieCI6MTMyNC4xMzIyMTE1Mzg0NjE0LCJ5Ijo0NzJ9LHsieCI6MTI4NC40Njg3NSwieSI6NDk3fSx7IngiOjEyODQuNDY4NzUsInkiOjU0OX0seyJ4IjoxMjg0LjQ2ODc1LCJ5Ijo2MTN9LHsieCI6MTI4NC40Njg3NSwieSI6NjUwfSx7IngiOjEyODQuNDY4NzUsInkiOjcxNH0seyJ4IjoxMjg0LjQ2ODc1LCJ5Ijo3Nzh9LHsieCI6MTI4NC40Njg3NSwieSI6ODAzfSx7IngiOjkyMS4zNTY3NzMzNzY0NjQ4LCJ5Ijo4NTguMzMzMDY0NTg4NjYwNH1d\" marker-start=\"url(#mx9uhx82zl8repbyx7e_flowchart-v2-pointStart)\" marker-end=\"url(#mx9uhx82zl8repbyx7e_flowchart-v2-pointEnd)\">\u003C\u002Fpath>\u003Cpath d=\"M1296.969,470.544L1284.885,474.953C1272.802,479.363,1248.635,488.181,1236.552,501.257C1224.469,514.333,1224.469,531.667,1224.469,551C1224.469,570.333,1224.469,591.667,1224.469,608.5C1224.469,625.333,1224.469,637.667,1224.469,654.5C1224.469,671.333,1224.469,692.667,1224.469,714C1224.469,735.333,1224.469,756.667,1224.469,771.5C1224.469,786.333,1224.469,794.667,1127.61,808.638C1030.751,822.61,837.033,842.221,740.174,852.026L643.316,861.831\" id=\"L_AUTH_DB_0\" class=\"edge-thickness-normal edge-pattern-dotted edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_AUTH_DB_0\" data-points=\"W3sieCI6MTI5Ni45Njg3NSwieSI6NDcwLjU0Mzg1OTY0OTEyMjh9LHsieCI6MTIyNC40Njg3NSwieSI6NDk3fSx7IngiOjEyMjQuNDY4NzUsInkiOjU0OX0seyJ4IjoxMjI0LjQ2ODc1LCJ5Ijo2MTN9LHsieCI6MTIyNC40Njg3NSwieSI6NjUwfSx7IngiOjEyMjQuNDY4NzUsInkiOjcxNH0seyJ4IjoxMjI0LjQ2ODc1LCJ5Ijo3Nzh9LHsieCI6MTIyNC40Njg3NSwieSI6ODAzfSx7IngiOjYzOS4zMzU5NDEzMTQ2OTczLCJ5Ijo4NjIuMjMzNjk3MzMyNzY1fV0=\" marker-end=\"url(#mx9uhx82zl8repbyx7e_flowchart-v2-pointEnd)\">\u003C\u002Fpath>\u003Cpath d=\"M1326.84,754.247L1314.778,758.206C1302.716,762.165,1278.593,770.082,1266.531,778.208C1254.469,786.333,1254.469,794.667,1199.608,807.836C1144.747,821.006,1035.026,839.012,980.165,848.015L925.304,857.019\" id=\"L_ROUTER_REDIS_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_ROUTER_REDIS_0\" data-points=\"W3sieCI6MTMzMC42NDA2MjUsInkiOjc1M30seyJ4IjoxMjU0LjQ2ODc1LCJ5Ijo3Nzh9LHsieCI6MTI1NC40Njg3NSwieSI6ODAzfSx7IngiOjkyMS4zNTY3NzMzNzY0NjQ4LCJ5Ijo4NTcuNjY2MzU0OTg1NzEwOH1d\" marker-start=\"url(#mx9uhx82zl8repbyx7e_flowchart-v2-pointStart)\" marker-end=\"url(#mx9uhx82zl8repbyx7e_flowchart-v2-pointEnd)\">\u003C\u002Fpath>\u003Cpath d=\"M1198.18,343L1189.228,347.167C1180.276,351.333,1162.372,359.667,1153.421,368C1144.469,376.333,1144.469,384.667,1144.469,397.5C1144.469,410.333,1144.469,427.667,1144.469,445C1144.469,462.333,1144.469,479.667,1144.469,497C1144.469,514.333,1144.469,531.667,1144.469,551C1144.469,570.333,1144.469,591.667,1144.469,608.5C1144.469,625.333,1144.469,637.667,1072.657,652.156C1000.846,666.645,857.224,683.291,785.412,691.613L713.601,699.936\" id=\"L_GW_LOG_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_GW_LOG_0\" data-points=\"W3sieCI6MTE5OC4xNzk2ODc1LCJ5IjozNDN9LHsieCI6MTE0NC40Njg3NSwieSI6MzY4fSx7IngiOjExNDQuNDY4NzUsInkiOjM5M30seyJ4IjoxMTQ0LjQ2ODc1LCJ5Ijo0NDV9LHsieCI6MTE0NC40Njg3NSwieSI6NDk3fSx7IngiOjExNDQuNDY4NzUsInkiOjU0OX0seyJ4IjoxMTQ0LjQ2ODc1LCJ5Ijo2MTN9LHsieCI6MTE0NC40Njg3NSwieSI6NjUwfSx7IngiOjcwOS42Mjc2MDU0MzgyMzI0LCJ5Ijo3MDAuMzk2NjMwOTY3ODIyNX1d\" marker-end=\"url(#mx9uhx82zl8repbyx7e_flowchart-v2-pointEnd)\">\u003C\u002Fpath>\u003Cpath d=\"M592.253,741L592.253,747.167C592.253,753.333,592.253,765.667,592.253,776C592.253,786.333,592.253,794.667,592.253,802.899C592.253,811.131,592.253,819.261,592.253,823.326L592.253,827.392\" id=\"L_LOG_DB_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_LOG_DB_0\" data-points=\"W3sieCI6NTkyLjI1MjYwNTQzODIzMjQsInkiOjc0MX0seyJ4Ijo1OTIuMjUyNjA1NDM4MjMyNCwieSI6Nzc4fSx7IngiOjU5Mi4yNTI2MDU0MzgyMzI0LCJ5Ijo4MDN9LHsieCI6NTkyLjI1MjYwNTQzODIzMjQsInkiOjgzMS4zOTE1NDQzNDIwNDF9XQ==\" marker-end=\"url(#mx9uhx82zl8repbyx7e_flowchart-v2-pointEnd)\">\u003C\u002Fpath>\u003Cpath d=\"M1208.564,343L1201.215,347.167C1193.866,351.333,1179.167,359.667,1171.818,368C1164.469,376.333,1164.469,384.667,1164.469,397.5C1164.469,410.333,1164.469,427.667,1164.469,445C1164.469,462.333,1164.469,479.667,1164.469,497C1164.469,514.333,1164.469,531.667,1164.469,551C1164.469,570.333,1164.469,591.667,1164.469,608.5C1164.469,625.333,1164.469,637.667,1140.978,649.303C1117.487,660.94,1070.505,671.881,1047.014,677.351L1023.523,682.821\" id=\"L_GW_OBS_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_GW_OBS_0\" data-points=\"W3sieCI6MTIwOC41NjQzMDI4ODQ2MTU1LCJ5IjozNDN9LHsieCI6MTE2NC40Njg3NSwieSI6MzY4fSx7IngiOjExNjQuNDY4NzUsInkiOjM5M30seyJ4IjoxMTY0LjQ2ODc1LCJ5Ijo0NDV9LHsieCI6MTE2NC40Njg3NSwieSI6NDk3fSx7IngiOjExNjQuNDY4NzUsInkiOjU0OX0seyJ4IjoxMTY0LjQ2ODc1LCJ5Ijo2MTN9LHsieCI6MTE2NC40Njg3NSwieSI6NjUwfSx7IngiOjEwMTkuNjI3NjA1NDM4MjMyNCwieSI6NjgzLjcyNzk2NzcyMDE2NzN9XQ==\" marker-end=\"url(#mx9uhx82zl8repbyx7e_flowchart-v2-pointEnd)\">\u003C\u002Fpath>\u003Cpath d=\"M111.898,579.347L108.228,584.956C104.558,590.565,97.218,601.782,93.548,613.558C89.878,625.333,89.878,637.667,89.878,654.5C89.878,671.333,89.878,692.667,89.878,714C89.878,735.333,89.878,756.667,160.909,771.5C231.94,786.333,374.003,794.667,450.2,804.1C526.397,813.534,536.73,824.068,541.896,829.335L547.062,834.602\" id=\"L_API_DB_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_API_DB_0\" data-points=\"W3sieCI6MTE0LjA4ODA5NjA4MjIxMDU0LCJ5Ijo1NzZ9LHsieCI6ODkuODc3NjA1NDM4MjMyNDIsInkiOjYxM30seyJ4Ijo4OS44Nzc2MDU0MzgyMzI0MiwieSI6NjUwfSx7IngiOjg5Ljg3NzYwNTQzODIzMjQyLCJ5Ijo3MTR9LHsieCI6ODkuODc3NjA1NDM4MjMyNDIsInkiOjc3OH0seyJ4Ijo1MTYuMDY1MTA1NDM4MjMyNCwieSI6ODAzfSx7IngiOjU0OS44NjMyNDI2OTY5NzA3LCJ5Ijo4MzcuNDU3NjcyNTY5MzcwN31d\" marker-start=\"url(#mx9uhx82zl8repbyx7e_flowchart-v2-pointStart)\" marker-end=\"url(#mx9uhx82zl8repbyx7e_flowchart-v2-pointEnd)\">\u003C\u002Fpath>\u003C\u002Fg>\u003Cg class=\"edgeLabels\">\u003Cg class=\"edgeLabel\">\u003Cg class=\"label\" data-id=\"L_C_EDGE_0\" transform=\"translate(0, 0)\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"edgeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"edgeLabel\">\u003Cg class=\"label\" data-id=\"L_EDGE_GW_0\" transform=\"translate(0, 0)\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"edgeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"edgeLabel\">\u003Cg class=\"label\" data-id=\"L_GW_AUTH_0\" transform=\"translate(0, 0)\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"edgeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"edgeLabel\">\u003Cg class=\"label\" data-id=\"L_AUTH_LIMIT_0\" transform=\"translate(0, 0)\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"edgeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"edgeLabel\">\u003Cg class=\"label\" data-id=\"L_LIMIT_ROUTER_0\" transform=\"translate(0, 0)\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"edgeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"edgeLabel\">\u003Cg class=\"label\" data-id=\"L_ROUTER_SDK_0\" transform=\"translate(0, 0)\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"edgeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"edgeLabel\">\u003Cg class=\"label\" data-id=\"L_SDK_TRANS_0\" transform=\"translate(0, 0)\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"edgeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"edgeLabel\">\u003Cg class=\"label\" data-id=\"L_TRANS_PROVIDERS_0\" transform=\"translate(0, 0)\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"edgeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"edgeLabel\">\u003Cg class=\"label\" data-id=\"L_UI_API_0\" transform=\"translate(0, 0)\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"edgeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"edgeLabel\">\u003Cg class=\"label\" data-id=\"L_API_CFG_0\" transform=\"translate(0, 0)\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"edgeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"edgeLabel\">\u003Cg class=\"label\" data-id=\"L_CFG_DB_0\" transform=\"translate(0, 0)\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"edgeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"edgeLabel\">\u003Cg class=\"label\" data-id=\"L_AUTH_REDIS_0\" transform=\"translate(0, 0)\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"edgeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"edgeLabel\" transform=\"translate(1224.46875, 613)\">\u003Cg class=\"label\" data-id=\"L_AUTH_DB_0\" transform=\"translate(-40, -12)\">\u003CforeignObject width=\"80\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"edgeLabel\">\u003Cp>缓存未命中\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"edgeLabel\">\u003Cg class=\"label\" data-id=\"L_ROUTER_REDIS_0\" transform=\"translate(0, 0)\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"edgeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"edgeLabel\">\u003Cg class=\"label\" data-id=\"L_GW_LOG_0\" transform=\"translate(0, 0)\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"edgeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"edgeLabel\">\u003Cg class=\"label\" data-id=\"L_LOG_DB_0\" transform=\"translate(0, 0)\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"edgeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"edgeLabel\">\u003Cg class=\"label\" data-id=\"L_GW_OBS_0\" transform=\"translate(0, 0)\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"edgeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"edgeLabel\">\u003Cg class=\"label\" data-id=\"L_API_DB_0\" transform=\"translate(0, 0)\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"edgeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"nodes\">\u003Cg class=\"node default\" id=\"flowchart-C-0\" transform=\"translate(1256.1875, 47)\">\u003Crect class=\"basic label-container\" style=\"\" x=\"-130\" y=\"-39\" width=\"260\" height=\"78\">\u003C\u002Frect>\u003Cg class=\"label\" style=\"\" transform=\"translate(-100, -24)\">\u003Crect>\u003C\u002Frect>\u003CforeignObject width=\"200\" height=\"48\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table; white-space: break-spaces; line-height: 1.5; max-width: 200px; text-align: center; width: 200px;\">\u003Cspan class=\"nodeLabel\">\u003Cp>业务应用 \u002F Agent \u002F Harness \u002F SDK\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"node default\" id=\"flowchart-EDGE-1\" transform=\"translate(1256.1875, 175)\">\u003Crect class=\"basic label-container\" style=\"\" x=\"-130\" y=\"-39\" width=\"260\" height=\"78\">\u003C\u002Frect>\u003Cg class=\"label\" style=\"\" transform=\"translate(-100, -24)\">\u003Crect>\u003C\u002Frect>\u003CforeignObject width=\"200\" height=\"48\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table; white-space: break-spaces; line-height: 1.5; max-width: 200px; text-align: center; width: 200px;\">\u003Cspan class=\"nodeLabel\">\u003Cp>Ingress \u002F Nginx \u002F TLS \u002F 网络策略\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"node default\" id=\"flowchart-GW-2\" transform=\"translate(1256.1875, 316)\">\u003Crect class=\"basic label-container\" style=\"\" x=\"-104.68229675292969\" y=\"-27\" width=\"209.36459350585938\" height=\"54\">\u003C\u002Frect>\u003Cg class=\"label\" style=\"\" transform=\"translate(-74.68229675292969, -12)\">\u003Crect>\u003C\u002Frect>\u003CforeignObject width=\"149.36459350585938\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"nodeLabel\">\u003Cp>LiteLLM Gateway API\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"node default\" id=\"flowchart-AUTH-3\" transform=\"translate(1366.96875, 445)\">\u003Crect class=\"basic label-container\" style=\"\" x=\"-70\" y=\"-27\" width=\"140\" height=\"54\">\u003C\u002Frect>\u003Cg class=\"label\" style=\"\" transform=\"translate(-40, -12)\">\u003Crect>\u003C\u002Frect>\u003CforeignObject width=\"80\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"nodeLabel\">\u003Cp>认证与授权\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"node default\" id=\"flowchart-LIMIT-4\" transform=\"translate(1449.46875, 549)\">\u003Crect class=\"basic label-container\" style=\"\" x=\"-109.46354675292969\" y=\"-27\" width=\"218.92709350585938\" height=\"54\">\u003C\u002Frect>\u003Cg class=\"label\" style=\"\" transform=\"translate(-79.46354675292969, -12)\">\u003Crect>\u003C\u002Frect>\u003CforeignObject width=\"158.92709350585938\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"nodeLabel\">\u003Cp>RPM \u002F TPM \u002F 并发限制\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"node default\" id=\"flowchart-ROUTER-5\" transform=\"translate(1449.46875, 714)\">\u003Crect class=\"basic label-container\" style=\"\" x=\"-130\" y=\"-39\" width=\"260\" height=\"78\">\u003C\u002Frect>\u003Cg class=\"label\" style=\"\" transform=\"translate(-100, -24)\">\u003Crect>\u003C\u002Frect>\u003CforeignObject width=\"200\" height=\"48\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table; white-space: break-spaces; line-height: 1.5; max-width: 200px; text-align: center; width: 200px;\">\u003Cspan class=\"nodeLabel\">\u003Cp>Router：选择、重试、Fallback、Cooldown\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"node default\" id=\"flowchart-SDK-6\" transform=\"translate(1449.46875, 867)\">\u003Crect class=\"basic label-container\" style=\"\" x=\"-130\" y=\"-39\" width=\"260\" height=\"78\">\u003C\u002Frect>\u003Cg class=\"label\" style=\"\" transform=\"translate(-100, -24)\">\u003Crect>\u003C\u002Frect>\u003CforeignObject width=\"200\" height=\"48\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table; white-space: break-spaces; line-height: 1.5; max-width: 200px; text-align: center; width: 200px;\">\u003Cspan class=\"nodeLabel\">\u003Cp>LiteLLM SDK \u002F Provider Adapter\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"node default\" id=\"flowchart-TRANS-7\" transform=\"translate(1449.46875, 1020)\">\u003Crect class=\"basic label-container\" style=\"\" x=\"-130\" y=\"-39\" width=\"260\" height=\"78\">\u003C\u002Frect>\u003Cg class=\"label\" style=\"\" transform=\"translate(-100, -24)\">\u003Crect>\u003C\u002Frect>\u003CforeignObject width=\"200\" height=\"48\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table; white-space: break-spaces; line-height: 1.5; max-width: 200px; text-align: center; width: 200px;\">\u003Cspan class=\"nodeLabel\">\u003Cp>协议转换 \u002F 参数映射 \u002F 流式转换\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"node default\" id=\"flowchart-UI-8\" transform=\"translate(131.75521087646484, 445)\">\u003Crect class=\"basic label-container\" style=\"\" x=\"-62.296875\" y=\"-27\" width=\"124.59375\" height=\"54\">\u003C\u002Frect>\u003Cg class=\"label\" style=\"\" transform=\"translate(-32.296875, -12)\">\u003Crect>\u003C\u002Frect>\u003CforeignObject width=\"64.59375\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"nodeLabel\">\u003Cp>Admin UI\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"node default\" id=\"flowchart-API-9\" transform=\"translate(131.75521087646484, 549)\">\u003Crect class=\"basic label-container\" style=\"\" x=\"-88.75521087646484\" y=\"-27\" width=\"177.5104217529297\" height=\"54\">\u003C\u002Frect>\u003Cg class=\"label\" style=\"\" transform=\"translate(-58.755210876464844, -12)\">\u003Crect>\u003C\u002Frect>\u003CforeignObject width=\"117.51042175292969\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"nodeLabel\">\u003Cp>Management API\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"node default\" id=\"flowchart-CFG-10\" transform=\"translate(254.87760543823242, 714)\">\u003Crect class=\"basic label-container\" style=\"\" x=\"-130\" y=\"-39\" width=\"260\" height=\"78\">\u003C\u002Frect>\u003Cg class=\"label\" style=\"\" transform=\"translate(-100, -24)\">\u003Crect>\u003C\u002Frect>\u003CforeignObject width=\"200\" height=\"48\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table; white-space: break-spaces; line-height: 1.5; max-width: 200px; text-align: center; width: 200px;\">\u003Cspan class=\"nodeLabel\">\u003Cp>模型 \u002F 凭证 \u002F Team \u002F User \u002F Virtual Key \u002F Budget\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"node default\" id=\"flowchart-DB-11\" transform=\"translate(592.2526054382324, 867)\">\u003Cpath d=\"M0,10.741445197822479 a47.083335876464844,10.741445197822479 0,0,0 94.16667175292969,0 a47.083335876464844,10.741445197822479 0,0,0 -94.16667175292969,0 l0,49.74144519782248 a47.083335876464844,10.741445197822479 0,0,0 94.16667175292969,0 l0,-49.74144519782248\" class=\"basic label-container\" style=\"\" transform=\"translate(-47.083335876464844, -35.612167796733715)\">\u003C\u002Fpath>\u003Cg class=\"label\" style=\"\" transform=\"translate(-39.583335876464844, -2)\">\u003Crect>\u003C\u002Frect>\u003CforeignObject width=\"79.16667175292969\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"nodeLabel\">\u003Cp>PostgreSQL\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"node default\" id=\"flowchart-REDIS-12\" transform=\"translate(864.4817733764648, 867)\">\u003Cpath d=\"M0,11.910994764397905 a56.875,11.910994764397905 0,0,0 113.75,0 a56.875,11.910994764397905 0,0,0 -113.75,0 l0,50.910994764397905 a56.875,11.910994764397905 0,0,0 113.75,0 l0,-50.910994764397905\" class=\"basic label-container\" style=\"\" transform=\"translate(-56.875, -37.366492146596855)\">\u003C\u002Fpath>\u003Cg class=\"label\" style=\"\" transform=\"translate(-49.375, -2)\">\u003Crect>\u003C\u002Frect>\u003CforeignObject width=\"98.75\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"nodeLabel\">\u003Cp>Redis \u002F Cache\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"node default\" id=\"flowchart-LOG-13\" transform=\"translate(592.2526054382324, 714)\">\u003Crect class=\"basic label-container\" style=\"\" x=\"-117.375\" y=\"-27\" width=\"234.75\" height=\"54\">\u003C\u002Frect>\u003Cg class=\"label\" style=\"\" transform=\"translate(-87.375, -12)\">\u003Crect>\u003C\u002Frect>\u003CforeignObject width=\"174.75\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"nodeLabel\">\u003Cp>异步日志 \u002F Spend Writer\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"node default\" id=\"flowchart-OBS-14\" transform=\"translate(889.6276054382324, 714)\">\u003Crect class=\"basic label-container\" style=\"\" x=\"-130\" y=\"-39\" width=\"260\" height=\"78\">\u003C\u002Frect>\u003Cg class=\"label\" style=\"\" transform=\"translate(-100, -24)\">\u003Crect>\u003C\u002Frect>\u003CforeignObject width=\"200\" height=\"48\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table; white-space: break-spaces; line-height: 1.5; max-width: 200px; text-align: center; width: 200px;\">\u003Cspan class=\"nodeLabel\">\u003Cp>Prometheus \u002F OpenTelemetry \u002F 回调平台\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"node default\" id=\"flowchart-PROVIDERS-15\" transform=\"translate(1449.46875, 1197)\">\u003Crect class=\"basic label-container\" style=\"\" x=\"-130\" y=\"-63\" width=\"260\" height=\"126\">\u003C\u002Frect>\u003Cg class=\"label\" style=\"\" transform=\"translate(-100, -48)\">\u003Crect>\u003C\u002Frect>\u003CforeignObject width=\"200\" height=\"96\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table; white-space: break-spaces; line-height: 1.5; max-width: 200px; text-align: center; width: 200px;\">\u003Cspan class=\"nodeLabel\">\u003Cp>OpenAI \u002F Anthropic \u002F DeepSeek \u002F Gemini \u002F Bedrock \u002F Azure \u002F Ollama \u002F vLLM 等\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003C\u002Fg>\u003C\u002Fg>\u003C\u002Fg>\u003C\u002Fsvg>\u003Cdiv class=\"md-editor-mermaid-action\">\u003Cspan class=\"md-editor-mermaid-copy\">\u003Csvg xmlns=\"http:\u002F\u002Fwww.w3.org\u002F2000\u002Fsvg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"lucide lucide-copy md-editor-icon\">\u003Crect width=\"14\" height=\"14\" x=\"8\" y=\"8\" rx=\"2\" ry=\"2\">\u003C\u002Frect>\u003Cpath d=\"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2\">\u003C\u002Fpath>\u003C\u002Fsvg>\u003C\u002Fspan>\u003Cspan class=\"md-editor-mermaid-zoom\">\u003Csvg xmlns=\"http:\u002F\u002Fwww.w3.org\u002F2000\u002Fsvg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"lucide lucide-pin-off md-editor-icon\">\u003Cpath d=\"M12 17v5\">\u003C\u002Fpath>\u003Cpath d=\"M15 9.34V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H7.89\">\u003C\u002Fpath>\u003Cpath d=\"m2 2 20 20\">\u003C\u002Fpath>\u003Cpath d=\"M9 9v1.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h11\">\u003C\u002Fpath>\u003C\u002Fsvg>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002Fp>\u003Chr data-line=\"58\">\n\u003Ch2 data-line=\"60\" id=\"1. 项目定位与边界\">1. 项目定位与边界\u003C\u002Fh2>\n\u003Ch3 data-line=\"62\" id=\"1.1 LiteLLM 解决什么问题\">1.1 LiteLLM 解决什么问题\u003C\u002Fh3>\n\u003Cp data-line=\"64\">不同模型厂商在以下方面存在差异：\u003C\u002Fp>\n\u003Cul data-line=\"66\">\n\u003Cli data-line=\"66\">API 路径和协议：Chat Completions、Messages、Responses、厂商原生 API。\u003C\u002Fli>\n\u003Cli data-line=\"67\">认证方式：Bearer API Key、云平台 IAM、OAuth、工作负载身份等。\u003C\u002Fli>\n\u003Cli data-line=\"68\">请求参数：模型名、采样参数、工具调用、多模态输入、结构化输出。\u003C\u002Fli>\n\u003Cli data-line=\"69\">响应结构：消息结构、Token Usage、Finish Reason、错误格式和流式事件。\u003C\u002Fli>\n\u003Cli data-line=\"70\">服务质量：限流、配额、超时、服务不可用、模型下线和区域差异。\u003C\u002Fli>\n\u003Cli data-line=\"71\">计费方式：输入\u002F输出 Token、缓存 Token、图像\u002F音频 Token、请求级费用和自定义价格。\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Cp data-line=\"73\">LiteLLM 将这些差异封装在统一调用接口和 Provider Adapter 后面，并在 Gateway 模式下增加企业级治理能力。\u003C\u002Fp>\n\u003Ch3 data-line=\"75\" id=\"1.2 LiteLLM 不是什么\">1.2 LiteLLM 不是什么\u003C\u002Fh3>\n\u003Ctable data-line=\"77\">\n\u003Cthead data-line=\"77\">\n\u003Ctr data-line=\"77\">\n\u003Cth>不应混淆的概念\u003C\u002Fth>\n\u003Cth>LiteLLM 的实际边界\u003C\u002Fth>\n\u003C\u002Ftr>\n\u003C\u002Fthead>\n\u003Ctbody data-line=\"79\">\n\u003Ctr data-line=\"79\">\n\u003Ctd>大模型本身\u003C\u002Ftd>\n\u003Ctd>不负责训练基础模型\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr data-line=\"80\">\n\u003Ctd>模型推理引擎\u003C\u002Ftd>\n\u003Ctd>通常转发到厂商 API 或自建推理服务；不等同于 vLLM\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr data-line=\"81\">\n\u003Ctd>Agent Harness\u003C\u002Ftd>\n\u003Ctd>不负责替代完整的 Agent 运行时、任务隔离和项目工作区\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr data-line=\"82\">\n\u003Ctd>企业业务系统\u003C\u002Ftd>\n\u003Ctd>不替代 SEABRID OS 的业务流程、组织和项目管理\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr data-line=\"83\">\n\u003Ctd>完整数据仓库\u003C\u002Ftd>\n\u003Ctd>Spend Logs 和 Usage 数据不等于企业级 BI 数仓\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr data-line=\"84\">\n\u003Ctd>身份源系统\u003C\u002Ftd>\n\u003Ctd>可管理网关用户和 Key，但企业主身份最好仍由统一 IAM 管理\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003C\u002Ftbody>\n\u003C\u002Ftable>\n\u003Ch3 data-line=\"86\" id=\"1.3 两种主要使用形态\">1.3 两种主要使用形态\u003C\u002Fh3>\n\u003Cp data-line=\"88\" class=\"md-editor-mermaid\" data-mermaid-theme=\"light\" data-closed=\"true\" data-processed=\"\" data-content=\"flowchart LR\n    subgraph SDK[&quot;Python SDK 模式&quot;]\n      A[&quot;Python 应用&quot;] --&gt; B[&quot;litellm.completion()&quot;]\n      B --&gt; C[&quot;Provider Adapter&quot;]\n      C --&gt; D[&quot;模型供应商&quot;]\n    end\n    subgraph Proxy[&quot;Proxy \u002F Gateway 模式&quot;]\n      E[&quot;任意语言应用&quot;] --&gt; F[&quot;HTTP API&quot;]\n      F --&gt; G[&quot;LiteLLM Proxy&quot;]\n      G --&gt; H[&quot;认证 \u002F 路由 \u002F 预算 \u002F 日志&quot;]\n      H --&gt; I[&quot;LiteLLM SDK \u002F Provider&quot;]\n      I --&gt; J[&quot;模型供应商&quot;]\n    end\">\u003Csvg id=\"mx9uhx86s2j7f1rz8y\" width=\"100%\" xmlns=\"http:\u002F\u002Fwww.w3.org\u002F2000\u002Fsvg\" xmlns:xlink=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxlink\" class=\"flowchart\" style=\"max-width: 328.09375px;\" viewBox=\"0 0 328.09375 1356\" role=\"graphics-document document\" aria-roledescription=\"flowchart-v2\">\u003Cstyle>#mx9uhx86s2j7f1rz8y{font-family:\"trebuchet ms\",verdana,arial,sans-serif;font-size:16px;fill:#333;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#mx9uhx86s2j7f1rz8y .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#mx9uhx86s2j7f1rz8y .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#mx9uhx86s2j7f1rz8y .error-icon{fill:#552222;}#mx9uhx86s2j7f1rz8y .error-text{fill:#552222;stroke:#552222;}#mx9uhx86s2j7f1rz8y .edge-thickness-normal{stroke-width:1px;}#mx9uhx86s2j7f1rz8y .edge-thickness-thick{stroke-width:3.5px;}#mx9uhx86s2j7f1rz8y .edge-pattern-solid{stroke-dasharray:0;}#mx9uhx86s2j7f1rz8y .edge-thickness-invisible{stroke-width:0;fill:none;}#mx9uhx86s2j7f1rz8y .edge-pattern-dashed{stroke-dasharray:3;}#mx9uhx86s2j7f1rz8y .edge-pattern-dotted{stroke-dasharray:2;}#mx9uhx86s2j7f1rz8y .marker{fill:#333333;stroke:#333333;}#mx9uhx86s2j7f1rz8y .marker.cross{stroke:#333333;}#mx9uhx86s2j7f1rz8y svg{font-family:\"trebuchet ms\",verdana,arial,sans-serif;font-size:16px;}#mx9uhx86s2j7f1rz8y p{margin:0;}#mx9uhx86s2j7f1rz8y .label{font-family:\"trebuchet ms\",verdana,arial,sans-serif;color:#333;}#mx9uhx86s2j7f1rz8y .cluster-label text{fill:#333;}#mx9uhx86s2j7f1rz8y .cluster-label span{color:#333;}#mx9uhx86s2j7f1rz8y .cluster-label span p{background-color:transparent;}#mx9uhx86s2j7f1rz8y .label text,#mx9uhx86s2j7f1rz8y span{fill:#333;color:#333;}#mx9uhx86s2j7f1rz8y .node rect,#mx9uhx86s2j7f1rz8y .node circle,#mx9uhx86s2j7f1rz8y .node ellipse,#mx9uhx86s2j7f1rz8y .node polygon,#mx9uhx86s2j7f1rz8y .node path{fill:#ECECFF;stroke:#9370DB;stroke-width:1px;}#mx9uhx86s2j7f1rz8y .rough-node .label text,#mx9uhx86s2j7f1rz8y .node .label text,#mx9uhx86s2j7f1rz8y .image-shape .label,#mx9uhx86s2j7f1rz8y .icon-shape .label{text-anchor:middle;}#mx9uhx86s2j7f1rz8y .node .katex path{fill:#000;stroke:#000;stroke-width:1px;}#mx9uhx86s2j7f1rz8y .rough-node .label,#mx9uhx86s2j7f1rz8y .node .label,#mx9uhx86s2j7f1rz8y .image-shape .label,#mx9uhx86s2j7f1rz8y .icon-shape .label{text-align:center;}#mx9uhx86s2j7f1rz8y .node.clickable{cursor:pointer;}#mx9uhx86s2j7f1rz8y .root .anchor path{fill:#333333!important;stroke-width:0;stroke:#333333;}#mx9uhx86s2j7f1rz8y .arrowheadPath{fill:#333333;}#mx9uhx86s2j7f1rz8y .edgePath .path{stroke:#333333;stroke-width:2.0px;}#mx9uhx86s2j7f1rz8y .flowchart-link{stroke:#333333;fill:none;}#mx9uhx86s2j7f1rz8y .edgeLabel{background-color:rgba(232,232,232, 0.8);text-align:center;}#mx9uhx86s2j7f1rz8y .edgeLabel p{background-color:rgba(232,232,232, 0.8);}#mx9uhx86s2j7f1rz8y .edgeLabel rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mx9uhx86s2j7f1rz8y .labelBkg{background-color:rgba(232, 232, 232, 0.5);}#mx9uhx86s2j7f1rz8y .cluster rect{fill:#ffffde;stroke:#aaaa33;stroke-width:1px;}#mx9uhx86s2j7f1rz8y .cluster text{fill:#333;}#mx9uhx86s2j7f1rz8y .cluster span{color:#333;}#mx9uhx86s2j7f1rz8y div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:\"trebuchet ms\",verdana,arial,sans-serif;font-size:12px;background:hsl(80, 100%, 96.2745098039%);border:1px solid #aaaa33;border-radius:2px;pointer-events:none;z-index:100;}#mx9uhx86s2j7f1rz8y .flowchartTitleText{text-anchor:middle;font-size:18px;fill:#333;}#mx9uhx86s2j7f1rz8y rect.text{fill:none;stroke-width:0;}#mx9uhx86s2j7f1rz8y .icon-shape,#mx9uhx86s2j7f1rz8y .image-shape{background-color:rgba(232,232,232, 0.8);text-align:center;}#mx9uhx86s2j7f1rz8y .icon-shape p,#mx9uhx86s2j7f1rz8y .image-shape p{background-color:rgba(232,232,232, 0.8);padding:2px;}#mx9uhx86s2j7f1rz8y .icon-shape rect,#mx9uhx86s2j7f1rz8y .image-shape rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mx9uhx86s2j7f1rz8y .label-icon{display:inline-block;height:1em;overflow:visible;vertical-align:-0.125em;}#mx9uhx86s2j7f1rz8y .node .label-icon path{fill:currentColor;stroke:revert;stroke-width:revert;}#mx9uhx86s2j7f1rz8y :root{--mermaid-font-family:\"trebuchet ms\",verdana,arial,sans-serif;}\u003C\u002Fstyle>\u003Cg>\u003Cmarker id=\"mx9uhx86s2j7f1rz8y_flowchart-v2-pointEnd\" class=\"marker flowchart-v2\" viewBox=\"0 0 10 10\" refX=\"5\" refY=\"5\" markerUnits=\"userSpaceOnUse\" markerWidth=\"8\" markerHeight=\"8\" orient=\"auto\">\u003Cpath d=\"M 0 0 L 10 5 L 0 10 z\" class=\"arrowMarkerPath\" style=\"stroke-width: 1; stroke-dasharray: 1, 0;\">\u003C\u002Fpath>\u003C\u002Fmarker>\u003Cmarker id=\"mx9uhx86s2j7f1rz8y_flowchart-v2-pointStart\" class=\"marker flowchart-v2\" viewBox=\"0 0 10 10\" refX=\"4.5\" refY=\"5\" markerUnits=\"userSpaceOnUse\" markerWidth=\"8\" markerHeight=\"8\" orient=\"auto\">\u003Cpath d=\"M 0 5 L 10 10 L 10 0 z\" class=\"arrowMarkerPath\" style=\"stroke-width: 1; stroke-dasharray: 1, 0;\">\u003C\u002Fpath>\u003C\u002Fmarker>\u003Cmarker id=\"mx9uhx86s2j7f1rz8y_flowchart-v2-circleEnd\" class=\"marker flowchart-v2\" viewBox=\"0 0 10 10\" refX=\"11\" refY=\"5\" markerUnits=\"userSpaceOnUse\" markerWidth=\"11\" markerHeight=\"11\" orient=\"auto\">\u003Ccircle cx=\"5\" cy=\"5\" r=\"5\" class=\"arrowMarkerPath\" style=\"stroke-width: 1; stroke-dasharray: 1, 0;\">\u003C\u002Fcircle>\u003C\u002Fmarker>\u003Cmarker id=\"mx9uhx86s2j7f1rz8y_flowchart-v2-circleStart\" class=\"marker flowchart-v2\" viewBox=\"0 0 10 10\" refX=\"-1\" refY=\"5\" markerUnits=\"userSpaceOnUse\" markerWidth=\"11\" markerHeight=\"11\" orient=\"auto\">\u003Ccircle cx=\"5\" cy=\"5\" r=\"5\" class=\"arrowMarkerPath\" style=\"stroke-width: 1; stroke-dasharray: 1, 0;\">\u003C\u002Fcircle>\u003C\u002Fmarker>\u003Cmarker id=\"mx9uhx86s2j7f1rz8y_flowchart-v2-crossEnd\" class=\"marker cross flowchart-v2\" viewBox=\"0 0 11 11\" refX=\"12\" refY=\"5.2\" markerUnits=\"userSpaceOnUse\" markerWidth=\"11\" markerHeight=\"11\" orient=\"auto\">\u003Cpath d=\"M 1,1 l 9,9 M 10,1 l -9,9\" class=\"arrowMarkerPath\" style=\"stroke-width: 2; stroke-dasharray: 1, 0;\">\u003C\u002Fpath>\u003C\u002Fmarker>\u003Cmarker id=\"mx9uhx86s2j7f1rz8y_flowchart-v2-crossStart\" class=\"marker cross flowchart-v2\" viewBox=\"0 0 11 11\" refX=\"-1\" refY=\"5.2\" markerUnits=\"userSpaceOnUse\" markerWidth=\"11\" markerHeight=\"11\" orient=\"auto\">\u003Cpath d=\"M 1,1 l 9,9 M 10,1 l -9,9\" class=\"arrowMarkerPath\" style=\"stroke-width: 2; stroke-dasharray: 1, 0;\">\u003C\u002Fpath>\u003C\u002Fmarker>\u003Cg class=\"root\">\u003Cg class=\"clusters\">\u003C\u002Fg>\u003Cg class=\"edgePaths\">\u003C\u002Fg>\u003Cg class=\"edgeLabels\">\u003C\u002Fg>\u003Cg class=\"nodes\">\u003Cg class=\"root\" transform=\"translate(0, 0)\">\u003Cg class=\"clusters\">\u003Cg class=\"cluster\" id=\"Proxy\" data-look=\"classic\">\u003Crect style=\"\" x=\"8\" y=\"8\" width=\"312.09375\" height=\"774\">\u003C\u002Frect>\u003Cg class=\"cluster-label\" transform=\"translate(85.92707824707031, 8)\">\u003CforeignObject width=\"156.23959350585938\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"nodeLabel\">\u003Cp>Proxy \u002F Gateway 模式\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"edgePaths\">\u003Cpath d=\"M164.047,99.5L164.047,105.75C164.047,112,164.047,124.5,164.047,136.333C164.047,148.167,164.047,159.333,164.047,164.917L164.047,170.5\" id=\"L_E_F_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_E_F_0\" data-points=\"W3sieCI6MTY0LjA0Njg3NSwieSI6OTkuNX0seyJ4IjoxNjQuMDQ2ODc1LCJ5IjoxMzd9LHsieCI6MTY0LjA0Njg3NSwieSI6MTc0LjV9XQ==\" marker-end=\"url(#mx9uhx86s2j7f1rz8y_flowchart-v2-pointEnd)\">\u003C\u002Fpath>\u003Cpath d=\"M164.047,228.5L164.047,234.75C164.047,241,164.047,253.5,164.047,265.333C164.047,277.167,164.047,288.333,164.047,293.917L164.047,299.5\" id=\"L_F_G_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_F_G_0\" data-points=\"W3sieCI6MTY0LjA0Njg3NSwieSI6MjI4LjV9LHsieCI6MTY0LjA0Njg3NSwieSI6MjY2fSx7IngiOjE2NC4wNDY4NzUsInkiOjMwMy41fV0=\" marker-end=\"url(#mx9uhx86s2j7f1rz8y_flowchart-v2-pointEnd)\">\u003C\u002Fpath>\u003Cpath d=\"M164.047,357.5L164.047,363.75C164.047,370,164.047,382.5,164.047,394.333C164.047,406.167,164.047,417.333,164.047,422.917L164.047,428.5\" id=\"L_G_H_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_G_H_0\" data-points=\"W3sieCI6MTY0LjA0Njg3NSwieSI6MzU3LjV9LHsieCI6MTY0LjA0Njg3NSwieSI6Mzk1fSx7IngiOjE2NC4wNDY4NzUsInkiOjQzMi41fV0=\" marker-end=\"url(#mx9uhx86s2j7f1rz8y_flowchart-v2-pointEnd)\">\u003C\u002Fpath>\u003Cpath d=\"M164.047,486.5L164.047,492.75C164.047,499,164.047,511.5,164.047,523.333C164.047,535.167,164.047,546.333,164.047,551.917L164.047,557.5\" id=\"L_H_I_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_H_I_0\" data-points=\"W3sieCI6MTY0LjA0Njg3NSwieSI6NDg2LjV9LHsieCI6MTY0LjA0Njg3NSwieSI6NTI0fSx7IngiOjE2NC4wNDY4NzUsInkiOjU2MS41fV0=\" marker-end=\"url(#mx9uhx86s2j7f1rz8y_flowchart-v2-pointEnd)\">\u003C\u002Fpath>\u003Cpath d=\"M164.047,615.5L164.047,621.75C164.047,628,164.047,640.5,164.047,652.333C164.047,664.167,164.047,675.333,164.047,680.917L164.047,686.5\" id=\"L_I_J_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_I_J_0\" data-points=\"W3sieCI6MTY0LjA0Njg3NSwieSI6NjE1LjV9LHsieCI6MTY0LjA0Njg3NSwieSI6NjUzfSx7IngiOjE2NC4wNDY4NzUsInkiOjY5MC41fV0=\" marker-end=\"url(#mx9uhx86s2j7f1rz8y_flowchart-v2-pointEnd)\">\u003C\u002Fpath>\u003C\u002Fg>\u003Cg class=\"edgeLabels\">\u003Cg class=\"edgeLabel\">\u003Cg class=\"label\" data-id=\"L_E_F_0\" transform=\"translate(0, 0)\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"edgeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"edgeLabel\">\u003Cg class=\"label\" data-id=\"L_F_G_0\" transform=\"translate(0, 0)\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"edgeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"edgeLabel\">\u003Cg class=\"label\" data-id=\"L_G_H_0\" transform=\"translate(0, 0)\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"edgeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"edgeLabel\">\u003Cg class=\"label\" data-id=\"L_H_I_0\" transform=\"translate(0, 0)\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"edgeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"edgeLabel\">\u003Cg class=\"label\" data-id=\"L_I_J_0\" transform=\"translate(0, 0)\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"edgeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"nodes\">\u003Cg class=\"node default\" id=\"flowchart-E-6\" transform=\"translate(164.046875, 72.5)\">\u003Crect class=\"basic label-container\" style=\"\" x=\"-78\" y=\"-27\" width=\"156\" height=\"54\">\u003C\u002Frect>\u003Cg class=\"label\" style=\"\" transform=\"translate(-48, -12)\">\u003Crect>\u003C\u002Frect>\u003CforeignObject width=\"96\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"nodeLabel\">\u003Cp>任意语言应用\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"node default\" id=\"flowchart-F-7\" transform=\"translate(164.046875, 201.5)\">\u003Crect class=\"basic label-container\" style=\"\" x=\"-62.21875\" y=\"-27\" width=\"124.4375\" height=\"54\">\u003C\u002Frect>\u003Cg class=\"label\" style=\"\" transform=\"translate(-32.21875, -12)\">\u003Crect>\u003C\u002Frect>\u003CforeignObject width=\"64.4375\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"nodeLabel\">\u003Cp>HTTP API\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"node default\" id=\"flowchart-G-9\" transform=\"translate(164.046875, 330.5)\">\u003Crect class=\"basic label-container\" style=\"\" x=\"-79.5\" y=\"-27\" width=\"159\" height=\"54\">\u003C\u002Frect>\u003Cg class=\"label\" style=\"\" transform=\"translate(-49.5, -12)\">\u003Crect>\u003C\u002Frect>\u003CforeignObject width=\"99\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"nodeLabel\">\u003Cp>LiteLLM Proxy\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"node default\" id=\"flowchart-H-11\" transform=\"translate(164.046875, 459.5)\">\u003Crect class=\"basic label-container\" style=\"\" x=\"-121.046875\" y=\"-27\" width=\"242.09375\" height=\"54\">\u003C\u002Frect>\u003Cg class=\"label\" style=\"\" transform=\"translate(-91.046875, -12)\">\u003Crect>\u003C\u002Frect>\u003CforeignObject width=\"182.09375\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"nodeLabel\">\u003Cp>认证 \u002F 路由 \u002F 预算 \u002F 日志\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"node default\" id=\"flowchart-I-13\" transform=\"translate(164.046875, 588.5)\">\u003Crect class=\"basic label-container\" style=\"\" x=\"-112.046875\" y=\"-27\" width=\"224.09375\" height=\"54\">\u003C\u002Frect>\u003Cg class=\"label\" style=\"\" transform=\"translate(-82.046875, -12)\">\u003Crect>\u003C\u002Frect>\u003CforeignObject width=\"164.09375\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"nodeLabel\">\u003Cp>LiteLLM SDK \u002F Provider\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"node default\" id=\"flowchart-J-15\" transform=\"translate(164.046875, 717.5)\">\u003Crect class=\"basic label-container\" style=\"\" x=\"-70\" y=\"-27\" width=\"140\" height=\"54\">\u003C\u002Frect>\u003Cg class=\"label\" style=\"\" transform=\"translate(-40, -12)\">\u003Crect>\u003C\u002Frect>\u003CforeignObject width=\"80\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"nodeLabel\">\u003Cp>模型供应商\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"root\" transform=\"translate(18.505203247070312, 824)\">\u003Cg class=\"clusters\">\u003Cg class=\"cluster\" id=\"SDK\" data-look=\"classic\">\u003Crect style=\"\" x=\"8\" y=\"8\" width=\"275.0833282470703\" height=\"516\">\u003C\u002Frect>\u003Cg class=\"cluster-label\" transform=\"translate(86.74478912353516, 8)\">\u003CforeignObject width=\"117.59375\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"nodeLabel\">\u003Cp>Python SDK 模式\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"edgePaths\">\u003Cpath d=\"M145.542,99.5L145.542,105.75C145.542,112,145.542,124.5,145.542,136.333C145.542,148.167,145.542,159.333,145.542,164.917L145.542,170.5\" id=\"L_A_B_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_A_B_0\" data-points=\"W3sieCI6MTQ1LjU0MTY2NDEyMzUzNTE2LCJ5Ijo5OS41fSx7IngiOjE0NS41NDE2NjQxMjM1MzUxNiwieSI6MTM3fSx7IngiOjE0NS41NDE2NjQxMjM1MzUxNiwieSI6MTc0LjV9XQ==\" marker-end=\"url(#mx9uhx86s2j7f1rz8y_flowchart-v2-pointEnd)\">\u003C\u002Fpath>\u003Cpath d=\"M145.542,228.5L145.542,234.75C145.542,241,145.542,253.5,145.542,265.333C145.542,277.167,145.542,288.333,145.542,293.917L145.542,299.5\" id=\"L_B_C_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_B_C_0\" data-points=\"W3sieCI6MTQ1LjU0MTY2NDEyMzUzNTE2LCJ5IjoyMjguNX0seyJ4IjoxNDUuNTQxNjY0MTIzNTM1MTYsInkiOjI2Nn0seyJ4IjoxNDUuNTQxNjY0MTIzNTM1MTYsInkiOjMwMy41fV0=\" marker-end=\"url(#mx9uhx86s2j7f1rz8y_flowchart-v2-pointEnd)\">\u003C\u002Fpath>\u003Cpath d=\"M145.542,357.5L145.542,363.75C145.542,370,145.542,382.5,145.542,394.333C145.542,406.167,145.542,417.333,145.542,422.917L145.542,428.5\" id=\"L_C_D_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_C_D_0\" data-points=\"W3sieCI6MTQ1LjU0MTY2NDEyMzUzNTE2LCJ5IjozNTcuNX0seyJ4IjoxNDUuNTQxNjY0MTIzNTM1MTYsInkiOjM5NX0seyJ4IjoxNDUuNTQxNjY0MTIzNTM1MTYsInkiOjQzMi41fV0=\" marker-end=\"url(#mx9uhx86s2j7f1rz8y_flowchart-v2-pointEnd)\">\u003C\u002Fpath>\u003C\u002Fg>\u003Cg class=\"edgeLabels\">\u003Cg class=\"edgeLabel\">\u003Cg class=\"label\" data-id=\"L_A_B_0\" transform=\"translate(0, 0)\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"edgeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"edgeLabel\">\u003Cg class=\"label\" data-id=\"L_B_C_0\" transform=\"translate(0, 0)\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"edgeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"edgeLabel\">\u003Cg class=\"label\" data-id=\"L_C_D_0\" transform=\"translate(0, 0)\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"edgeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"nodes\">\u003Cg class=\"node default\" id=\"flowchart-A-0\" transform=\"translate(145.54166412353516, 72.5)\">\u003Crect class=\"basic label-container\" style=\"\" x=\"-73.02604293823242\" y=\"-27\" width=\"146.05208587646484\" height=\"54\">\u003C\u002Frect>\u003Cg class=\"label\" style=\"\" transform=\"translate(-43.02604293823242, -12)\">\u003Crect>\u003C\u002Frect>\u003CforeignObject width=\"86.05208587646484\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"nodeLabel\">\u003Cp>Python 应用\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"node default\" id=\"flowchart-B-1\" transform=\"translate(145.54166412353516, 201.5)\">\u003Crect class=\"basic label-container\" style=\"\" x=\"-102.54167175292969\" y=\"-27\" width=\"205.08334350585938\" height=\"54\">\u003C\u002Frect>\u003Cg class=\"label\" style=\"\" transform=\"translate(-72.54167175292969, -12)\">\u003Crect>\u003C\u002Frect>\u003CforeignObject width=\"145.08334350585938\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"nodeLabel\">\u003Cp>litellm.completion()\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"node default\" id=\"flowchart-C-3\" transform=\"translate(145.54166412353516, 330.5)\">\u003Crect class=\"basic label-container\" style=\"\" x=\"-90.06771087646484\" y=\"-27\" width=\"180.1354217529297\" height=\"54\">\u003C\u002Frect>\u003Cg class=\"label\" style=\"\" transform=\"translate(-60.067710876464844, -12)\">\u003Crect>\u003C\u002Frect>\u003CforeignObject width=\"120.13542175292969\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"nodeLabel\">\u003Cp>Provider Adapter\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"node default\" id=\"flowchart-D-5\" transform=\"translate(145.54166412353516, 459.5)\">\u003Crect class=\"basic label-container\" style=\"\" x=\"-70\" y=\"-27\" width=\"140\" height=\"54\">\u003C\u002Frect>\u003Cg class=\"label\" style=\"\" transform=\"translate(-40, -12)\">\u003Crect>\u003C\u002Frect>\u003CforeignObject width=\"80\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"nodeLabel\">\u003Cp>模型供应商\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003C\u002Fg>\u003C\u002Fg>\u003C\u002Fg>\u003C\u002Fg>\u003C\u002Fg>\u003C\u002Fsvg>\u003Cdiv class=\"md-editor-mermaid-action\">\u003Cspan class=\"md-editor-mermaid-copy\">\u003Csvg xmlns=\"http:\u002F\u002Fwww.w3.org\u002F2000\u002Fsvg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"lucide lucide-copy md-editor-icon\">\u003Crect width=\"14\" height=\"14\" x=\"8\" y=\"8\" rx=\"2\" ry=\"2\">\u003C\u002Frect>\u003Cpath d=\"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2\">\u003C\u002Fpath>\u003C\u002Fsvg>\u003C\u002Fspan>\u003Cspan class=\"md-editor-mermaid-zoom\">\u003Csvg xmlns=\"http:\u002F\u002Fwww.w3.org\u002F2000\u002Fsvg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"lucide lucide-pin-off md-editor-icon\">\u003Cpath d=\"M12 17v5\">\u003C\u002Fpath>\u003Cpath d=\"M15 9.34V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H7.89\">\u003C\u002Fpath>\u003Cpath d=\"m2 2 20 20\">\u003C\u002Fpath>\u003Cpath d=\"M9 9v1.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h11\">\u003C\u002Fpath>\u003C\u002Fsvg>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002Fp>\u003Cul data-line=\"104\">\n\u003Cli data-line=\"104\">\u003Cstrong>SDK 模式\u003C\u002Fstrong>：适合 Python 应用内部直接统一调用模型。\u003C\u002Fli>\n\u003Cli data-line=\"105\">\u003Cstrong>Proxy 模式\u003C\u002Fstrong>：适合企业统一接入，给 Java、Python、Node.js、Harness 等客户端提供统一 HTTP API。\u003C\u002Fli>\n\u003Cli data-line=\"106\">SEABRID OS 应以 Proxy 模式为主，SDK 适配能力作为网关内部实现，不建议每个业务项目直接集成 SDK。\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Chr data-line=\"108\">\n\u003Ch2 data-line=\"110\" id=\"2. 源代码结构与模块职责\">2. 源代码结构与模块职责\u003C\u002Fh2>\n\u003Cp data-line=\"112\">LiteLLM 代码规模大、模块持续演进，目录不是简单的 MVC。建议按“运行职责”而不是只按目录名称理解。\u003C\u002Fp>\n\u003Ch3 data-line=\"114\" id=\"2.1 核心目录地图\">2.1 核心目录地图\u003C\u002Fh3>\n\u003Ctable data-line=\"116\">\n\u003Cthead data-line=\"116\">\n\u003Ctr data-line=\"116\">\n\u003Cth>路径\u003C\u002Fth>\n\u003Cth>主要职责\u003C\u002Fth>\n\u003Cth>架构位置\u003C\u002Fth>\n\u003C\u002Ftr>\n\u003C\u002Fthead>\n\u003Ctbody data-line=\"118\">\n\u003Ctr data-line=\"118\">\n\u003Ctd>\u003Ccode>litellm\u002Fmain.py\u003C\u002Fcode>\u003C\u002Ftd>\n\u003Ctd>SDK 的统一公开调用入口\u003C\u002Ftd>\n\u003Ctd>SDK 门面层\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr data-line=\"119\">\n\u003Ctd>\u003Ccode>litellm\u002Fllms\u002F\u003C\u002Fcode>\u003C\u002Ftd>\n\u003Ctd>Provider 适配、模型调用和协议转换\u003C\u002Ftd>\n\u003Ctd>Provider Adapter\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr data-line=\"120\">\n\u003Ctd>\u003Ccode>litellm\u002Ftypes\u002F\u003C\u002Fcode>\u003C\u002Ftd>\n\u003Ctd>请求、响应、配置和类型定义\u003C\u002Ftd>\n\u003Ctd>契约层\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr data-line=\"121\">\n\u003Ctd>\u003Ccode>litellm\u002Flitellm_core_utils\u002F\u003C\u002Fcode>\u003C\u002Ftd>\n\u003Ctd>Provider 识别、参数处理、日志、成本、异常等通用逻辑\u003C\u002Ftd>\n\u003Ctd>核心工具层\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr data-line=\"122\">\n\u003Ctd>\u003Ccode>litellm\u002Fproxy\u002Fproxy_server.py\u003C\u002Fcode>\u003C\u002Ftd>\n\u003Ctd>Proxy API 应用与服务生命周期入口\u003C\u002Ftd>\n\u003Ctd>Gateway API\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr data-line=\"123\">\n\u003Ctd>\u003Ccode>litellm\u002Fproxy\u002Fauth\u002F\u003C\u002Fcode>\u003C\u002Ftd>\n\u003Ctd>API Key、JWT、用户、团队和访问检查\u003C\u002Ftd>\n\u003Ctd>安全层\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr data-line=\"124\">\n\u003Ctd>\u003Ccode>litellm\u002Fproxy\u002Fmanagement_endpoints\u002F\u003C\u002Fcode>\u003C\u002Ftd>\n\u003Ctd>Key、模型、团队、用户等管理 API\u003C\u002Ftd>\n\u003Ctd>控制面 API\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr data-line=\"125\">\n\u003Ctd>\u003Ccode>litellm\u002Fproxy\u002F\u003C\u002Fcode> 下各 endpoint 包\u003C\u002Ftd>\n\u003Ctd>Chat、Messages、Embeddings、Images、Files 等 API 端点\u003C\u002Ftd>\n\u003Ctd>数据面 API\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr data-line=\"126\">\n\u003Ctd>\u003Ccode>litellm\u002Fproxy\u002Froute_llm_request.py\u003C\u002Fcode>\u003C\u002Ftd>\n\u003Ctd>将代理请求交给 Router 执行\u003C\u002Ftd>\n\u003Ctd>请求编排层\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr data-line=\"127\">\n\u003Ctd>\u003Ccode>litellm\u002Frouter.py\u003C\u002Fcode>\u003C\u002Ftd>\n\u003Ctd>对外 Router 门面及兼容接口\u003C\u002Ftd>\n\u003Ctd>路由抽象层\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr data-line=\"128\">\n\u003Ctd>\u003Ccode>litellm\u002Frouter_core.py\u003C\u002Fcode>、\u003Ccode>litellm\u002Frouter_rust\u002F\u003C\u002Fcode>\u003C\u002Ftd>\n\u003Ctd>Router Core、注册表、健康状态、路由步骤等\u003C\u002Ftd>\n\u003Ctd>路由核心\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr data-line=\"129\">\n\u003Ctd>\u003Ccode>litellm\u002Frouter_strategy\u002F\u003C\u002Fcode>\u003C\u002Ftd>\n\u003Ctd>具体路由策略及自动路由相关逻辑\u003C\u002Ftd>\n\u003Ctd>策略层\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr data-line=\"130\">\n\u003Ctd>\u003Ccode>litellm\u002Fproxy\u002Fdb\u002F\u003C\u002Fcode>\u003C\u002Ftd>\n\u003Ctd>数据库访问、Spend Writer、队列和账务处理\u003C\u002Ftd>\n\u003Ctd>持久化\u002F账务\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr data-line=\"131\">\n\u003Ctd>\u003Ccode>litellm\u002Frepositories\u002F\u003C\u002Fcode>\u003C\u002Ftd>\n\u003Ctd>Repository 抽象和数据访问封装\u003C\u002Ftd>\n\u003Ctd>Repository 层\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr data-line=\"132\">\n\u003Ctd>\u003Ccode>litellm\u002Fcaching\u002F\u003C\u002Fcode>、\u003Ccode>litellm\u002Fredis\u002F\u003C\u002Fcode>\u003C\u002Ftd>\n\u003Ctd>缓存及 Redis 实现\u003C\u002Ftd>\n\u003Ctd>缓存层\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr data-line=\"133\">\n\u003Ctd>\u003Ccode>litellm\u002Fintegrations\u002F\u003C\u002Fcode>\u003C\u002Ftd>\n\u003Ctd>自定义 Logger、可观测性和第三方集成\u003C\u002Ftd>\n\u003Ctd>集成层\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr data-line=\"134\">\n\u003Ctd>\u003Ccode>litellm\u002Fproxy\u002Fhooks\u002F\u003C\u002Fcode>\u003C\u002Ftd>\n\u003Ctd>Proxy 请求钩子、成本跟踪和扩展行为\u003C\u002Ftd>\n\u003Ctd>Hook \u002F Middleware\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr data-line=\"135\">\n\u003Ctd>\u003Ccode>litellm\u002Frust\u002F\u003C\u002Fcode>\u003C\u002Ftd>\n\u003Ctd>Rust Gateway、Router Core、协议和基础设施 crate\u003C\u002Ftd>\n\u003Ctd>高性能执行层\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr data-line=\"136\">\n\u003Ctd>\u003Ccode>litellm\u002Fruntime\u002F\u003C\u002Fcode>\u003C\u002Ftd>\n\u003Ctd>运行时入口及组件化 Gateway 等\u003C\u002Ftd>\n\u003Ctd>Runtime\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003C\u002Ftbody>\n\u003C\u002Ftable>\n\u003Ch3 data-line=\"138\" id=\"2.2 分层依赖关系\">2.2 分层依赖关系\u003C\u002Fh3>\n\u003Cp data-line=\"140\" class=\"md-editor-mermaid\" data-mermaid-theme=\"light\" data-closed=\"true\" data-processed=\"\" data-content=\"flowchart TB\n    API[&quot;Proxy Endpoints \u002F Management Endpoints&quot;]\n    AUTH[&quot;Auth \u002F Policy \u002F Budget&quot;]\n    ORCH[&quot;Pre-call Processing \u002F Request Orchestration&quot;]\n    ROUTER[&quot;Router Facade&quot;]\n    CORE[&quot;Router Core \u002F Routing Strategy&quot;]\n    SDK[&quot;SDK Unified API&quot;]\n    PROVIDER[&quot;Provider-specific Handler \u002F Transformation&quot;]\n    HTTP[&quot;HTTP Client \u002F Cloud SDK&quot;]\n    DATA[&quot;Repository \u002F DB \u002F Redis \u002F Async Writer&quot;]\n    EXT[&quot;Callbacks \u002F Hooks \u002F Metrics \u002F Tracing&quot;]\n\n    API --&gt; AUTH --&gt; ORCH --&gt; ROUTER --&gt; CORE --&gt; SDK --&gt; PROVIDER --&gt; HTTP\n    AUTH --&gt; DATA\n    CORE --&gt; DATA\n    SDK --&gt; EXT\n    API --&gt; EXT\n    ORCH --&gt; EXT\">\u003Csvg id=\"mx9uhx86wd0qeh7ffmg\" width=\"100%\" xmlns=\"http:\u002F\u002Fwww.w3.org\u002F2000\u002Fsvg\" xmlns:xlink=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxlink\" class=\"flowchart\" style=\"max-width: 841.296875px;\" viewBox=\"0 0 841.296875 918\" role=\"graphics-document document\" aria-roledescription=\"flowchart-v2\">\u003Cstyle>#mx9uhx86wd0qeh7ffmg{font-family:\"trebuchet ms\",verdana,arial,sans-serif;font-size:16px;fill:#333;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#mx9uhx86wd0qeh7ffmg .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#mx9uhx86wd0qeh7ffmg .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#mx9uhx86wd0qeh7ffmg .error-icon{fill:#552222;}#mx9uhx86wd0qeh7ffmg .error-text{fill:#552222;stroke:#552222;}#mx9uhx86wd0qeh7ffmg .edge-thickness-normal{stroke-width:1px;}#mx9uhx86wd0qeh7ffmg .edge-thickness-thick{stroke-width:3.5px;}#mx9uhx86wd0qeh7ffmg .edge-pattern-solid{stroke-dasharray:0;}#mx9uhx86wd0qeh7ffmg .edge-thickness-invisible{stroke-width:0;fill:none;}#mx9uhx86wd0qeh7ffmg .edge-pattern-dashed{stroke-dasharray:3;}#mx9uhx86wd0qeh7ffmg .edge-pattern-dotted{stroke-dasharray:2;}#mx9uhx86wd0qeh7ffmg .marker{fill:#333333;stroke:#333333;}#mx9uhx86wd0qeh7ffmg .marker.cross{stroke:#333333;}#mx9uhx86wd0qeh7ffmg svg{font-family:\"trebuchet ms\",verdana,arial,sans-serif;font-size:16px;}#mx9uhx86wd0qeh7ffmg p{margin:0;}#mx9uhx86wd0qeh7ffmg .label{font-family:\"trebuchet ms\",verdana,arial,sans-serif;color:#333;}#mx9uhx86wd0qeh7ffmg .cluster-label text{fill:#333;}#mx9uhx86wd0qeh7ffmg .cluster-label span{color:#333;}#mx9uhx86wd0qeh7ffmg .cluster-label span p{background-color:transparent;}#mx9uhx86wd0qeh7ffmg .label text,#mx9uhx86wd0qeh7ffmg span{fill:#333;color:#333;}#mx9uhx86wd0qeh7ffmg .node rect,#mx9uhx86wd0qeh7ffmg .node circle,#mx9uhx86wd0qeh7ffmg .node ellipse,#mx9uhx86wd0qeh7ffmg .node polygon,#mx9uhx86wd0qeh7ffmg .node path{fill:#ECECFF;stroke:#9370DB;stroke-width:1px;}#mx9uhx86wd0qeh7ffmg .rough-node .label text,#mx9uhx86wd0qeh7ffmg .node .label text,#mx9uhx86wd0qeh7ffmg .image-shape .label,#mx9uhx86wd0qeh7ffmg .icon-shape .label{text-anchor:middle;}#mx9uhx86wd0qeh7ffmg .node .katex path{fill:#000;stroke:#000;stroke-width:1px;}#mx9uhx86wd0qeh7ffmg .rough-node .label,#mx9uhx86wd0qeh7ffmg .node .label,#mx9uhx86wd0qeh7ffmg .image-shape .label,#mx9uhx86wd0qeh7ffmg .icon-shape .label{text-align:center;}#mx9uhx86wd0qeh7ffmg .node.clickable{cursor:pointer;}#mx9uhx86wd0qeh7ffmg .root .anchor path{fill:#333333!important;stroke-width:0;stroke:#333333;}#mx9uhx86wd0qeh7ffmg .arrowheadPath{fill:#333333;}#mx9uhx86wd0qeh7ffmg .edgePath .path{stroke:#333333;stroke-width:2.0px;}#mx9uhx86wd0qeh7ffmg .flowchart-link{stroke:#333333;fill:none;}#mx9uhx86wd0qeh7ffmg .edgeLabel{background-color:rgba(232,232,232, 0.8);text-align:center;}#mx9uhx86wd0qeh7ffmg .edgeLabel p{background-color:rgba(232,232,232, 0.8);}#mx9uhx86wd0qeh7ffmg .edgeLabel rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mx9uhx86wd0qeh7ffmg .labelBkg{background-color:rgba(232, 232, 232, 0.5);}#mx9uhx86wd0qeh7ffmg .cluster rect{fill:#ffffde;stroke:#aaaa33;stroke-width:1px;}#mx9uhx86wd0qeh7ffmg .cluster text{fill:#333;}#mx9uhx86wd0qeh7ffmg .cluster span{color:#333;}#mx9uhx86wd0qeh7ffmg div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:\"trebuchet ms\",verdana,arial,sans-serif;font-size:12px;background:hsl(80, 100%, 96.2745098039%);border:1px solid #aaaa33;border-radius:2px;pointer-events:none;z-index:100;}#mx9uhx86wd0qeh7ffmg .flowchartTitleText{text-anchor:middle;font-size:18px;fill:#333;}#mx9uhx86wd0qeh7ffmg rect.text{fill:none;stroke-width:0;}#mx9uhx86wd0qeh7ffmg .icon-shape,#mx9uhx86wd0qeh7ffmg .image-shape{background-color:rgba(232,232,232, 0.8);text-align:center;}#mx9uhx86wd0qeh7ffmg .icon-shape p,#mx9uhx86wd0qeh7ffmg .image-shape p{background-color:rgba(232,232,232, 0.8);padding:2px;}#mx9uhx86wd0qeh7ffmg .icon-shape rect,#mx9uhx86wd0qeh7ffmg .image-shape rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mx9uhx86wd0qeh7ffmg .label-icon{display:inline-block;height:1em;overflow:visible;vertical-align:-0.125em;}#mx9uhx86wd0qeh7ffmg .node .label-icon path{fill:currentColor;stroke:revert;stroke-width:revert;}#mx9uhx86wd0qeh7ffmg :root{--mermaid-font-family:\"trebuchet ms\",verdana,arial,sans-serif;}\u003C\u002Fstyle>\u003Cg>\u003Cmarker id=\"mx9uhx86wd0qeh7ffmg_flowchart-v2-pointEnd\" class=\"marker flowchart-v2\" viewBox=\"0 0 10 10\" refX=\"5\" refY=\"5\" markerUnits=\"userSpaceOnUse\" markerWidth=\"8\" markerHeight=\"8\" orient=\"auto\">\u003Cpath d=\"M 0 0 L 10 5 L 0 10 z\" class=\"arrowMarkerPath\" style=\"stroke-width: 1; stroke-dasharray: 1, 0;\">\u003C\u002Fpath>\u003C\u002Fmarker>\u003Cmarker id=\"mx9uhx86wd0qeh7ffmg_flowchart-v2-pointStart\" class=\"marker flowchart-v2\" viewBox=\"0 0 10 10\" refX=\"4.5\" refY=\"5\" markerUnits=\"userSpaceOnUse\" markerWidth=\"8\" markerHeight=\"8\" orient=\"auto\">\u003Cpath d=\"M 0 5 L 10 10 L 10 0 z\" class=\"arrowMarkerPath\" style=\"stroke-width: 1; stroke-dasharray: 1, 0;\">\u003C\u002Fpath>\u003C\u002Fmarker>\u003Cmarker id=\"mx9uhx86wd0qeh7ffmg_flowchart-v2-circleEnd\" class=\"marker flowchart-v2\" viewBox=\"0 0 10 10\" refX=\"11\" refY=\"5\" markerUnits=\"userSpaceOnUse\" markerWidth=\"11\" markerHeight=\"11\" orient=\"auto\">\u003Ccircle cx=\"5\" cy=\"5\" r=\"5\" class=\"arrowMarkerPath\" style=\"stroke-width: 1; stroke-dasharray: 1, 0;\">\u003C\u002Fcircle>\u003C\u002Fmarker>\u003Cmarker id=\"mx9uhx86wd0qeh7ffmg_flowchart-v2-circleStart\" class=\"marker flowchart-v2\" viewBox=\"0 0 10 10\" refX=\"-1\" refY=\"5\" markerUnits=\"userSpaceOnUse\" markerWidth=\"11\" markerHeight=\"11\" orient=\"auto\">\u003Ccircle cx=\"5\" cy=\"5\" r=\"5\" class=\"arrowMarkerPath\" style=\"stroke-width: 1; stroke-dasharray: 1, 0;\">\u003C\u002Fcircle>\u003C\u002Fmarker>\u003Cmarker id=\"mx9uhx86wd0qeh7ffmg_flowchart-v2-crossEnd\" class=\"marker cross flowchart-v2\" viewBox=\"0 0 11 11\" refX=\"12\" refY=\"5.2\" markerUnits=\"userSpaceOnUse\" markerWidth=\"11\" markerHeight=\"11\" orient=\"auto\">\u003Cpath d=\"M 1,1 l 9,9 M 10,1 l -9,9\" class=\"arrowMarkerPath\" style=\"stroke-width: 2; stroke-dasharray: 1, 0;\">\u003C\u002Fpath>\u003C\u002Fmarker>\u003Cmarker id=\"mx9uhx86wd0qeh7ffmg_flowchart-v2-crossStart\" class=\"marker cross flowchart-v2\" viewBox=\"0 0 11 11\" refX=\"-1\" refY=\"5.2\" markerUnits=\"userSpaceOnUse\" markerWidth=\"11\" markerHeight=\"11\" orient=\"auto\">\u003Cpath d=\"M 1,1 l 9,9 M 10,1 l -9,9\" class=\"arrowMarkerPath\" style=\"stroke-width: 2; stroke-dasharray: 1, 0;\">\u003C\u002Fpath>\u003C\u002Fmarker>\u003Cg class=\"root\">\u003Cg class=\"clusters\">\u003C\u002Fg>\u003Cg class=\"edgePaths\">\u003Cpath d=\"M473.941,86L469.205,90.167C464.469,94.333,454.996,102.667,450.26,110.333C445.523,118,445.523,125,445.523,128.5L445.523,132\" id=\"L_API_AUTH_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_API_AUTH_0\" data-points=\"W3sieCI6NDczLjk0MTQwNjI1LCJ5Ijo4Nn0seyJ4Ijo0NDUuNTIzNDM3NSwieSI6MTExfSx7IngiOjQ0NS41MjM0Mzc1LCJ5IjoxMzZ9XQ==\" marker-end=\"url(#mx9uhx86wd0qeh7ffmg_flowchart-v2-pointEnd)\">\u003C\u002Fpath>\u003Cpath d=\"M402.687,190L396.076,194.167C389.466,198.333,376.245,206.667,369.634,214.333C363.023,222,363.023,229,363.023,232.5L363.023,236\" id=\"L_AUTH_ORCH_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_AUTH_ORCH_0\" data-points=\"W3sieCI6NDAyLjY4Njg5OTAzODQ2MTU1LCJ5IjoxOTB9LHsieCI6MzYzLjAyMzQzNzUsInkiOjIxNX0seyJ4IjozNjMuMDIzNDM3NSwieSI6MjQwfV0=\" marker-end=\"url(#mx9uhx86wd0qeh7ffmg_flowchart-v2-pointEnd)\">\u003C\u002Fpath>\u003Cpath d=\"M312.75,318L307.379,322.167C302.008,326.333,291.266,334.667,285.895,342.333C280.523,350,280.523,357,280.523,360.5L280.523,364\" id=\"L_ORCH_ROUTER_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_ORCH_ROUTER_0\" data-points=\"W3sieCI6MzEyLjc1LCJ5IjozMTh9LHsieCI6MjgwLjUyMzQzNzUsInkiOjM0M30seyJ4IjoyODAuNTIzNDM3NSwieSI6MzY4fV0=\" marker-end=\"url(#mx9uhx86wd0qeh7ffmg_flowchart-v2-pointEnd)\">\u003C\u002Fpath>\u003Cpath d=\"M280.523,422L280.523,426.167C280.523,430.333,280.523,438.667,280.523,446.333C280.523,454,280.523,461,280.523,464.5L280.523,468\" id=\"L_ROUTER_CORE_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_ROUTER_CORE_0\" data-points=\"W3sieCI6MjgwLjUyMzQzNzUsInkiOjQyMn0seyJ4IjoyODAuNTIzNDM3NSwieSI6NDQ3fSx7IngiOjI4MC41MjM0Mzc1LCJ5Ijo0NzJ9XQ==\" marker-end=\"url(#mx9uhx86wd0qeh7ffmg_flowchart-v2-pointEnd)\">\u003C\u002Fpath>\u003Cpath d=\"M199.767,550L191.139,554.167C182.511,558.333,165.256,566.667,156.628,576.333C148,586,148,597,148,602.5L148,608\" id=\"L_CORE_SDK_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_CORE_SDK_0\" data-points=\"W3sieCI6MTk5Ljc2Njk2Nzc3MzQzNzUsInkiOjU1MH0seyJ4IjoxNDgsInkiOjU3NX0seyJ4IjoxNDgsInkiOjYxMn1d\" marker-end=\"url(#mx9uhx86wd0qeh7ffmg_flowchart-v2-pointEnd)\">\u003C\u002Fpath>\u003Cpath d=\"M143.781,666L142.818,672.167C141.854,678.333,139.927,690.667,138.964,700.333C138,710,138,717,138,720.5L138,724\" id=\"L_SDK_PROVIDER_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_SDK_PROVIDER_0\" data-points=\"W3sieCI6MTQzLjc4MTI1LCJ5Ijo2NjZ9LHsieCI6MTM4LCJ5Ijo3MDN9LHsieCI6MTM4LCJ5Ijo3Mjh9XQ==\" marker-end=\"url(#mx9uhx86wd0qeh7ffmg_flowchart-v2-pointEnd)\">\u003C\u002Fpath>\u003Cpath d=\"M138,806L138,810.167C138,814.333,138,822.667,138,830.333C138,838,138,845,138,848.5L138,852\" id=\"L_PROVIDER_HTTP_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_PROVIDER_HTTP_0\" data-points=\"W3sieCI6MTM4LCJ5Ijo4MDZ9LHsieCI6MTM4LCJ5Ijo4MzF9LHsieCI6MTM4LCJ5Ijo4NTZ9XQ==\" marker-end=\"url(#mx9uhx86wd0qeh7ffmg_flowchart-v2-pointEnd)\">\u003C\u002Fpath>\u003Cpath d=\"M556.023,188.535L575.111,192.946C594.198,197.357,632.372,206.178,651.46,221.256C670.547,236.333,670.547,257.667,670.547,279C670.547,300.333,670.547,321.667,670.547,341C670.547,360.333,670.547,377.667,670.547,395C670.547,412.333,670.547,429.667,670.547,449C670.547,468.333,670.547,489.667,670.547,511C670.547,532.333,670.547,553.667,649.944,569.454C629.341,585.241,588.135,595.483,567.532,600.604L546.929,605.724\" id=\"L_AUTH_DATA_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_AUTH_DATA_0\" data-points=\"W3sieCI6NTU2LjAyMzQzNzUsInkiOjE4OC41MzUxMTc4Njk2NjYzNX0seyJ4Ijo2NzAuNTQ2ODc1LCJ5IjoyMTV9LHsieCI6NjcwLjU0Njg3NSwieSI6Mjc5fSx7IngiOjY3MC41NDY4NzUsInkiOjM0M30seyJ4Ijo2NzAuNTQ2ODc1LCJ5IjozOTV9LHsieCI6NjcwLjU0Njg3NSwieSI6NDQ3fSx7IngiOjY3MC41NDY4NzUsInkiOjUxMX0seyJ4Ijo2NzAuNTQ2ODc1LCJ5Ijo1NzV9LHsieCI6NTQzLjA0Njg3NSwieSI6NjA2LjY4OTMyMDM4ODM0OTV9XQ==\" marker-end=\"url(#mx9uhx86wd0qeh7ffmg_flowchart-v2-pointEnd)\">\u003C\u002Fpath>\u003Cpath d=\"M361.28,550L369.908,554.167C378.536,558.333,395.791,566.667,404.419,574.333C413.047,582,413.047,589,413.047,592.5L413.047,596\" id=\"L_CORE_DATA_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_CORE_DATA_0\" data-points=\"W3sieCI6MzYxLjI3OTkwNzIyNjU2MjUsInkiOjU1MH0seyJ4Ijo0MTMuMDQ2ODc1LCJ5Ijo1NzV9LHsieCI6NDEzLjA0Njg3NSwieSI6NjAwfV0=\" marker-end=\"url(#mx9uhx86wd0qeh7ffmg_flowchart-v2-pointEnd)\">\u003C\u002Fpath>\u003Cpath d=\"M233.047,665.548L253.043,671.79C273.039,678.032,313.031,690.516,369.084,703.346C425.136,716.176,497.249,729.352,533.306,735.94L569.362,742.528\" id=\"L_SDK_EXT_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_SDK_EXT_0\" data-points=\"W3sieCI6MjMzLjA0Njg3NSwieSI6NjY1LjU0ODE4NDI3NzcxMjJ9LHsieCI6MzUzLjAyMzQzNzUsInkiOjcwM30seyJ4Ijo1NzMuMjk2ODc1LCJ5Ijo3NDMuMjQ3MTI4MzU5NTQwNX1d\" marker-end=\"url(#mx9uhx86wd0qeh7ffmg_flowchart-v2-pointEnd)\">\u003C\u002Fpath>\u003Cpath d=\"M648.273,82.401L665.777,87.167C683.281,91.934,718.289,101.467,735.793,114.9C753.297,128.333,753.297,145.667,753.297,163C753.297,180.333,753.297,197.667,753.297,217C753.297,236.333,753.297,257.667,753.297,279C753.297,300.333,753.297,321.667,753.297,341C753.297,360.333,753.297,377.667,753.297,395C753.297,412.333,753.297,429.667,753.297,449C753.297,468.333,753.297,489.667,753.297,511C753.297,532.333,753.297,553.667,753.297,575C753.297,596.333,753.297,617.667,753.297,639C753.297,660.333,753.297,681.667,750.452,695.975C747.607,710.283,741.918,717.565,739.073,721.207L736.228,724.848\" id=\"L_API_EXT_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_API_EXT_0\" data-points=\"W3sieCI6NjQ4LjI3MzQzNzUsInkiOjgyLjQwMDcyNDY2MTc2OTF9LHsieCI6NzUzLjI5Njg3NSwieSI6MTExfSx7IngiOjc1My4yOTY4NzUsInkiOjE2M30seyJ4Ijo3NTMuMjk2ODc1LCJ5IjoyMTV9LHsieCI6NzUzLjI5Njg3NSwieSI6Mjc5fSx7IngiOjc1My4yOTY4NzUsInkiOjM0M30seyJ4Ijo3NTMuMjk2ODc1LCJ5IjozOTV9LHsieCI6NzUzLjI5Njg3NSwieSI6NDQ3fSx7IngiOjc1My4yOTY4NzUsInkiOjUxMX0seyJ4Ijo3NTMuMjk2ODc1LCJ5Ijo1NzV9LHsieCI6NzUzLjI5Njg3NSwieSI6NjM5fSx7IngiOjc1My4yOTY4NzUsInkiOjcwM30seyJ4Ijo3MzMuNzY1NjI1LCJ5Ijo3Mjh9XQ==\" marker-end=\"url(#mx9uhx86wd0qeh7ffmg_flowchart-v2-pointEnd)\">\u003C\u002Fpath>\u003Cpath d=\"M493.023,317.693L507.194,321.911C521.365,326.129,549.706,334.564,563.876,347.449C578.047,360.333,578.047,377.667,578.047,395C578.047,412.333,578.047,429.667,578.047,449C578.047,468.333,578.047,489.667,578.047,511C578.047,532.333,578.047,553.667,578.047,575C578.047,596.333,578.047,617.667,578.047,639C578.047,660.333,578.047,681.667,585.608,696.197C593.168,710.727,608.289,718.453,615.85,722.317L623.411,726.18\" id=\"L_ORCH_EXT_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_ORCH_EXT_0\" data-points=\"W3sieCI6NDkzLjAyMzQzNzUsInkiOjMxNy42OTM0NTYzODE5MzUxfSx7IngiOjU3OC4wNDY4NzUsInkiOjM0M30seyJ4Ijo1NzguMDQ2ODc1LCJ5IjozOTV9LHsieCI6NTc4LjA0Njg3NSwieSI6NDQ3fSx7IngiOjU3OC4wNDY4NzUsInkiOjUxMX0seyJ4Ijo1NzguMDQ2ODc1LCJ5Ijo1NzV9LHsieCI6NTc4LjA0Njg3NSwieSI6NjM5fSx7IngiOjU3OC4wNDY4NzUsInkiOjcwM30seyJ4Ijo2MjYuOTcyNjU2MjUsInkiOjcyOH1d\" marker-end=\"url(#mx9uhx86wd0qeh7ffmg_flowchart-v2-pointEnd)\">\u003C\u002Fpath>\u003C\u002Fg>\u003Cg class=\"edgeLabels\">\u003Cg class=\"edgeLabel\">\u003Cg class=\"label\" data-id=\"L_API_AUTH_0\" transform=\"translate(0, 0)\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"edgeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"edgeLabel\">\u003Cg class=\"label\" data-id=\"L_AUTH_ORCH_0\" transform=\"translate(0, 0)\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"edgeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"edgeLabel\">\u003Cg class=\"label\" data-id=\"L_ORCH_ROUTER_0\" transform=\"translate(0, 0)\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"edgeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"edgeLabel\">\u003Cg class=\"label\" data-id=\"L_ROUTER_CORE_0\" transform=\"translate(0, 0)\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"edgeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"edgeLabel\">\u003Cg class=\"label\" data-id=\"L_CORE_SDK_0\" transform=\"translate(0, 0)\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"edgeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"edgeLabel\">\u003Cg class=\"label\" data-id=\"L_SDK_PROVIDER_0\" transform=\"translate(0, 0)\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"edgeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"edgeLabel\">\u003Cg class=\"label\" data-id=\"L_PROVIDER_HTTP_0\" transform=\"translate(0, 0)\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"edgeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"edgeLabel\">\u003Cg class=\"label\" data-id=\"L_AUTH_DATA_0\" transform=\"translate(0, 0)\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"edgeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"edgeLabel\">\u003Cg class=\"label\" data-id=\"L_CORE_DATA_0\" transform=\"translate(0, 0)\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"edgeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"edgeLabel\">\u003Cg class=\"label\" data-id=\"L_SDK_EXT_0\" transform=\"translate(0, 0)\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"edgeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"edgeLabel\">\u003Cg class=\"label\" data-id=\"L_API_EXT_0\" transform=\"translate(0, 0)\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"edgeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"edgeLabel\">\u003Cg class=\"label\" data-id=\"L_ORCH_EXT_0\" transform=\"translate(0, 0)\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"edgeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"nodes\">\u003Cg class=\"node default\" id=\"flowchart-API-0\" transform=\"translate(518.2734375, 47)\">\u003Crect class=\"basic label-container\" style=\"\" x=\"-130\" y=\"-39\" width=\"260\" height=\"78\">\u003C\u002Frect>\u003Cg class=\"label\" style=\"\" transform=\"translate(-100, -24)\">\u003Crect>\u003C\u002Frect>\u003CforeignObject width=\"200\" height=\"48\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table; white-space: break-spaces; line-height: 1.5; max-width: 200px; text-align: center; width: 200px;\">\u003Cspan class=\"nodeLabel\">\u003Cp>Proxy Endpoints \u002F Management Endpoints\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"node default\" id=\"flowchart-AUTH-1\" transform=\"translate(445.5234375, 163)\">\u003Crect class=\"basic label-container\" style=\"\" x=\"-110.5\" y=\"-27\" width=\"221\" height=\"54\">\u003C\u002Frect>\u003Cg class=\"label\" style=\"\" transform=\"translate(-80.5, -12)\">\u003Crect>\u003C\u002Frect>\u003CforeignObject width=\"161\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"nodeLabel\">\u003Cp>Auth \u002F Policy \u002F Budget\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"node default\" id=\"flowchart-ORCH-2\" transform=\"translate(363.0234375, 279)\">\u003Crect class=\"basic label-container\" style=\"\" x=\"-130\" y=\"-39\" width=\"260\" height=\"78\">\u003C\u002Frect>\u003Cg class=\"label\" style=\"\" transform=\"translate(-100, -24)\">\u003Crect>\u003C\u002Frect>\u003CforeignObject width=\"200\" height=\"48\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table; white-space: break-spaces; line-height: 1.5; max-width: 200px; text-align: center; width: 200px;\">\u003Cspan class=\"nodeLabel\">\u003Cp>Pre-call Processing \u002F Request Orchestration\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"node default\" id=\"flowchart-ROUTER-3\" transform=\"translate(280.5234375, 395)\">\u003Crect class=\"basic label-container\" style=\"\" x=\"-81.4375\" y=\"-27\" width=\"162.875\" height=\"54\">\u003C\u002Frect>\u003Cg class=\"label\" style=\"\" transform=\"translate(-51.4375, -12)\">\u003Crect>\u003C\u002Frect>\u003CforeignObject width=\"102.875\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"nodeLabel\">\u003Cp>Router Facade\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"node default\" id=\"flowchart-CORE-4\" transform=\"translate(280.5234375, 511)\">\u003Crect class=\"basic label-container\" style=\"\" x=\"-130\" y=\"-39\" width=\"260\" height=\"78\">\u003C\u002Frect>\u003Cg class=\"label\" style=\"\" transform=\"translate(-100, -24)\">\u003Crect>\u003C\u002Frect>\u003CforeignObject width=\"200\" height=\"48\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table; white-space: break-spaces; line-height: 1.5; max-width: 200px; text-align: center; width: 200px;\">\u003Cspan class=\"nodeLabel\">\u003Cp>Router Core \u002F Routing Strategy\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"node default\" id=\"flowchart-SDK-5\" transform=\"translate(148, 639)\">\u003Crect class=\"basic label-container\" style=\"\" x=\"-85.046875\" y=\"-27\" width=\"170.09375\" height=\"54\">\u003C\u002Frect>\u003Cg class=\"label\" style=\"\" transform=\"translate(-55.046875, -12)\">\u003Crect>\u003C\u002Frect>\u003CforeignObject width=\"110.09375\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"nodeLabel\">\u003Cp>SDK Unified API\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"node default\" id=\"flowchart-PROVIDER-6\" transform=\"translate(138, 767)\">\u003Crect class=\"basic label-container\" style=\"\" x=\"-130\" y=\"-39\" width=\"260\" height=\"78\">\u003C\u002Frect>\u003Cg class=\"label\" style=\"\" transform=\"translate(-100, -24)\">\u003Crect>\u003C\u002Frect>\u003CforeignObject width=\"200\" height=\"48\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table; white-space: break-spaces; line-height: 1.5; max-width: 200px; text-align: center; width: 200px;\">\u003Cspan class=\"nodeLabel\">\u003Cp>Provider-specific Handler \u002F Transformation\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"node default\" id=\"flowchart-HTTP-7\" transform=\"translate(138, 883)\">\u003Crect class=\"basic label-container\" style=\"\" x=\"-117.63542175292969\" y=\"-27\" width=\"235.27084350585938\" height=\"54\">\u003C\u002Frect>\u003Cg class=\"label\" style=\"\" transform=\"translate(-87.63542175292969, -12)\">\u003Crect>\u003C\u002Frect>\u003CforeignObject width=\"175.27084350585938\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"nodeLabel\">\u003Cp>HTTP Client \u002F Cloud SDK\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"node default\" id=\"flowchart-DATA-8\" transform=\"translate(413.046875, 639)\">\u003Crect class=\"basic label-container\" style=\"\" x=\"-130\" y=\"-39\" width=\"260\" height=\"78\">\u003C\u002Frect>\u003Cg class=\"label\" style=\"\" transform=\"translate(-100, -24)\">\u003Crect>\u003C\u002Frect>\u003CforeignObject width=\"200\" height=\"48\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table; white-space: break-spaces; line-height: 1.5; max-width: 200px; text-align: center; width: 200px;\">\u003Cspan class=\"nodeLabel\">\u003Cp>Repository \u002F DB \u002F Redis \u002F Async Writer\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"node default\" id=\"flowchart-EXT-9\" transform=\"translate(703.296875, 767)\">\u003Crect class=\"basic label-container\" style=\"\" x=\"-130\" y=\"-39\" width=\"260\" height=\"78\">\u003C\u002Frect>\u003Cg class=\"label\" style=\"\" transform=\"translate(-100, -24)\">\u003Crect>\u003C\u002Frect>\u003CforeignObject width=\"200\" height=\"48\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table; white-space: break-spaces; line-height: 1.5; max-width: 200px; text-align: center; width: 200px;\">\u003Cspan class=\"nodeLabel\">\u003Cp>Callbacks \u002F Hooks \u002F Metrics \u002F Tracing\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003C\u002Fg>\u003C\u002Fg>\u003C\u002Fg>\u003C\u002Fsvg>\u003Cdiv class=\"md-editor-mermaid-action\">\u003Cspan class=\"md-editor-mermaid-copy\">\u003Csvg xmlns=\"http:\u002F\u002Fwww.w3.org\u002F2000\u002Fsvg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"lucide lucide-copy md-editor-icon\">\u003Crect width=\"14\" height=\"14\" x=\"8\" y=\"8\" rx=\"2\" ry=\"2\">\u003C\u002Frect>\u003Cpath d=\"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2\">\u003C\u002Fpath>\u003C\u002Fsvg>\u003C\u002Fspan>\u003Cspan class=\"md-editor-mermaid-zoom\">\u003Csvg xmlns=\"http:\u002F\u002Fwww.w3.org\u002F2000\u002Fsvg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"lucide lucide-pin-off md-editor-icon\">\u003Cpath d=\"M12 17v5\">\u003C\u002Fpath>\u003Cpath d=\"M15 9.34V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H7.89\">\u003C\u002Fpath>\u003Cpath d=\"m2 2 20 20\">\u003C\u002Fpath>\u003Cpath d=\"M9 9v1.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h11\">\u003C\u002Fpath>\u003C\u002Fsvg>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002Fp>\u003Cp data-line=\"161\">注意：这是一张逻辑分层图，不代表所有请求都严格沿单一 Python 调用栈执行。新版本存在 Rust Gateway \u002F Rust Router 路径，某些请求会在 Rust 中完成，未覆盖能力则回退到 Python。\u003C\u002Fp>\n\u003Ch3 data-line=\"163\" id=\"2.3 关键源码文件的阅读顺序\">2.3 关键源码文件的阅读顺序\u003C\u002Fh3>\n\u003Cp data-line=\"165\">建议研发人员按以下顺序读源码：\u003C\u002Fp>\n\u003Col data-line=\"167\">\n\u003Cli data-line=\"167\">\u003Ccode>pyproject.toml\u003C\u002Fcode>：先识别运行依赖、可选依赖和 SDK \u002F Proxy 安装边界。\u003C\u002Fli>\n\u003Cli data-line=\"168\">\u003Ccode>litellm\u002Fmain.py\u003C\u002Fcode>：理解统一模型调用 API。\u003C\u002Fli>\n\u003Cli data-line=\"169\">\u003Ccode>litellm\u002Flitellm_core_utils\u002Fget_llm_provider_logic.py\u003C\u002Fcode>：理解 Provider 识别逻辑。\u003C\u002Fli>\n\u003Cli data-line=\"170\">\u003Ccode>litellm\u002Fllms\u002Fcustom_llm.py\u003C\u002Fcode>：理解自定义模型适配抽象。\u003C\u002Fli>\n\u003Cli data-line=\"171\">\u003Ccode>litellm\u002Frouter.py\u003C\u002Fcode> 与 \u003Ccode>litellm\u002Frouter_core.py\u003C\u002Fcode>：理解 Router 对外契约和核心边界。\u003C\u002Fli>\n\u003Cli data-line=\"172\">\u003Ccode>litellm\u002Fproxy\u002Fproxy_server.py\u003C\u002Fcode>：理解服务入口和生命周期。\u003C\u002Fli>\n\u003Cli data-line=\"173\">\u003Ccode>litellm\u002Fproxy\u002Fauth\u002Fuser_api_key_auth.py\u003C\u002Fcode>：理解 Virtual Key 认证和访问控制。\u003C\u002Fli>\n\u003Cli data-line=\"174\">\u003Ccode>litellm\u002Fproxy\u002Froute_llm_request.py\u003C\u002Fcode>：理解 Proxy 到 Router 的请求编排。\u003C\u002Fli>\n\u003Cli data-line=\"175\">\u003Ccode>litellm\u002Fproxy\u002Fhooks\u002Fproxy_track_cost_callback.py\u003C\u002Fcode>：理解成本核算触发。\u003C\u002Fli>\n\u003Cli data-line=\"176\">\u003Ccode>litellm\u002Fproxy\u002Fdb\u002Fdb_spend_update_writer.py\u003C\u002Fcode>：理解异步账务写入。\u003C\u002Fli>\n\u003C\u002Fol>\n\u003Chr data-line=\"178\">\n\u003Ch2 data-line=\"180\" id=\"3. 技术栈与技术选型分析\">3. 技术栈与技术选型分析\u003C\u002Fh2>\n\u003Ch3 data-line=\"182\" id=\"3.1 源码依赖可确认的技术\">3.1 源码依赖可确认的技术\u003C\u002Fh3>\n\u003Ctable data-line=\"184\">\n\u003Cthead data-line=\"184\">\n\u003Ctr data-line=\"184\">\n\u003Cth>技术\u003C\u002Fth>\n\u003Cth>在项目中的作用\u003C\u002Fth>\n\u003Cth>说明\u003C\u002Fth>\n\u003C\u002Ftr>\n\u003C\u002Fthead>\n\u003Ctbody data-line=\"186\">\n\u003Ctr data-line=\"186\">\n\u003Ctd>Python\u003C\u002Ftd>\n\u003Ctd>SDK 和 Proxy 主体实现语言\u003C\u002Ftd>\n\u003Ctd>主体业务逻辑仍大量使用 Python\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr data-line=\"187\">\n\u003Ctd>FastAPI\u003C\u002Ftd>\n\u003Ctd>Proxy HTTP API 框架\u003C\u002Ftd>\n\u003Ctd>Proxy 入口和管理 API 的重要基础\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr data-line=\"188\">\n\u003Ctd>Starlette\u003C\u002Ftd>\n\u003Ctd>ASGI 应用与路由底层\u003C\u002Ftd>\n\u003Ctd>FastAPI 运行基础及 Gateway 应用组合\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr data-line=\"189\">\n\u003Ctd>Pydantic v2\u003C\u002Ftd>\n\u003Ctd>请求\u002F响应、配置和数据校验\u003C\u002Ftd>\n\u003Ctd>强类型数据契约\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr data-line=\"190\">\n\u003Ctd>HTTPX \u002F aiohttp\u003C\u002Ftd>\n\u003Ctd>HTTP 请求和异步网络通信\u003C\u002Ftd>\n\u003Ctd>Provider API 调用\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr data-line=\"191\">\n\u003Ctd>OpenAI Python SDK\u003C\u002Ftd>\n\u003Ctd>兼容客户端类型及部分 API 集成\u003C\u002Ftd>\n\u003Ctd>不是所有 Provider 都依赖同一 SDK\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr data-line=\"192\">\n\u003Ctd>SQLAlchemy \u002F Alembic \u002F psycopg\u003C\u002Ftd>\n\u003Ctd>数据访问和迁移相关依赖\u003C\u002Ftd>\n\u003Ctd>依版本和部署组件使用\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr data-line=\"193\">\n\u003Ctd>Prisma 相关依赖\u003C\u002Ftd>\n\u003Ctd>既有数据库访问兼容路径\u003C\u002Ftd>\n\u003Ctd>源码仍可见 Prisma Client \u002F Protocol\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr data-line=\"194\">\n\u003Ctd>Redis\u003C\u002Ftd>\n\u003Ctd>Key Cache、限流计数、路由状态、队列等\u003C\u002Ftd>\n\u003Ctd>可选基础设施，生产环境价值高\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr data-line=\"195\">\n\u003Ctd>RQ \u002F APScheduler\u003C\u002Ftd>\n\u003Ctd>后台任务和周期任务\u003C\u002Ftd>\n\u003Ctd>任务执行和账务维护\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr data-line=\"196\">\n\u003Ctd>OpenTelemetry\u003C\u002Ftd>\n\u003Ctd>Trace \u002F Metrics \u002F Instrumentation\u003C\u002Ftd>\n\u003Ctd>可观测性基础\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr data-line=\"197\">\n\u003Ctd>Rust\u003C\u002Ftd>\n\u003Ctd>新 Gateway \u002F Router 等高性能模块\u003C\u002Ftd>\n\u003Ctd>正在渐进迁移，不应理解为全项目 Rust 化\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr data-line=\"198\">\n\u003Ctd>Docker \u002F Helm\u003C\u002Ftd>\n\u003Ctd>容器化与组件化部署\u003C\u002Ftd>\n\u003Ctd>从单容器到分组件部署\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003C\u002Ftbody>\n\u003C\u002Ftable>\n\u003Ch3 data-line=\"200\" id=\"3.2 为什么采用 Python + Rust 混合架构\">3.2 为什么采用 Python + Rust 混合架构\u003C\u002Fh3>\n\u003Cp data-line=\"202\">Python 的优势：\u003C\u002Fp>\n\u003Cul data-line=\"204\">\n\u003Cli data-line=\"204\">Provider 生态丰富，接入新模型和 SDK 快。\u003C\u002Fli>\n\u003Cli data-line=\"205\">数据处理、配置和第三方集成开发效率高。\u003C\u002Fli>\n\u003Cli data-line=\"206\">已有庞大的 SDK、回调和插件生态。\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Cp data-line=\"208\">Rust 的优势：\u003C\u002Fp>\n\u003Cul data-line=\"210\">\n\u003Cli data-line=\"210\">低延迟、低内存开销。\u003C\u002Fli>\n\u003Cli data-line=\"211\">高并发下的请求解析、认证、路由和协议处理更适合系统级实现。\u003C\u002Fli>\n\u003Cli data-line=\"212\">可通过明确的 Host \u002F Bridge 边界复用 Python 生态能力。\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Cp data-line=\"214\">混合架构的核心不是“把 Python 全部替换成 Rust”，而是把性能敏感、契约相对稳定的执行路径逐步迁移，并为暂未迁移的功能保留兼容路径。\u003C\u002Fp>\n\u003Ch3 data-line=\"216\" id=\"3.3 技术栈分层图\">3.3 技术栈分层图\u003C\u002Fh3>\n\u003Cp data-line=\"218\" class=\"md-editor-mermaid\" data-mermaid-theme=\"light\" data-closed=\"true\" data-processed=\"\" data-content=\"flowchart TB\n    subgraph APP[&quot;应用层&quot;]\n      SDK[&quot;Python SDK&quot;]\n      PROXY[&quot;FastAPI \u002F Starlette Proxy&quot;]\n      UI[&quot;Admin UI&quot;]\n    end\n    subgraph CORE[&quot;业务核心层&quot;]\n      PY[&quot;Python Core \u002F Provider Adapter&quot;]\n      RUST[&quot;Rust Gateway \u002F Router Core&quot;]\n      SCHEMA[&quot;Pydantic \u002F Typed Contracts&quot;]\n    end\n    subgraph DATA[&quot;数据与基础设施层&quot;]\n      PG[&quot;PostgreSQL&quot;]\n      REDIS[&quot;Redis&quot;]\n      HTTP[&quot;HTTPX \u002F aiohttp&quot;]\n      OTel[&quot;OpenTelemetry \u002F Prometheus&quot;]\n    end\n    SDK --&gt; PY\n    PROXY --&gt; PY\n    PROXY --&gt; RUST\n    UI --&gt; PROXY\n    PY --&gt; SCHEMA\n    RUST --&gt; SCHEMA\n    PY --&gt; PG\n    RUST --&gt; PG\n    PY --&gt; REDIS\n    RUST --&gt; REDIS\n    PY --&gt; HTTP\n    RUST --&gt; HTTP\n    PY --&gt; OTel\n    RUST --&gt; OTel\">\u003Csvg id=\"mx9uhx86l6wkuyxngeo\" width=\"100%\" xmlns=\"http:\u002F\u002Fwww.w3.org\u002F2000\u002Fsvg\" xmlns:xlink=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxlink\" class=\"flowchart\" style=\"max-width: 1605.515625px;\" viewBox=\"0 0 1605.515625 555\" role=\"graphics-document document\" aria-roledescription=\"flowchart-v2\">\u003Cstyle>#mx9uhx86l6wkuyxngeo{font-family:\"trebuchet ms\",verdana,arial,sans-serif;font-size:16px;fill:#333;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#mx9uhx86l6wkuyxngeo .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#mx9uhx86l6wkuyxngeo .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#mx9uhx86l6wkuyxngeo .error-icon{fill:#552222;}#mx9uhx86l6wkuyxngeo .error-text{fill:#552222;stroke:#552222;}#mx9uhx86l6wkuyxngeo .edge-thickness-normal{stroke-width:1px;}#mx9uhx86l6wkuyxngeo .edge-thickness-thick{stroke-width:3.5px;}#mx9uhx86l6wkuyxngeo .edge-pattern-solid{stroke-dasharray:0;}#mx9uhx86l6wkuyxngeo .edge-thickness-invisible{stroke-width:0;fill:none;}#mx9uhx86l6wkuyxngeo .edge-pattern-dashed{stroke-dasharray:3;}#mx9uhx86l6wkuyxngeo .edge-pattern-dotted{stroke-dasharray:2;}#mx9uhx86l6wkuyxngeo .marker{fill:#333333;stroke:#333333;}#mx9uhx86l6wkuyxngeo .marker.cross{stroke:#333333;}#mx9uhx86l6wkuyxngeo svg{font-family:\"trebuchet ms\",verdana,arial,sans-serif;font-size:16px;}#mx9uhx86l6wkuyxngeo p{margin:0;}#mx9uhx86l6wkuyxngeo .label{font-family:\"trebuchet ms\",verdana,arial,sans-serif;color:#333;}#mx9uhx86l6wkuyxngeo .cluster-label text{fill:#333;}#mx9uhx86l6wkuyxngeo .cluster-label span{color:#333;}#mx9uhx86l6wkuyxngeo .cluster-label span p{background-color:transparent;}#mx9uhx86l6wkuyxngeo .label text,#mx9uhx86l6wkuyxngeo span{fill:#333;color:#333;}#mx9uhx86l6wkuyxngeo .node rect,#mx9uhx86l6wkuyxngeo .node circle,#mx9uhx86l6wkuyxngeo .node ellipse,#mx9uhx86l6wkuyxngeo .node polygon,#mx9uhx86l6wkuyxngeo .node path{fill:#ECECFF;stroke:#9370DB;stroke-width:1px;}#mx9uhx86l6wkuyxngeo .rough-node .label text,#mx9uhx86l6wkuyxngeo .node .label text,#mx9uhx86l6wkuyxngeo .image-shape .label,#mx9uhx86l6wkuyxngeo .icon-shape .label{text-anchor:middle;}#mx9uhx86l6wkuyxngeo .node .katex path{fill:#000;stroke:#000;stroke-width:1px;}#mx9uhx86l6wkuyxngeo .rough-node .label,#mx9uhx86l6wkuyxngeo .node .label,#mx9uhx86l6wkuyxngeo .image-shape .label,#mx9uhx86l6wkuyxngeo .icon-shape .label{text-align:center;}#mx9uhx86l6wkuyxngeo .node.clickable{cursor:pointer;}#mx9uhx86l6wkuyxngeo .root .anchor path{fill:#333333!important;stroke-width:0;stroke:#333333;}#mx9uhx86l6wkuyxngeo .arrowheadPath{fill:#333333;}#mx9uhx86l6wkuyxngeo .edgePath .path{stroke:#333333;stroke-width:2.0px;}#mx9uhx86l6wkuyxngeo .flowchart-link{stroke:#333333;fill:none;}#mx9uhx86l6wkuyxngeo .edgeLabel{background-color:rgba(232,232,232, 0.8);text-align:center;}#mx9uhx86l6wkuyxngeo .edgeLabel p{background-color:rgba(232,232,232, 0.8);}#mx9uhx86l6wkuyxngeo .edgeLabel rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mx9uhx86l6wkuyxngeo .labelBkg{background-color:rgba(232, 232, 232, 0.5);}#mx9uhx86l6wkuyxngeo .cluster rect{fill:#ffffde;stroke:#aaaa33;stroke-width:1px;}#mx9uhx86l6wkuyxngeo .cluster text{fill:#333;}#mx9uhx86l6wkuyxngeo .cluster span{color:#333;}#mx9uhx86l6wkuyxngeo div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:\"trebuchet ms\",verdana,arial,sans-serif;font-size:12px;background:hsl(80, 100%, 96.2745098039%);border:1px solid #aaaa33;border-radius:2px;pointer-events:none;z-index:100;}#mx9uhx86l6wkuyxngeo .flowchartTitleText{text-anchor:middle;font-size:18px;fill:#333;}#mx9uhx86l6wkuyxngeo rect.text{fill:none;stroke-width:0;}#mx9uhx86l6wkuyxngeo .icon-shape,#mx9uhx86l6wkuyxngeo .image-shape{background-color:rgba(232,232,232, 0.8);text-align:center;}#mx9uhx86l6wkuyxngeo .icon-shape p,#mx9uhx86l6wkuyxngeo .image-shape p{background-color:rgba(232,232,232, 0.8);padding:2px;}#mx9uhx86l6wkuyxngeo .icon-shape rect,#mx9uhx86l6wkuyxngeo .image-shape rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mx9uhx86l6wkuyxngeo .label-icon{display:inline-block;height:1em;overflow:visible;vertical-align:-0.125em;}#mx9uhx86l6wkuyxngeo .node .label-icon path{fill:currentColor;stroke:revert;stroke-width:revert;}#mx9uhx86l6wkuyxngeo :root{--mermaid-font-family:\"trebuchet ms\",verdana,arial,sans-serif;}\u003C\u002Fstyle>\u003Cg>\u003Cmarker id=\"mx9uhx86l6wkuyxngeo_flowchart-v2-pointEnd\" class=\"marker flowchart-v2\" viewBox=\"0 0 10 10\" refX=\"5\" refY=\"5\" markerUnits=\"userSpaceOnUse\" markerWidth=\"8\" markerHeight=\"8\" orient=\"auto\">\u003Cpath d=\"M 0 0 L 10 5 L 0 10 z\" class=\"arrowMarkerPath\" style=\"stroke-width: 1; stroke-dasharray: 1, 0;\">\u003C\u002Fpath>\u003C\u002Fmarker>\u003Cmarker id=\"mx9uhx86l6wkuyxngeo_flowchart-v2-pointStart\" class=\"marker flowchart-v2\" viewBox=\"0 0 10 10\" refX=\"4.5\" refY=\"5\" markerUnits=\"userSpaceOnUse\" markerWidth=\"8\" markerHeight=\"8\" orient=\"auto\">\u003Cpath d=\"M 0 5 L 10 10 L 10 0 z\" class=\"arrowMarkerPath\" style=\"stroke-width: 1; stroke-dasharray: 1, 0;\">\u003C\u002Fpath>\u003C\u002Fmarker>\u003Cmarker id=\"mx9uhx86l6wkuyxngeo_flowchart-v2-circleEnd\" class=\"marker flowchart-v2\" viewBox=\"0 0 10 10\" refX=\"11\" refY=\"5\" markerUnits=\"userSpaceOnUse\" markerWidth=\"11\" markerHeight=\"11\" orient=\"auto\">\u003Ccircle cx=\"5\" cy=\"5\" r=\"5\" class=\"arrowMarkerPath\" style=\"stroke-width: 1; stroke-dasharray: 1, 0;\">\u003C\u002Fcircle>\u003C\u002Fmarker>\u003Cmarker id=\"mx9uhx86l6wkuyxngeo_flowchart-v2-circleStart\" class=\"marker flowchart-v2\" viewBox=\"0 0 10 10\" refX=\"-1\" refY=\"5\" markerUnits=\"userSpaceOnUse\" markerWidth=\"11\" markerHeight=\"11\" orient=\"auto\">\u003Ccircle cx=\"5\" cy=\"5\" r=\"5\" class=\"arrowMarkerPath\" style=\"stroke-width: 1; stroke-dasharray: 1, 0;\">\u003C\u002Fcircle>\u003C\u002Fmarker>\u003Cmarker id=\"mx9uhx86l6wkuyxngeo_flowchart-v2-crossEnd\" class=\"marker cross flowchart-v2\" viewBox=\"0 0 11 11\" refX=\"12\" refY=\"5.2\" markerUnits=\"userSpaceOnUse\" markerWidth=\"11\" markerHeight=\"11\" orient=\"auto\">\u003Cpath d=\"M 1,1 l 9,9 M 10,1 l -9,9\" class=\"arrowMarkerPath\" style=\"stroke-width: 2; stroke-dasharray: 1, 0;\">\u003C\u002Fpath>\u003C\u002Fmarker>\u003Cmarker id=\"mx9uhx86l6wkuyxngeo_flowchart-v2-crossStart\" class=\"marker cross flowchart-v2\" viewBox=\"0 0 11 11\" refX=\"-1\" refY=\"5.2\" markerUnits=\"userSpaceOnUse\" markerWidth=\"11\" markerHeight=\"11\" orient=\"auto\">\u003Cpath d=\"M 1,1 l 9,9 M 10,1 l -9,9\" class=\"arrowMarkerPath\" style=\"stroke-width: 2; stroke-dasharray: 1, 0;\">\u003C\u002Fpath>\u003C\u002Fmarker>\u003Cg class=\"root\">\u003Cg class=\"clusters\">\u003Cg class=\"cluster\" id=\"DATA\" data-look=\"classic\">\u003Crect style=\"\" x=\"704.1927070617676\" y=\"419\" width=\"893.3229217529297\" height=\"128\">\u003C\u002Frect>\u003Cg class=\"cluster-label\" transform=\"translate(1086.8541679382324, 419)\">\u003CforeignObject width=\"128\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"nodeLabel\">\u003Cp>数据与基础设施层\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"cluster\" id=\"CORE\" data-look=\"classic\">\u003Crect style=\"\" x=\"8\" y=\"266\" width=\"676.1927070617676\" height=\"281\">\u003C\u002Frect>\u003Cg class=\"cluster-label\" transform=\"translate(306.0963535308838, 266)\">\u003CforeignObject width=\"80\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"nodeLabel\">\u003Cp>业务核心层\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"cluster\" id=\"APP\" data-look=\"classic\">\u003Crect style=\"\" x=\"86.30729293823242\" y=\"8\" width=\"582.5442695617676\" height=\"208\">\u003C\u002Frect>\u003Cg class=\"cluster-label\" transform=\"translate(353.5794277191162, 8)\">\u003CforeignObject width=\"48\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"nodeLabel\">\u003Cp>应用层\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"edgePaths\">\u003Cpath d=\"M191.693,191L191.693,195.167C191.693,199.333,191.693,207.667,191.693,216C191.693,224.333,191.693,232.667,191.693,241C191.693,249.333,191.693,257.667,192.656,265.357C193.62,273.047,195.547,280.094,196.51,283.618L197.474,287.142\" id=\"L_SDK_PY_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_SDK_PY_0\" data-points=\"W3sieCI6MTkxLjY5MjcwNzA2MTc2NzU4LCJ5IjoxOTF9LHsieCI6MTkxLjY5MjcwNzA2MTc2NzU4LCJ5IjoyMTZ9LHsieCI6MTkxLjY5MjcwNzA2MTc2NzU4LCJ5IjoyNDF9LHsieCI6MTkxLjY5MjcwNzA2MTc2NzU4LCJ5IjoyNjZ9LHsieCI6MTk4LjUyODY0NDU2MTc2NzU4LCJ5IjoyOTF9XQ==\" marker-end=\"url(#mx9uhx86l6wkuyxngeo_flowchart-v2-pointEnd)\">\u003C\u002Fpath>\u003Cpath d=\"M414.431,191L398.911,195.167C383.391,199.333,352.35,207.667,336.83,216C321.31,224.333,321.31,232.667,321.31,241C321.31,249.333,321.31,257.667,314.59,265.67C307.869,273.672,294.429,281.345,287.708,285.181L280.988,289.017\" id=\"L_PROXY_PY_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_PROXY_PY_0\" data-points=\"W3sieCI6NDE0LjQzMTM4ODM0MTQ2MzUsInkiOjE5MX0seyJ4IjozMjEuMzA5ODk0NTYxNzY3NiwieSI6MjE2fSx7IngiOjMyMS4zMDk4OTQ1NjE3Njc2LCJ5IjoyNDF9LHsieCI6MzIxLjMwOTg5NDU2MTc2NzYsInkiOjI2Nn0seyJ4IjoyNzcuNTE0MTE4MTk0NTgwMSwieSI6MjkxfV0=\" marker-end=\"url(#mx9uhx86l6wkuyxngeo_flowchart-v2-pointEnd)\">\u003C\u002Fpath>\u003Cpath d=\"M517.178,191L517.514,195.167C517.85,199.333,518.521,207.667,518.857,216C519.193,224.333,519.193,232.667,519.193,241C519.193,249.333,519.193,257.667,519.193,265.333C519.193,273,519.193,280,519.193,283.5L519.193,287\" id=\"L_PROXY_RUST_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_PROXY_RUST_0\" data-points=\"W3sieCI6NTE3LjE3ODIzMzI5MzM4NjYsInkiOjE5MX0seyJ4Ijo1MTkuMTkyNzA3MDYxNzY3NiwieSI6MjE2fSx7IngiOjUxOS4xOTI3MDcwNjE3Njc2LCJ5IjoyNDF9LHsieCI6NTE5LjE5MjcwNzA2MTc2NzYsInkiOjI2Nn0seyJ4Ijo1MTkuMTkyNzA3MDYxNzY3NiwieSI6MjkxfV0=\" marker-end=\"url(#mx9uhx86l6wkuyxngeo_flowchart-v2-pointEnd)\">\u003C\u002Fpath>\u003Cpath d=\"M515.003,87L515.003,91.167C515.003,95.333,515.003,103.667,515.003,111.333C515.003,119,515.003,126,515.003,129.5L515.003,133\" id=\"L_UI_PROXY_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_UI_PROXY_0\" data-points=\"W3sieCI6NTE1LjAwMjYwMTYyMzUzNTIsInkiOjg3fSx7IngiOjUxNS4wMDI2MDE2MjM1MzUyLCJ5IjoxMTJ9LHsieCI6NTE1LjAwMjYwMTYyMzUzNTIsInkiOjEzN31d\" marker-end=\"url(#mx9uhx86l6wkuyxngeo_flowchart-v2-pointEnd)\">\u003C\u002Fpath>\u003Cpath d=\"M142.161,369L135,373.167C127.839,377.333,113.516,385.667,106.354,394C99.193,402.333,99.193,410.667,105.557,420.554C111.921,430.442,124.648,441.884,131.012,447.605L137.376,453.326\" id=\"L_PY_SCHEMA_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_PY_SCHEMA_0\" data-points=\"W3sieCI6MTQyLjE2MTQ1NzA2MTc2NzU4LCJ5IjozNjl9LHsieCI6OTkuMTkyNzA3MDYxNzY3NTgsInkiOjM5NH0seyJ4Ijo5OS4xOTI3MDcwNjE3Njc1OCwieSI6NDE5fSx7IngiOjE0MC4zNTA5OTA4MzE4NTE5NiwieSI6NDU2fV0=\" marker-end=\"url(#mx9uhx86l6wkuyxngeo_flowchart-v2-pointEnd)\">\u003C\u002Fpath>\u003Cpath d=\"M389.193,354.557L354.391,361.131C319.59,367.704,249.988,380.852,215.187,391.593C180.385,402.333,180.385,410.667,179.525,420.341C178.664,430.016,176.943,441.032,176.082,446.54L175.222,452.048\" id=\"L_RUST_SCHEMA_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_RUST_SCHEMA_0\" data-points=\"W3sieCI6Mzg5LjE5MjcwNzA2MTc2NzYsInkiOjM1NC41NTY3MzIzMTc3OTIyNH0seyJ4IjoxODAuMzg1NDE0MTIzNTM1MTYsInkiOjM5NH0seyJ4IjoxODAuMzg1NDE0MTIzNTM1MTYsInkiOjQxOX0seyJ4IjoxNzQuNjA0MTY0MTIzNTM1MTYsInkiOjQ1Nn1d\" marker-end=\"url(#mx9uhx86l6wkuyxngeo_flowchart-v2-pointEnd)\">\u003C\u002Fpath>\u003Cpath d=\"M203.826,369L203.252,373.167C202.679,377.333,201.532,385.667,200.959,394C200.385,402.333,200.385,410.667,289.524,424.21C378.662,437.754,556.938,456.508,646.076,465.885L735.215,475.262\" id=\"L_PY_PG_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_PY_PG_0\" data-points=\"W3sieCI6MjAzLjgyNTc2MjkyNzUzMjIsInkiOjM2OX0seyJ4IjoyMDAuMzg1NDE0MTIzNTM1MTYsInkiOjM5NH0seyJ4IjoyMDAuMzg1NDE0MTIzNTM1MTYsInkiOjQxOX0seyJ4Ijo3MzkuMTkyNzA3MDYxNzY3NiwieSI6NDc1LjY4MDE0MTIwMzQwNzR9XQ==\" marker-end=\"url(#mx9uhx86l6wkuyxngeo_flowchart-v2-pointEnd)\">\u003C\u002Fpath>\u003Cpath d=\"M389.193,357.844L361.058,363.87C332.924,369.896,276.655,381.948,248.52,392.141C220.385,402.333,220.385,410.667,306.191,424.166C391.996,437.666,563.606,456.333,649.411,465.666L735.216,474.999\" id=\"L_RUST_PG_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_RUST_PG_0\" data-points=\"W3sieCI6Mzg5LjE5MjcwNzA2MTc2NzYsInkiOjM1Ny44NDQwMzI1ODA5NTc5Nn0seyJ4IjoyMjAuMzg1NDE0MTIzNTM1MTYsInkiOjM5NH0seyJ4IjoyMjAuMzg1NDE0MTIzNTM1MTYsInkiOjQxOX0seyJ4Ijo3MzkuMTkyNzA3MDYxNzY3NiwieSI6NDc1LjQzMTMzMTcwNzE5NDR9XQ==\" marker-end=\"url(#mx9uhx86l6wkuyxngeo_flowchart-v2-pointEnd)\">\u003C\u002Fpath>\u003Cpath d=\"M228.201,369L230.232,373.167C232.262,377.333,236.324,385.667,238.355,394C240.385,402.333,240.385,410.667,354.384,424.738C468.382,438.808,696.378,458.617,810.376,468.521L924.374,478.425\" id=\"L_PY_REDIS_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_PY_REDIS_0\" data-points=\"W3sieCI6MjI4LjIwMDc2MjkyNzUzMjIsInkiOjM2OX0seyJ4IjoyNDAuMzg1NDE0MTIzNTM1MTYsInkiOjM5NH0seyJ4IjoyNDAuMzg1NDE0MTIzNTM1MTYsInkiOjQxOX0seyJ4Ijo5MjguMzU5Mzc4ODE0Njk3MywieSI6NDc4Ljc3MTM3MzY2MTMxNjAzfV0=\" marker-end=\"url(#mx9uhx86l6wkuyxngeo_flowchart-v2-pointEnd)\">\u003C\u002Fpath>\u003Cpath d=\"M538.201,369L540.232,373.167C542.262,377.333,546.324,385.667,548.355,394C550.385,402.333,550.385,410.667,612.722,424.184C675.058,437.702,799.731,456.404,862.067,465.755L924.404,475.105\" id=\"L_RUST_REDIS_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_RUST_REDIS_0\" data-points=\"W3sieCI6NTM4LjIwMDc2MjkyNzUzMjIsInkiOjM2OX0seyJ4Ijo1NTAuMzg1NDE0MTIzNTM1MiwieSI6Mzk0fSx7IngiOjU1MC4zODU0MTQxMjM1MzUyLCJ5Ijo0MTl9LHsieCI6OTI4LjM1OTM3ODgxNDY5NzMsInkiOjQ3NS42OTg4NjIzNTc5MzR9XQ==\" marker-end=\"url(#mx9uhx86l6wkuyxngeo_flowchart-v2-pointEnd)\">\u003C\u002Fpath>\u003Cpath d=\"M339.193,352.952L377.943,359.793C416.693,366.634,494.193,380.317,532.943,391.325C571.693,402.333,571.693,410.667,655.032,423.837C738.371,437.007,905.048,455.013,988.387,464.016L1071.726,473.02\" id=\"L_PY_HTTP_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_PY_HTTP_0\" data-points=\"W3sieCI6MzM5LjE5MjcwNzA2MTc2NzYsInkiOjM1Mi45NTE3MjQxMzc5MzF9LHsieCI6NTcxLjY5MjcwNzA2MTc2NzYsInkiOjM5NH0seyJ4Ijo1NzEuNjkyNzA3MDYxNzY3NiwieSI6NDE5fSx7IngiOjEwNzUuNzAzMTI4ODE0Njk3MywieSI6NDczLjQ0OTI4OTcxNDg1ODV9XQ==\" marker-end=\"url(#mx9uhx86l6wkuyxngeo_flowchart-v2-pointEnd)\">\u003C\u002Fpath>\u003Cpath d=\"M563.372,369L568.092,373.167C572.812,377.333,582.253,385.667,586.973,394C591.693,402.333,591.693,410.667,671.699,423.779C751.704,436.89,911.716,454.781,991.722,463.726L1071.728,472.671\" id=\"L_RUST_HTTP_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_RUST_HTTP_0\" data-points=\"W3sieCI6NTYzLjM3MjM5NDU2MTc2NzYsInkiOjM2OX0seyJ4Ijo1OTEuNjkyNzA3MDYxNzY3NiwieSI6Mzk0fSx7IngiOjU5MS42OTI3MDcwNjE3Njc2LCJ5Ijo0MTl9LHsieCI6MTA3NS43MDMxMjg4MTQ2OTczLCJ5Ijo0NzMuMTE1NTkxODc3MDI2N31d\" marker-end=\"url(#mx9uhx86l6wkuyxngeo_flowchart-v2-pointEnd)\">\u003C\u002Fpath>\u003Cpath d=\"M339.193,350.671L384.609,357.892C430.026,365.114,520.859,379.557,566.276,390.945C611.693,402.333,611.693,410.667,726.165,423.759C840.638,436.851,1069.583,454.702,1184.055,463.627L1298.528,472.553\" id=\"L_PY_OTel_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_PY_OTel_0\" data-points=\"W3sieCI6MzM5LjE5MjcwNzA2MTc2NzYsInkiOjM1MC42NzA4MDc0NTM0MTYxNn0seyJ4Ijo2MTEuNjkyNzA3MDYxNzY3NiwieSI6Mzk0fSx7IngiOjYxMS42OTI3MDcwNjE3Njc2LCJ5Ijo0MTl9LHsieCI6MTMwMi41MTU2Mjg4MTQ2OTczLCJ5Ijo0NzIuODYzODMwODIyMDgyOH1d\" marker-end=\"url(#mx9uhx86l6wkuyxngeo_flowchart-v2-pointEnd)\">\u003C\u002Fpath>\u003Cpath d=\"M587.747,369L595.072,373.167C602.396,377.333,617.044,385.667,624.368,394C631.693,402.333,631.693,410.667,742.832,423.715C853.971,436.764,1076.25,454.528,1187.389,463.41L1298.528,472.292\" id=\"L_RUST_OTel_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_RUST_OTel_0\" data-points=\"W3sieCI6NTg3Ljc0NzM5NDU2MTc2NzYsInkiOjM2OX0seyJ4Ijo2MzEuNjkyNzA3MDYxNzY3NiwieSI6Mzk0fSx7IngiOjYzMS42OTI3MDcwNjE3Njc2LCJ5Ijo0MTl9LHsieCI6MTMwMi41MTU2Mjg4MTQ2OTczLCJ5Ijo0NzIuNjEwNjg2OTg5NTkyOH1d\" marker-end=\"url(#mx9uhx86l6wkuyxngeo_flowchart-v2-pointEnd)\">\u003C\u002Fpath>\u003C\u002Fg>\u003Cg class=\"edgeLabels\">\u003Cg class=\"edgeLabel\">\u003Cg class=\"label\" data-id=\"L_SDK_PY_0\" transform=\"translate(0, 0)\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"edgeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"edgeLabel\">\u003Cg class=\"label\" data-id=\"L_PROXY_PY_0\" transform=\"translate(0, 0)\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"edgeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"edgeLabel\">\u003Cg class=\"label\" data-id=\"L_PROXY_RUST_0\" transform=\"translate(0, 0)\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"edgeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"edgeLabel\">\u003Cg class=\"label\" data-id=\"L_UI_PROXY_0\" transform=\"translate(0, 0)\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"edgeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"edgeLabel\">\u003Cg class=\"label\" data-id=\"L_PY_SCHEMA_0\" transform=\"translate(0, 0)\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"edgeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"edgeLabel\">\u003Cg class=\"label\" data-id=\"L_RUST_SCHEMA_0\" transform=\"translate(0, 0)\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"edgeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"edgeLabel\">\u003Cg class=\"label\" data-id=\"L_PY_PG_0\" transform=\"translate(0, 0)\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"edgeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"edgeLabel\">\u003Cg class=\"label\" data-id=\"L_RUST_PG_0\" transform=\"translate(0, 0)\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"edgeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"edgeLabel\">\u003Cg class=\"label\" data-id=\"L_PY_REDIS_0\" transform=\"translate(0, 0)\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"edgeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"edgeLabel\">\u003Cg class=\"label\" data-id=\"L_RUST_REDIS_0\" transform=\"translate(0, 0)\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"edgeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"edgeLabel\">\u003Cg class=\"label\" data-id=\"L_PY_HTTP_0\" transform=\"translate(0, 0)\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"edgeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"edgeLabel\">\u003Cg class=\"label\" data-id=\"L_RUST_HTTP_0\" transform=\"translate(0, 0)\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"edgeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"edgeLabel\">\u003Cg class=\"label\" data-id=\"L_PY_OTel_0\" transform=\"translate(0, 0)\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"edgeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"edgeLabel\">\u003Cg class=\"label\" data-id=\"L_RUST_OTel_0\" transform=\"translate(0, 0)\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"edgeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"nodes\">\u003Cg class=\"node default\" id=\"flowchart-SDK-0\" transform=\"translate(191.69270706176758, 164)\">\u003Crect class=\"basic label-container\" style=\"\" x=\"-70.38541793823242\" y=\"-27\" width=\"140.77083587646484\" height=\"54\">\u003C\u002Frect>\u003Cg class=\"label\" style=\"\" transform=\"translate(-40.38541793823242, -12)\">\u003Crect>\u003C\u002Frect>\u003CforeignObject width=\"80.77083587646484\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"nodeLabel\">\u003Cp>Python SDK\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"node default\" id=\"flowchart-PROXY-1\" transform=\"translate(515.0026016235352, 164)\">\u003Crect class=\"basic label-container\" style=\"\" x=\"-118.84896087646484\" y=\"-27\" width=\"237.6979217529297\" height=\"54\">\u003C\u002Frect>\u003Cg class=\"label\" style=\"\" transform=\"translate(-88.84896087646484, -12)\">\u003Crect>\u003C\u002Frect>\u003CforeignObject width=\"177.6979217529297\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"nodeLabel\">\u003Cp>FastAPI \u002F Starlette Proxy\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"node default\" id=\"flowchart-UI-2\" transform=\"translate(515.0026016235352, 60)\">\u003Crect class=\"basic label-container\" style=\"\" x=\"-62.296875\" y=\"-27\" width=\"124.59375\" height=\"54\">\u003C\u002Frect>\u003Cg class=\"label\" style=\"\" transform=\"translate(-32.296875, -12)\">\u003Crect>\u003C\u002Frect>\u003CforeignObject width=\"64.59375\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"nodeLabel\">\u003Cp>Admin UI\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"node default\" id=\"flowchart-PY-3\" transform=\"translate(209.19270706176758, 330)\">\u003Crect class=\"basic label-container\" style=\"\" x=\"-130\" y=\"-39\" width=\"260\" height=\"78\">\u003C\u002Frect>\u003Cg class=\"label\" style=\"\" transform=\"translate(-100, -24)\">\u003Crect>\u003C\u002Frect>\u003CforeignObject width=\"200\" height=\"48\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table; white-space: break-spaces; line-height: 1.5; max-width: 200px; text-align: center; width: 200px;\">\u003Cspan class=\"nodeLabel\">\u003Cp>Python Core \u002F Provider Adapter\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"node default\" id=\"flowchart-RUST-4\" transform=\"translate(519.1927070617676, 330)\">\u003Crect class=\"basic label-container\" style=\"\" x=\"-130\" y=\"-39\" width=\"260\" height=\"78\">\u003C\u002Frect>\u003Cg class=\"label\" style=\"\" transform=\"translate(-100, -24)\">\u003Crect>\u003C\u002Frect>\u003CforeignObject width=\"200\" height=\"48\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table; white-space: break-spaces; line-height: 1.5; max-width: 200px; text-align: center; width: 200px;\">\u003Cspan class=\"nodeLabel\">\u003Cp>Rust Gateway \u002F Router Core\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"node default\" id=\"flowchart-SCHEMA-5\" transform=\"translate(170.38541412353516, 483)\">\u003Crect class=\"basic label-container\" style=\"\" x=\"-127.38542175292969\" y=\"-27\" width=\"254.77084350585938\" height=\"54\">\u003C\u002Frect>\u003Cg class=\"label\" style=\"\" transform=\"translate(-97.38542175292969, -12)\">\u003Crect>\u003C\u002Frect>\u003CforeignObject width=\"194.77084350585938\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"nodeLabel\">\u003Cp>Pydantic \u002F Typed Contracts\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"node default\" id=\"flowchart-PG-6\" transform=\"translate(808.7760429382324, 483)\">\u003Crect class=\"basic label-container\" style=\"\" x=\"-69.58333587646484\" y=\"-27\" width=\"139.1666717529297\" height=\"54\">\u003C\u002Frect>\u003Cg class=\"label\" style=\"\" transform=\"translate(-39.583335876464844, -12)\">\u003Crect>\u003C\u002Frect>\u003CforeignObject width=\"79.16667175292969\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"nodeLabel\">\u003Cp>PostgreSQL\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"node default\" id=\"flowchart-REDIS-7\" transform=\"translate(977.0312538146973, 483)\">\u003Crect class=\"basic label-container\" style=\"\" x=\"-48.671875\" y=\"-27\" width=\"97.34375\" height=\"54\">\u003C\u002Frect>\u003Cg class=\"label\" style=\"\" transform=\"translate(-18.671875, -12)\">\u003Crect>\u003C\u002Frect>\u003CforeignObject width=\"37.34375\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"nodeLabel\">\u003Cp>Redis\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"node default\" id=\"flowchart-HTTP-8\" transform=\"translate(1164.1093788146973, 483)\">\u003Crect class=\"basic label-container\" style=\"\" x=\"-88.40625\" y=\"-27\" width=\"176.8125\" height=\"54\">\u003C\u002Frect>\u003Cg class=\"label\" style=\"\" transform=\"translate(-58.40625, -12)\">\u003Crect>\u003C\u002Frect>\u003CforeignObject width=\"116.8125\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"nodeLabel\">\u003Cp>HTTPX \u002F aiohttp\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"node default\" id=\"flowchart-OTel-9\" transform=\"translate(1432.5156288146973, 483)\">\u003Crect class=\"basic label-container\" style=\"\" x=\"-130\" y=\"-39\" width=\"260\" height=\"78\">\u003C\u002Frect>\u003Cg class=\"label\" style=\"\" transform=\"translate(-100, -24)\">\u003Crect>\u003C\u002Frect>\u003CforeignObject width=\"200\" height=\"48\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table; white-space: break-spaces; line-height: 1.5; max-width: 200px; text-align: center; width: 200px;\">\u003Cspan class=\"nodeLabel\">\u003Cp>OpenTelemetry \u002F Prometheus\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003C\u002Fg>\u003C\u002Fg>\u003C\u002Fg>\u003C\u002Fsvg>\u003Cdiv class=\"md-editor-mermaid-action\">\u003Cspan class=\"md-editor-mermaid-copy\">\u003Csvg xmlns=\"http:\u002F\u002Fwww.w3.org\u002F2000\u002Fsvg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"lucide lucide-copy md-editor-icon\">\u003Crect width=\"14\" height=\"14\" x=\"8\" y=\"8\" rx=\"2\" ry=\"2\">\u003C\u002Frect>\u003Cpath d=\"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2\">\u003C\u002Fpath>\u003C\u002Fsvg>\u003C\u002Fspan>\u003Cspan class=\"md-editor-mermaid-zoom\">\u003Csvg xmlns=\"http:\u002F\u002Fwww.w3.org\u002F2000\u002Fsvg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"lucide lucide-pin-off md-editor-icon\">\u003Cpath d=\"M12 17v5\">\u003C\u002Fpath>\u003Cpath d=\"M15 9.34V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H7.89\">\u003C\u002Fpath>\u003Cpath d=\"m2 2 20 20\">\u003C\u002Fpath>\u003Cpath d=\"M9 9v1.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h11\">\u003C\u002Fpath>\u003C\u002Fsvg>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002Fp>\u003Chr data-line=\"252\">\n\u003Ch2 data-line=\"254\" id=\"4. 核心请求链路：一次模型调用发生了什么\">4. 核心请求链路：一次模型调用发生了什么\u003C\u002Fh2>\n\u003Cp data-line=\"256\">这是理解 LiteLLM 最重要的一部分。\u003C\u002Fp>\n\u003Ch3 data-line=\"258\" id=\"4.1 标准 Chat Completions 请求流程\">4.1 标准 Chat Completions 请求流程\u003C\u002Fh3>\n\u003Cp data-line=\"260\" class=\"md-editor-mermaid\" data-mermaid-theme=\"light\" data-closed=\"true\" data-processed=\"\" data-content=\"sequenceDiagram\n    autonumber\n    participant APP as Client \u002F Harness\n    participant GW as LiteLLM Proxy\n    participant AUTH as Auth \u002F Budget\n    participant CACHE as Memory \u002F Redis\n    participant DB as PostgreSQL\n    participant ROUTER as Router\n    participant SDK as LiteLLM SDK\n    participant ADAPTER as Provider Adapter\n    participant LLM as Model Provider\n    participant LOG as Async Spend \u002F Callback\n\n    APP-&gt;&gt;GW: POST \u002Fv1\u002Fchat\u002Fcompletions + Bearer Virtual Key\n    GW-&gt;&gt;AUTH: 解析 Key \u002F 请求身份\n    AUTH-&gt;&gt;CACHE: 查 Key \u002F Budget \u002F Rate Limit\n    alt Cache Hit\n        CACHE--&gt;&gt;AUTH: Key \u002F Scope \u002F Usage\n    else Cache Miss\n        AUTH-&gt;&gt;DB: 查询 Key \u002F User \u002F Team\n        DB--&gt;&gt;AUTH: 权限和预算信息\n        AUTH-&gt;&gt;CACHE: 回填缓存\n    end\n    AUTH--&gt;&gt;GW: 认证通过 \u002F 限额检查\n    GW-&gt;&gt;GW: 请求预处理、模型别名和参数检查\n    GW-&gt;&gt;ROUTER: 按 model group 路由\n    ROUTER-&gt;&gt;ROUTER: 选择 deployment \u002F 检查 cooldown\n    ROUTER-&gt;&gt;SDK: 统一 completion 调用\n    SDK-&gt;&gt;ADAPTER: Provider 识别和参数转换\n    ADAPTER-&gt;&gt;LLM: Provider-native HTTP 请求\n    LLM--&gt;&gt;ADAPTER: Provider 响应 \u002F Stream\n    ADAPTER--&gt;&gt;SDK: 统一响应结构\n    SDK--&gt;&gt;ROUTER: ModelResponse\n    ROUTER--&gt;&gt;GW: 结果\n    GW--&gt;&gt;APP: 统一 API 响应\n    GW--&gt;&gt;LOG: 异步成本核算 \u002F Spend \u002F Callback\n    LOG-&gt;&gt;CACHE: 累积或缓冲使用量\n    LOG-&gt;&gt;DB: 批量持久化 Spend Logs\">\u003Csvg id=\"mx9uhx86n5szvvyq76\" width=\"100%\" xmlns=\"http:\u002F\u002Fwww.w3.org\u002F2000\u002Fsvg\" xmlns:xlink=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxlink\" style=\"max-width: 2585px;\" viewBox=\"-50 -10 2585 1477\" role=\"graphics-document document\" aria-roledescription=\"sequence\">\u003Cg>\u003Crect x=\"2286\" y=\"1391\" fill=\"#eaeaea\" stroke=\"#666\" width=\"199\" height=\"65\" name=\"LOG\" rx=\"3\" ry=\"3\" class=\"actor actor-bottom\">\u003C\u002Frect>\u003Ctext x=\"2385.5\" y=\"1423.5\" dominant-baseline=\"central\" alignment-baseline=\"central\" class=\"actor actor-box\" style=\"text-anchor: middle; font-size: 16px; font-weight: 400;\">\u003Ctspan x=\"2385.5\" dy=\"0\">Async Spend \u002F Callback\u003C\u002Ftspan>\u003C\u002Ftext>\u003C\u002Fg>\u003Cg>\u003Crect x=\"2086\" y=\"1391\" fill=\"#eaeaea\" stroke=\"#666\" width=\"150\" height=\"65\" name=\"LLM\" rx=\"3\" ry=\"3\" class=\"actor actor-bottom\">\u003C\u002Frect>\u003Ctext x=\"2161\" y=\"1423.5\" dominant-baseline=\"central\" alignment-baseline=\"central\" class=\"actor actor-box\" style=\"text-anchor: middle; font-size: 16px; font-weight: 400;\">\u003Ctspan x=\"2161\" dy=\"0\">Model Provider\u003C\u002Ftspan>\u003C\u002Ftext>\u003C\u002Fg>\u003Cg>\u003Crect x=\"1817.5\" y=\"1391\" fill=\"#eaeaea\" stroke=\"#666\" width=\"151\" height=\"65\" name=\"ADAPTER\" rx=\"3\" ry=\"3\" class=\"actor actor-bottom\">\u003C\u002Frect>\u003Ctext x=\"1893\" y=\"1423.5\" dominant-baseline=\"central\" alignment-baseline=\"central\" class=\"actor actor-box\" style=\"text-anchor: middle; font-size: 16px; font-weight: 400;\">\u003Ctspan x=\"1893\" dy=\"0\">Provider Adapter\u003C\u002Ftspan>\u003C\u002Ftext>\u003C\u002Fg>\u003Cg>\u003Crect x=\"1567\" y=\"1391\" fill=\"#eaeaea\" stroke=\"#666\" width=\"150\" height=\"65\" name=\"SDK\" rx=\"3\" ry=\"3\" class=\"actor actor-bottom\">\u003C\u002Frect>\u003Ctext x=\"1642\" y=\"1423.5\" dominant-baseline=\"central\" alignment-baseline=\"central\" class=\"actor actor-box\" style=\"text-anchor: middle; font-size: 16px; font-weight: 400;\">\u003Ctspan x=\"1642\" dy=\"0\">LiteLLM SDK\u003C\u002Ftspan>\u003C\u002Ftext>\u003C\u002Fg>\u003Cg>\u003Crect x=\"1337\" y=\"1391\" fill=\"#eaeaea\" stroke=\"#666\" width=\"150\" height=\"65\" name=\"ROUTER\" rx=\"3\" ry=\"3\" class=\"actor actor-bottom\">\u003C\u002Frect>\u003Ctext x=\"1412\" y=\"1423.5\" dominant-baseline=\"central\" alignment-baseline=\"central\" class=\"actor actor-box\" style=\"text-anchor: middle; font-size: 16px; font-weight: 400;\">\u003Ctspan x=\"1412\" dy=\"0\">Router\u003C\u002Ftspan>\u003C\u002Ftext>\u003C\u002Fg>\u003Cg>\u003Crect x=\"1137\" y=\"1391\" fill=\"#eaeaea\" stroke=\"#666\" width=\"150\" height=\"65\" name=\"DB\" rx=\"3\" ry=\"3\" class=\"actor actor-bottom\">\u003C\u002Frect>\u003Ctext x=\"1212\" y=\"1423.5\" dominant-baseline=\"central\" alignment-baseline=\"central\" class=\"actor actor-box\" style=\"text-anchor: middle; font-size: 16px; font-weight: 400;\">\u003Ctspan x=\"1212\" dy=\"0\">PostgreSQL\u003C\u002Ftspan>\u003C\u002Ftext>\u003C\u002Fg>\u003Cg>\u003Crect x=\"937\" y=\"1391\" fill=\"#eaeaea\" stroke=\"#666\" width=\"150\" height=\"65\" name=\"CACHE\" rx=\"3\" ry=\"3\" class=\"actor actor-bottom\">\u003C\u002Frect>\u003Ctext x=\"1012\" y=\"1423.5\" dominant-baseline=\"central\" alignment-baseline=\"central\" class=\"actor actor-box\" style=\"text-anchor: middle; font-size: 16px; font-weight: 400;\">\u003Ctspan x=\"1012\" dy=\"0\">Memory \u002F Redis\u003C\u002Ftspan>\u003C\u002Ftext>\u003C\u002Fg>\u003Cg>\u003Crect x=\"654\" y=\"1391\" fill=\"#eaeaea\" stroke=\"#666\" width=\"150\" height=\"65\" name=\"AUTH\" rx=\"3\" ry=\"3\" class=\"actor actor-bottom\">\u003C\u002Frect>\u003Ctext x=\"729\" y=\"1423.5\" dominant-baseline=\"central\" alignment-baseline=\"central\" class=\"actor actor-box\" style=\"text-anchor: middle; font-size: 16px; font-weight: 400;\">\u003Ctspan x=\"729\" dy=\"0\">Auth \u002F Budget\u003C\u002Ftspan>\u003C\u002Ftext>\u003C\u002Fg>\u003Cg>\u003Crect x=\"439\" y=\"1391\" fill=\"#eaeaea\" stroke=\"#666\" width=\"150\" height=\"65\" name=\"GW\" rx=\"3\" ry=\"3\" class=\"actor actor-bottom\">\u003C\u002Frect>\u003Ctext x=\"514\" y=\"1423.5\" dominant-baseline=\"central\" alignment-baseline=\"central\" class=\"actor actor-box\" style=\"text-anchor: middle; font-size: 16px; font-weight: 400;\">\u003Ctspan x=\"514\" dy=\"0\">LiteLLM Proxy\u003C\u002Ftspan>\u003C\u002Ftext>\u003C\u002Fg>\u003Cg>\u003Crect x=\"0\" y=\"1391\" fill=\"#eaeaea\" stroke=\"#666\" width=\"150\" height=\"65\" name=\"APP\" rx=\"3\" ry=\"3\" class=\"actor actor-bottom\">\u003C\u002Frect>\u003Ctext x=\"75\" y=\"1423.5\" dominant-baseline=\"central\" alignment-baseline=\"central\" class=\"actor actor-box\" style=\"text-anchor: middle; font-size: 16px; font-weight: 400;\">\u003Ctspan x=\"75\" dy=\"0\">Client \u002F Harness\u003C\u002Ftspan>\u003C\u002Ftext>\u003C\u002Fg>\u003Cg>\u003Cline id=\"actor31\" x1=\"2385.5\" y1=\"65\" x2=\"2385.5\" y2=\"1391\" class=\"actor-line 200\" stroke-width=\"0.5px\" stroke=\"#999\" name=\"LOG\">\u003C\u002Fline>\u003Cg id=\"root-31\">\u003Crect x=\"2286\" y=\"0\" fill=\"#eaeaea\" stroke=\"#666\" width=\"199\" height=\"65\" name=\"LOG\" rx=\"3\" ry=\"3\" class=\"actor actor-top\">\u003C\u002Frect>\u003Ctext x=\"2385.5\" y=\"32.5\" dominant-baseline=\"central\" alignment-baseline=\"central\" class=\"actor actor-box\" style=\"text-anchor: middle; font-size: 16px; font-weight: 400;\">\u003Ctspan x=\"2385.5\" dy=\"0\">Async Spend \u002F Callback\u003C\u002Ftspan>\u003C\u002Ftext>\u003C\u002Fg>\u003C\u002Fg>\u003Cg>\u003Cline id=\"actor30\" x1=\"2161\" y1=\"65\" x2=\"2161\" y2=\"1391\" class=\"actor-line 200\" stroke-width=\"0.5px\" stroke=\"#999\" name=\"LLM\">\u003C\u002Fline>\u003Cg id=\"root-30\">\u003Crect x=\"2086\" y=\"0\" fill=\"#eaeaea\" stroke=\"#666\" width=\"150\" height=\"65\" name=\"LLM\" rx=\"3\" ry=\"3\" class=\"actor actor-top\">\u003C\u002Frect>\u003Ctext x=\"2161\" y=\"32.5\" dominant-baseline=\"central\" alignment-baseline=\"central\" class=\"actor actor-box\" style=\"text-anchor: middle; font-size: 16px; font-weight: 400;\">\u003Ctspan x=\"2161\" dy=\"0\">Model Provider\u003C\u002Ftspan>\u003C\u002Ftext>\u003C\u002Fg>\u003C\u002Fg>\u003Cg>\u003Cline id=\"actor29\" x1=\"1893\" y1=\"65\" x2=\"1893\" y2=\"1391\" class=\"actor-line 200\" stroke-width=\"0.5px\" stroke=\"#999\" name=\"ADAPTER\">\u003C\u002Fline>\u003Cg id=\"root-29\">\u003Crect x=\"1817.5\" y=\"0\" fill=\"#eaeaea\" stroke=\"#666\" width=\"151\" height=\"65\" name=\"ADAPTER\" rx=\"3\" ry=\"3\" class=\"actor actor-top\">\u003C\u002Frect>\u003Ctext x=\"1893\" y=\"32.5\" dominant-baseline=\"central\" alignment-baseline=\"central\" class=\"actor actor-box\" style=\"text-anchor: middle; font-size: 16px; font-weight: 400;\">\u003Ctspan x=\"1893\" dy=\"0\">Provider Adapter\u003C\u002Ftspan>\u003C\u002Ftext>\u003C\u002Fg>\u003C\u002Fg>\u003Cg>\u003Cline id=\"actor28\" x1=\"1642\" y1=\"65\" x2=\"1642\" y2=\"1391\" class=\"actor-line 200\" stroke-width=\"0.5px\" stroke=\"#999\" name=\"SDK\">\u003C\u002Fline>\u003Cg id=\"root-28\">\u003Crect x=\"1567\" y=\"0\" fill=\"#eaeaea\" stroke=\"#666\" width=\"150\" height=\"65\" name=\"SDK\" rx=\"3\" ry=\"3\" class=\"actor actor-top\">\u003C\u002Frect>\u003Ctext x=\"1642\" y=\"32.5\" dominant-baseline=\"central\" alignment-baseline=\"central\" class=\"actor actor-box\" style=\"text-anchor: middle; font-size: 16px; font-weight: 400;\">\u003Ctspan x=\"1642\" dy=\"0\">LiteLLM SDK\u003C\u002Ftspan>\u003C\u002Ftext>\u003C\u002Fg>\u003C\u002Fg>\u003Cg>\u003Cline id=\"actor27\" x1=\"1412\" y1=\"65\" x2=\"1412\" y2=\"1391\" class=\"actor-line 200\" stroke-width=\"0.5px\" stroke=\"#999\" name=\"ROUTER\">\u003C\u002Fline>\u003Cg id=\"root-27\">\u003Crect x=\"1337\" y=\"0\" fill=\"#eaeaea\" stroke=\"#666\" width=\"150\" height=\"65\" name=\"ROUTER\" rx=\"3\" ry=\"3\" class=\"actor actor-top\">\u003C\u002Frect>\u003Ctext x=\"1412\" y=\"32.5\" dominant-baseline=\"central\" alignment-baseline=\"central\" class=\"actor actor-box\" style=\"text-anchor: middle; font-size: 16px; font-weight: 400;\">\u003Ctspan x=\"1412\" dy=\"0\">Router\u003C\u002Ftspan>\u003C\u002Ftext>\u003C\u002Fg>\u003C\u002Fg>\u003Cg>\u003Cline id=\"actor26\" x1=\"1212\" y1=\"65\" x2=\"1212\" y2=\"1391\" class=\"actor-line 200\" stroke-width=\"0.5px\" stroke=\"#999\" name=\"DB\">\u003C\u002Fline>\u003Cg id=\"root-26\">\u003Crect x=\"1137\" y=\"0\" fill=\"#eaeaea\" stroke=\"#666\" width=\"150\" height=\"65\" name=\"DB\" rx=\"3\" ry=\"3\" class=\"actor actor-top\">\u003C\u002Frect>\u003Ctext x=\"1212\" y=\"32.5\" dominant-baseline=\"central\" alignment-baseline=\"central\" class=\"actor actor-box\" style=\"text-anchor: middle; font-size: 16px; font-weight: 400;\">\u003Ctspan x=\"1212\" dy=\"0\">PostgreSQL\u003C\u002Ftspan>\u003C\u002Ftext>\u003C\u002Fg>\u003C\u002Fg>\u003Cg>\u003Cline id=\"actor25\" x1=\"1012\" y1=\"65\" x2=\"1012\" y2=\"1391\" class=\"actor-line 200\" stroke-width=\"0.5px\" stroke=\"#999\" name=\"CACHE\">\u003C\u002Fline>\u003Cg id=\"root-25\">\u003Crect x=\"937\" y=\"0\" fill=\"#eaeaea\" stroke=\"#666\" width=\"150\" height=\"65\" name=\"CACHE\" rx=\"3\" ry=\"3\" class=\"actor actor-top\">\u003C\u002Frect>\u003Ctext x=\"1012\" y=\"32.5\" dominant-baseline=\"central\" alignment-baseline=\"central\" class=\"actor actor-box\" style=\"text-anchor: middle; font-size: 16px; font-weight: 400;\">\u003Ctspan x=\"1012\" dy=\"0\">Memory \u002F Redis\u003C\u002Ftspan>\u003C\u002Ftext>\u003C\u002Fg>\u003C\u002Fg>\u003Cg>\u003Cline id=\"actor24\" x1=\"729\" y1=\"65\" x2=\"729\" y2=\"1391\" class=\"actor-line 200\" stroke-width=\"0.5px\" stroke=\"#999\" name=\"AUTH\">\u003C\u002Fline>\u003Cg id=\"root-24\">\u003Crect x=\"654\" y=\"0\" fill=\"#eaeaea\" stroke=\"#666\" width=\"150\" height=\"65\" name=\"AUTH\" rx=\"3\" ry=\"3\" class=\"actor actor-top\">\u003C\u002Frect>\u003Ctext x=\"729\" y=\"32.5\" dominant-baseline=\"central\" alignment-baseline=\"central\" class=\"actor actor-box\" style=\"text-anchor: middle; font-size: 16px; font-weight: 400;\">\u003Ctspan x=\"729\" dy=\"0\">Auth \u002F Budget\u003C\u002Ftspan>\u003C\u002Ftext>\u003C\u002Fg>\u003C\u002Fg>\u003Cg>\u003Cline id=\"actor23\" x1=\"514\" y1=\"65\" x2=\"514\" y2=\"1391\" class=\"actor-line 200\" stroke-width=\"0.5px\" stroke=\"#999\" name=\"GW\">\u003C\u002Fline>\u003Cg id=\"root-23\">\u003Crect x=\"439\" y=\"0\" fill=\"#eaeaea\" stroke=\"#666\" width=\"150\" height=\"65\" name=\"GW\" rx=\"3\" ry=\"3\" class=\"actor actor-top\">\u003C\u002Frect>\u003Ctext x=\"514\" y=\"32.5\" dominant-baseline=\"central\" alignment-baseline=\"central\" class=\"actor actor-box\" style=\"text-anchor: middle; font-size: 16px; font-weight: 400;\">\u003Ctspan x=\"514\" dy=\"0\">LiteLLM Proxy\u003C\u002Ftspan>\u003C\u002Ftext>\u003C\u002Fg>\u003C\u002Fg>\u003Cg>\u003Cline id=\"actor22\" x1=\"75\" y1=\"65\" x2=\"75\" y2=\"1391\" class=\"actor-line 200\" stroke-width=\"0.5px\" stroke=\"#999\" name=\"APP\">\u003C\u002Fline>\u003Cg id=\"root-22\">\u003Crect x=\"0\" y=\"0\" fill=\"#eaeaea\" stroke=\"#666\" width=\"150\" height=\"65\" name=\"APP\" rx=\"3\" ry=\"3\" class=\"actor actor-top\">\u003C\u002Frect>\u003Ctext x=\"75\" y=\"32.5\" dominant-baseline=\"central\" alignment-baseline=\"central\" class=\"actor actor-box\" style=\"text-anchor: middle; font-size: 16px; font-weight: 400;\">\u003Ctspan x=\"75\" dy=\"0\">Client \u002F Harness\u003C\u002Ftspan>\u003C\u002Ftext>\u003C\u002Fg>\u003C\u002Fg>\u003Cstyle>#mx9uhx86n5szvvyq76{font-family:\"trebuchet ms\",verdana,arial,sans-serif;font-size:16px;fill:#333;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#mx9uhx86n5szvvyq76 .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#mx9uhx86n5szvvyq76 .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#mx9uhx86n5szvvyq76 .error-icon{fill:#552222;}#mx9uhx86n5szvvyq76 .error-text{fill:#552222;stroke:#552222;}#mx9uhx86n5szvvyq76 .edge-thickness-normal{stroke-width:1px;}#mx9uhx86n5szvvyq76 .edge-thickness-thick{stroke-width:3.5px;}#mx9uhx86n5szvvyq76 .edge-pattern-solid{stroke-dasharray:0;}#mx9uhx86n5szvvyq76 .edge-thickness-invisible{stroke-width:0;fill:none;}#mx9uhx86n5szvvyq76 .edge-pattern-dashed{stroke-dasharray:3;}#mx9uhx86n5szvvyq76 .edge-pattern-dotted{stroke-dasharray:2;}#mx9uhx86n5szvvyq76 .marker{fill:#333333;stroke:#333333;}#mx9uhx86n5szvvyq76 .marker.cross{stroke:#333333;}#mx9uhx86n5szvvyq76 svg{font-family:\"trebuchet ms\",verdana,arial,sans-serif;font-size:16px;}#mx9uhx86n5szvvyq76 p{margin:0;}#mx9uhx86n5szvvyq76 .actor{stroke:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);fill:#ECECFF;}#mx9uhx86n5szvvyq76 text.actor&gt;tspan{fill:black;stroke:none;}#mx9uhx86n5szvvyq76 .actor-line{stroke:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);}#mx9uhx86n5szvvyq76 .innerArc{stroke-width:1.5;stroke-dasharray:none;}#mx9uhx86n5szvvyq76 .messageLine0{stroke-width:1.5;stroke-dasharray:none;stroke:#333;}#mx9uhx86n5szvvyq76 .messageLine1{stroke-width:1.5;stroke-dasharray:2,2;stroke:#333;}#mx9uhx86n5szvvyq76 #arrowhead path{fill:#333;stroke:#333;}#mx9uhx86n5szvvyq76 .sequenceNumber{fill:white;}#mx9uhx86n5szvvyq76 #sequencenumber{fill:#333;}#mx9uhx86n5szvvyq76 #crosshead path{fill:#333;stroke:#333;}#mx9uhx86n5szvvyq76 .messageText{fill:#333;stroke:none;}#mx9uhx86n5szvvyq76 .labelBox{stroke:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);fill:#ECECFF;}#mx9uhx86n5szvvyq76 .labelText,#mx9uhx86n5szvvyq76 .labelText&gt;tspan{fill:black;stroke:none;}#mx9uhx86n5szvvyq76 .loopText,#mx9uhx86n5szvvyq76 .loopText&gt;tspan{fill:black;stroke:none;}#mx9uhx86n5szvvyq76 .loopLine{stroke-width:2px;stroke-dasharray:2,2;stroke:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);fill:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);}#mx9uhx86n5szvvyq76 .note{stroke:#aaaa33;fill:#fff5ad;}#mx9uhx86n5szvvyq76 .noteText,#mx9uhx86n5szvvyq76 .noteText&gt;tspan{fill:black;stroke:none;}#mx9uhx86n5szvvyq76 .activation0{fill:#f4f4f4;stroke:#666;}#mx9uhx86n5szvvyq76 .activation1{fill:#f4f4f4;stroke:#666;}#mx9uhx86n5szvvyq76 .activation2{fill:#f4f4f4;stroke:#666;}#mx9uhx86n5szvvyq76 .actorPopupMenu{position:absolute;}#mx9uhx86n5szvvyq76 .actorPopupMenuPanel{position:absolute;fill:#ECECFF;box-shadow:0px 8px 16px 0px rgba(0,0,0,0.2);filter:drop-shadow(3px 5px 2px rgb(0 0 0 \u002F 0.4));}#mx9uhx86n5szvvyq76 .actor-man line{stroke:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);fill:#ECECFF;}#mx9uhx86n5szvvyq76 .actor-man circle,#mx9uhx86n5szvvyq76 line{stroke:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);fill:#ECECFF;stroke-width:2px;}#mx9uhx86n5szvvyq76 :root{--mermaid-font-family:\"trebuchet ms\",verdana,arial,sans-serif;}\u003C\u002Fstyle>\u003Cg>\u003C\u002Fg>\u003Cdefs>\u003Csymbol id=\"computer\" width=\"24\" height=\"24\">\u003Cpath transform=\"scale(.5)\" d=\"M2 2v13h20v-13h-20zm18 11h-16v-9h16v9zm-10.228 6l.466-1h3.524l.467 1h-4.457zm14.228 3h-24l2-6h2.104l-1.33 4h18.45l-1.297-4h2.073l2 6zm-5-10h-14v-7h14v7z\">\u003C\u002Fpath>\u003C\u002Fsymbol>\u003C\u002Fdefs>\u003Cdefs>\u003Csymbol id=\"database\" fill-rule=\"evenodd\" clip-rule=\"evenodd\">\u003Cpath transform=\"scale(.5)\" d=\"M12.258.001l.256.004.255.005.253.008.251.01.249.012.247.015.246.016.242.019.241.02.239.023.236.024.233.027.231.028.229.031.225.032.223.034.22.036.217.038.214.04.211.041.208.043.205.045.201.046.198.048.194.05.191.051.187.053.183.054.18.056.175.057.172.059.168.06.163.061.16.063.155.064.15.066.074.033.073.033.071.034.07.034.069.035.068.035.067.035.066.035.064.036.064.036.062.036.06.036.06.037.058.037.058.037.055.038.055.038.053.038.052.038.051.039.05.039.048.039.047.039.045.04.044.04.043.04.041.04.04.041.039.041.037.041.036.041.034.041.033.042.032.042.03.042.029.042.027.042.026.043.024.043.023.043.021.043.02.043.018.044.017.043.015.044.013.044.012.044.011.045.009.044.007.045.006.045.004.045.002.045.001.045v17l-.001.045-.002.045-.004.045-.006.045-.007.045-.009.044-.011.045-.012.044-.013.044-.015.044-.017.043-.018.044-.02.043-.021.043-.023.043-.024.043-.026.043-.027.042-.029.042-.03.042-.032.042-.033.042-.034.041-.036.041-.037.041-.039.041-.04.041-.041.04-.043.04-.044.04-.045.04-.047.039-.048.039-.05.039-.051.039-.052.038-.053.038-.055.038-.055.038-.058.037-.058.037-.06.037-.06.036-.062.036-.064.036-.064.036-.066.035-.067.035-.068.035-.069.035-.07.034-.071.034-.073.033-.074.033-.15.066-.155.064-.16.063-.163.061-.168.06-.172.059-.175.057-.18.056-.183.054-.187.053-.191.051-.194.05-.198.048-.201.046-.205.045-.208.043-.211.041-.214.04-.217.038-.22.036-.223.034-.225.032-.229.031-.231.028-.233.027-.236.024-.239.023-.241.02-.242.019-.246.016-.247.015-.249.012-.251.01-.253.008-.255.005-.256.004-.258.001-.258-.001-.256-.004-.255-.005-.253-.008-.251-.01-.249-.012-.247-.015-.245-.016-.243-.019-.241-.02-.238-.023-.236-.024-.234-.027-.231-.028-.228-.031-.226-.032-.223-.034-.22-.036-.217-.038-.214-.04-.211-.041-.208-.043-.204-.045-.201-.046-.198-.048-.195-.05-.19-.051-.187-.053-.184-.054-.179-.056-.176-.057-.172-.059-.167-.06-.164-.061-.159-.063-.155-.064-.151-.066-.074-.033-.072-.033-.072-.034-.07-.034-.069-.035-.068-.035-.067-.035-.066-.035-.064-.036-.063-.036-.062-.036-.061-.036-.06-.037-.058-.037-.057-.037-.056-.038-.055-.038-.053-.038-.052-.038-.051-.039-.049-.039-.049-.039-.046-.039-.046-.04-.044-.04-.043-.04-.041-.04-.04-.041-.039-.041-.037-.041-.036-.041-.034-.041-.033-.042-.032-.042-.03-.042-.029-.042-.027-.042-.026-.043-.024-.043-.023-.043-.021-.043-.02-.043-.018-.044-.017-.043-.015-.044-.013-.044-.012-.044-.011-.045-.009-.044-.007-.045-.006-.045-.004-.045-.002-.045-.001-.045v-17l.001-.045.002-.045.004-.045.006-.045.007-.045.009-.044.011-.045.012-.044.013-.044.015-.044.017-.043.018-.044.02-.043.021-.043.023-.043.024-.043.026-.043.027-.042.029-.042.03-.042.032-.042.033-.042.034-.041.036-.041.037-.041.039-.041.04-.041.041-.04.043-.04.044-.04.046-.04.046-.039.049-.039.049-.039.051-.039.052-.038.053-.038.055-.038.056-.038.057-.037.058-.037.06-.037.061-.036.062-.036.063-.036.064-.036.066-.035.067-.035.068-.035.069-.035.07-.034.072-.034.072-.033.074-.033.151-.066.155-.064.159-.063.164-.061.167-.06.172-.059.176-.057.179-.056.184-.054.187-.053.19-.051.195-.05.198-.048.201-.046.204-.045.208-.043.211-.041.214-.04.217-.038.22-.036.223-.034.226-.032.228-.031.231-.028.234-.027.236-.024.238-.023.241-.02.243-.019.245-.016.247-.015.249-.012.251-.01.253-.008.255-.005.256-.004.258-.001.258.001zm-9.258 20.499v.01l.001.021.003.021.004.022.005.021.006.022.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.023.018.024.019.024.021.024.022.025.023.024.024.025.052.049.056.05.061.051.066.051.07.051.075.051.079.052.084.052.088.052.092.052.097.052.102.051.105.052.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.048.144.049.147.047.152.047.155.047.16.045.163.045.167.043.171.043.176.041.178.041.183.039.187.039.19.037.194.035.197.035.202.033.204.031.209.03.212.029.216.027.219.025.222.024.226.021.23.02.233.018.236.016.24.015.243.012.246.01.249.008.253.005.256.004.259.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.021.224-.024.22-.026.216-.027.212-.028.21-.031.205-.031.202-.034.198-.034.194-.036.191-.037.187-.039.183-.04.179-.04.175-.042.172-.043.168-.044.163-.045.16-.046.155-.046.152-.047.148-.048.143-.049.139-.049.136-.05.131-.05.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.053.083-.051.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.05.023-.024.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.023.01-.022.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.127l-.077.055-.08.053-.083.054-.085.053-.087.052-.09.052-.093.051-.095.05-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.045-.118.044-.12.043-.122.042-.124.042-.126.041-.128.04-.13.04-.132.038-.134.038-.135.037-.138.037-.139.035-.142.035-.143.034-.144.033-.147.032-.148.031-.15.03-.151.03-.153.029-.154.027-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.01-.179.008-.179.008-.181.006-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.006-.179-.008-.179-.008-.178-.01-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.027-.153-.029-.151-.03-.15-.03-.148-.031-.146-.032-.145-.033-.143-.034-.141-.035-.14-.035-.137-.037-.136-.037-.134-.038-.132-.038-.13-.04-.128-.04-.126-.041-.124-.042-.122-.042-.12-.044-.117-.043-.116-.045-.113-.045-.112-.046-.109-.047-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.05-.093-.052-.09-.051-.087-.052-.085-.053-.083-.054-.08-.054-.077-.054v4.127zm0-5.654v.011l.001.021.003.021.004.021.005.022.006.022.007.022.009.022.01.022.011.023.012.023.013.023.015.024.016.023.017.024.018.024.019.024.021.024.022.024.023.025.024.024.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.052.11.051.114.051.119.052.123.05.127.051.131.05.135.049.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.044.171.042.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.022.23.02.233.018.236.016.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.012.241-.015.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.048.139-.05.136-.049.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.051.051-.049.023-.025.023-.024.021-.025.02-.024.019-.024.018-.024.017-.024.015-.023.014-.023.013-.024.012-.022.01-.023.01-.023.008-.022.006-.022.006-.022.004-.021.004-.022.001-.021.001-.021v-4.139l-.077.054-.08.054-.083.054-.085.052-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.044-.118.044-.12.044-.122.042-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.035-.143.033-.144.033-.147.033-.148.031-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.009-.179.009-.179.007-.181.007-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.007-.179-.007-.179-.009-.178-.009-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.031-.146-.033-.145-.033-.143-.033-.141-.035-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.04-.126-.041-.124-.042-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.051-.093-.051-.09-.051-.087-.053-.085-.052-.083-.054-.08-.054-.077-.054v4.139zm0-5.666v.011l.001.02.003.022.004.021.005.022.006.021.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.024.018.023.019.024.021.025.022.024.023.024.024.025.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.051.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.043.171.043.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.021.23.02.233.018.236.017.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.013.241-.014.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.049.139-.049.136-.049.131-.051.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.049.023-.025.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.022.01-.023.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.153l-.077.054-.08.054-.083.053-.085.053-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.048-.105.048-.106.048-.109.046-.111.046-.114.046-.115.044-.118.044-.12.043-.122.043-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.034-.143.034-.144.033-.147.032-.148.032-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.024-.161.024-.162.023-.163.023-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.01-.178.01-.179.009-.179.007-.181.006-.182.006-.182.004-.184.003-.184.001-.185.001-.185-.001-.184-.001-.184-.003-.182-.004-.182-.006-.181-.006-.179-.007-.179-.009-.178-.01-.176-.01-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.023-.162-.023-.161-.024-.159-.024-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.032-.146-.032-.145-.033-.143-.034-.141-.034-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.041-.126-.041-.124-.041-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.048-.105-.048-.102-.048-.1-.05-.097-.049-.095-.051-.093-.051-.09-.052-.087-.052-.085-.053-.083-.053-.08-.054-.077-.054v4.153zm8.74-8.179l-.257.004-.254.005-.25.008-.247.011-.244.012-.241.014-.237.016-.233.018-.231.021-.226.022-.224.023-.22.026-.216.027-.212.028-.21.031-.205.032-.202.033-.198.034-.194.036-.191.038-.187.038-.183.04-.179.041-.175.042-.172.043-.168.043-.163.045-.16.046-.155.046-.152.048-.148.048-.143.048-.139.049-.136.05-.131.05-.126.051-.123.051-.118.051-.114.052-.11.052-.106.052-.101.052-.096.052-.092.052-.088.052-.083.052-.079.052-.074.051-.07.052-.065.051-.06.05-.056.05-.051.05-.023.025-.023.024-.021.024-.02.025-.019.024-.018.024-.017.023-.015.024-.014.023-.013.023-.012.023-.01.023-.01.022-.008.022-.006.023-.006.021-.004.022-.004.021-.001.021-.001.021.001.021.001.021.004.021.004.022.006.021.006.023.008.022.01.022.01.023.012.023.013.023.014.023.015.024.017.023.018.024.019.024.02.025.021.024.023.024.023.025.051.05.056.05.06.05.065.051.07.052.074.051.079.052.083.052.088.052.092.052.096.052.101.052.106.052.11.052.114.052.118.051.123.051.126.051.131.05.136.05.139.049.143.048.148.048.152.048.155.046.16.046.163.045.168.043.172.043.175.042.179.041.183.04.187.038.191.038.194.036.198.034.202.033.205.032.21.031.212.028.216.027.22.026.224.023.226.022.231.021.233.018.237.016.241.014.244.012.247.011.25.008.254.005.257.004.26.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.022.224-.023.22-.026.216-.027.212-.028.21-.031.205-.032.202-.033.198-.034.194-.036.191-.038.187-.038.183-.04.179-.041.175-.042.172-.043.168-.043.163-.045.16-.046.155-.046.152-.048.148-.048.143-.048.139-.049.136-.05.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.05.051-.05.023-.025.023-.024.021-.024.02-.025.019-.024.018-.024.017-.023.015-.024.014-.023.013-.023.012-.023.01-.023.01-.022.008-.022.006-.023.006-.021.004-.022.004-.021.001-.021.001-.021-.001-.021-.001-.021-.004-.021-.004-.022-.006-.021-.006-.023-.008-.022-.01-.022-.01-.023-.012-.023-.013-.023-.014-.023-.015-.024-.017-.023-.018-.024-.019-.024-.02-.025-.021-.024-.023-.024-.023-.025-.051-.05-.056-.05-.06-.05-.065-.051-.07-.052-.074-.051-.079-.052-.083-.052-.088-.052-.092-.052-.096-.052-.101-.052-.106-.052-.11-.052-.114-.052-.118-.051-.123-.051-.126-.051-.131-.05-.136-.05-.139-.049-.143-.048-.148-.048-.152-.048-.155-.046-.16-.046-.163-.045-.168-.043-.172-.043-.175-.042-.179-.041-.183-.04-.187-.038-.191-.038-.194-.036-.198-.034-.202-.033-.205-.032-.21-.031-.212-.028-.216-.027-.22-.026-.224-.023-.226-.022-.231-.021-.233-.018-.237-.016-.241-.014-.244-.012-.247-.011-.25-.008-.254-.005-.257-.004-.26-.001-.26.001z\">\u003C\u002Fpath>\u003C\u002Fsymbol>\u003C\u002Fdefs>\u003Cdefs>\u003Csymbol id=\"clock\" width=\"24\" height=\"24\">\u003Cpath transform=\"scale(.5)\" d=\"M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm5.848 12.459c.202.038.202.333.001.372-1.907.361-6.045 1.111-6.547 1.111-.719 0-1.301-.582-1.301-1.301 0-.512.77-5.447 1.125-7.445.034-.192.312-.181.343.014l.985 6.238 5.394 1.011z\">\u003C\u002Fpath>\u003C\u002Fsymbol>\u003C\u002Fdefs>\u003Cdefs>\u003Cmarker id=\"arrowhead\" refX=\"7.9\" refY=\"5\" markerUnits=\"userSpaceOnUse\" markerWidth=\"12\" markerHeight=\"12\" orient=\"auto-start-reverse\">\u003Cpath d=\"M -1 0 L 10 5 L 0 10 z\">\u003C\u002Fpath>\u003C\u002Fmarker>\u003C\u002Fdefs>\u003Cdefs>\u003Cmarker id=\"crosshead\" markerWidth=\"15\" markerHeight=\"8\" orient=\"auto\" refX=\"4\" refY=\"4.5\">\u003Cpath fill=\"none\" stroke=\"#000000\" stroke-width=\"1pt\" d=\"M 1,2 L 6,7 M 6,2 L 1,7\" style=\"stroke-dasharray: 0, 0;\">\u003C\u002Fpath>\u003C\u002Fmarker>\u003C\u002Fdefs>\u003Cdefs>\u003Cmarker id=\"filled-head\" refX=\"15.5\" refY=\"7\" markerWidth=\"20\" markerHeight=\"28\" orient=\"auto\">\u003Cpath d=\"M 18,7 L9,13 L14,7 L9,1 Z\">\u003C\u002Fpath>\u003C\u002Fmarker>\u003C\u002Fdefs>\u003Cdefs>\u003Cmarker id=\"sequencenumber\" refX=\"15\" refY=\"15\" markerWidth=\"60\" markerHeight=\"40\" orient=\"auto\">\u003Ccircle cx=\"15\" cy=\"15\" r=\"6\">\u003C\u002Fcircle>\u003C\u002Fmarker>\u003C\u002Fdefs>\u003Cg>\u003Cline x1=\"718\" y1=\"231\" x2=\"1223\" y2=\"231\" class=\"loopLine\">\u003C\u002Fline>\u003Cline x1=\"1223\" y1=\"231\" x2=\"1223\" y2=\"531\" class=\"loopLine\">\u003C\u002Fline>\u003Cline x1=\"718\" y1=\"531\" x2=\"1223\" y2=\"531\" class=\"loopLine\">\u003C\u002Fline>\u003Cline x1=\"718\" y1=\"231\" x2=\"718\" y2=\"531\" class=\"loopLine\">\u003C\u002Fline>\u003Cline x1=\"718\" y1=\"334\" x2=\"1223\" y2=\"334\" class=\"loopLine\" style=\"stroke-dasharray: 3, 3;\">\u003C\u002Fline>\u003Cpolygon points=\"718,231 768,231 768,244 759.6,251 718,251\" class=\"labelBox\">\u003C\u002Fpolygon>\u003Ctext x=\"743\" y=\"244\" text-anchor=\"middle\" dominant-baseline=\"middle\" alignment-baseline=\"middle\" class=\"labelText\" style=\"font-size: 16px; font-weight: 400;\">alt\u003C\u002Ftext>\u003Ctext x=\"995.5\" y=\"249\" text-anchor=\"middle\" class=\"loopText\" style=\"font-size: 16px; font-weight: 400;\">\u003Ctspan x=\"995.5\">[Cache Hit]\u003C\u002Ftspan>\u003C\u002Ftext>\u003Ctext x=\"970.5\" y=\"352\" text-anchor=\"middle\" class=\"loopText\" style=\"font-size: 16px; font-weight: 400;\">[Cache Miss]\u003C\u002Ftext>\u003C\u002Fg>\u003Ctext x=\"293\" y=\"80\" text-anchor=\"middle\" dominant-baseline=\"middle\" alignment-baseline=\"middle\" class=\"messageText\" dy=\"1em\" style=\"font-size: 16px; font-weight: 400;\">POST \u002Fv1\u002Fchat\u002Fcompletions + Bearer Virtual Key\u003C\u002Ftext>\u003Cline x1=\"76\" y1=\"117\" x2=\"510\" y2=\"117\" class=\"messageLine0\" stroke-width=\"2\" stroke=\"none\" marker-end=\"url(#arrowhead)\" style=\"fill: none;\">\u003C\u002Fline>\u003Cline x1=\"76\" y1=\"117\" x2=\"76\" y2=\"117\" stroke-width=\"0\" marker-start=\"url(#sequencenumber)\">\u003C\u002Fline>\u003Ctext x=\"76\" y=\"121\" font-family=\"sans-serif\" font-size=\"12px\" text-anchor=\"middle\" class=\"sequenceNumber\">1\u003C\u002Ftext>\u003Ctext x=\"620\" y=\"132\" text-anchor=\"middle\" dominant-baseline=\"middle\" alignment-baseline=\"middle\" class=\"messageText\" dy=\"1em\" style=\"font-size: 16px; font-weight: 400;\">解析 Key \u002F 请求身份\u003C\u002Ftext>\u003Cline x1=\"515\" y1=\"169\" x2=\"725\" y2=\"169\" class=\"messageLine0\" stroke-width=\"2\" stroke=\"none\" marker-end=\"url(#arrowhead)\" style=\"fill: none;\">\u003C\u002Fline>\u003Cline x1=\"515\" y1=\"169\" x2=\"515\" y2=\"169\" stroke-width=\"0\" marker-start=\"url(#sequencenumber)\">\u003C\u002Fline>\u003Ctext x=\"515\" y=\"173\" font-family=\"sans-serif\" font-size=\"12px\" text-anchor=\"middle\" class=\"sequenceNumber\">2\u003C\u002Ftext>\u003Ctext x=\"869\" y=\"184\" text-anchor=\"middle\" dominant-baseline=\"middle\" alignment-baseline=\"middle\" class=\"messageText\" dy=\"1em\" style=\"font-size: 16px; font-weight: 400;\">查 Key \u002F Budget \u002F Rate Limit\u003C\u002Ftext>\u003Cline x1=\"730\" y1=\"221\" x2=\"1008\" y2=\"221\" class=\"messageLine0\" stroke-width=\"2\" stroke=\"none\" marker-end=\"url(#arrowhead)\" style=\"fill: none;\">\u003C\u002Fline>\u003Cline x1=\"730\" y1=\"221\" x2=\"730\" y2=\"221\" stroke-width=\"0\" marker-start=\"url(#sequencenumber)\">\u003C\u002Fline>\u003Ctext x=\"730\" y=\"225\" font-family=\"sans-serif\" font-size=\"12px\" text-anchor=\"middle\" class=\"sequenceNumber\">3\u003C\u002Ftext>\u003Ctext x=\"872\" y=\"282\" text-anchor=\"middle\" dominant-baseline=\"middle\" alignment-baseline=\"middle\" class=\"messageText\" dy=\"1em\" style=\"font-size: 16px; font-weight: 400;\">Key \u002F Scope \u002F Usage\u003C\u002Ftext>\u003Cline x1=\"1011\" y1=\"319\" x2=\"733\" y2=\"319\" class=\"messageLine1\" stroke-width=\"2\" stroke=\"none\" marker-end=\"url(#arrowhead)\" style=\"stroke-dasharray: 3, 3; fill: none;\">\u003C\u002Fline>\u003Cline x1=\"1011\" y1=\"319\" x2=\"1011\" y2=\"319\" stroke-width=\"0\" marker-start=\"url(#sequencenumber)\">\u003C\u002Fline>\u003Ctext x=\"1011\" y=\"323\" font-family=\"sans-serif\" font-size=\"12px\" text-anchor=\"middle\" class=\"sequenceNumber\">4\u003C\u002Ftext>\u003Ctext x=\"969\" y=\"380\" text-anchor=\"middle\" dominant-baseline=\"middle\" alignment-baseline=\"middle\" class=\"messageText\" dy=\"1em\" style=\"font-size: 16px; font-weight: 400;\">查询 Key \u002F User \u002F Team\u003C\u002Ftext>\u003Cline x1=\"730\" y1=\"417\" x2=\"1208\" y2=\"417\" class=\"messageLine0\" stroke-width=\"2\" stroke=\"none\" marker-end=\"url(#arrowhead)\" style=\"fill: none;\">\u003C\u002Fline>\u003Cline x1=\"730\" y1=\"417\" x2=\"730\" y2=\"417\" stroke-width=\"0\" marker-start=\"url(#sequencenumber)\">\u003C\u002Fline>\u003Ctext x=\"730\" y=\"421\" font-family=\"sans-serif\" font-size=\"12px\" text-anchor=\"middle\" class=\"sequenceNumber\">5\u003C\u002Ftext>\u003Ctext x=\"972\" y=\"432\" text-anchor=\"middle\" dominant-baseline=\"middle\" alignment-baseline=\"middle\" class=\"messageText\" dy=\"1em\" style=\"font-size: 16px; font-weight: 400;\">权限和预算信息\u003C\u002Ftext>\u003Cline x1=\"1211\" y1=\"469\" x2=\"733\" y2=\"469\" class=\"messageLine1\" stroke-width=\"2\" stroke=\"none\" marker-end=\"url(#arrowhead)\" style=\"stroke-dasharray: 3, 3; fill: none;\">\u003C\u002Fline>\u003Cline x1=\"1211\" y1=\"469\" x2=\"1211\" y2=\"469\" stroke-width=\"0\" marker-start=\"url(#sequencenumber)\">\u003C\u002Fline>\u003Ctext x=\"1211\" y=\"473\" font-family=\"sans-serif\" font-size=\"12px\" text-anchor=\"middle\" class=\"sequenceNumber\">6\u003C\u002Ftext>\u003Ctext x=\"869\" y=\"484\" text-anchor=\"middle\" dominant-baseline=\"middle\" alignment-baseline=\"middle\" class=\"messageText\" dy=\"1em\" style=\"font-size: 16px; font-weight: 400;\">回填缓存\u003C\u002Ftext>\u003Cline x1=\"730\" y1=\"521\" x2=\"1008\" y2=\"521\" class=\"messageLine0\" stroke-width=\"2\" stroke=\"none\" marker-end=\"url(#arrowhead)\" style=\"fill: none;\">\u003C\u002Fline>\u003Cline x1=\"730\" y1=\"521\" x2=\"730\" y2=\"521\" stroke-width=\"0\" marker-start=\"url(#sequencenumber)\">\u003C\u002Fline>\u003Ctext x=\"730\" y=\"525\" font-family=\"sans-serif\" font-size=\"12px\" text-anchor=\"middle\" class=\"sequenceNumber\">7\u003C\u002Ftext>\u003Ctext x=\"623\" y=\"546\" text-anchor=\"middle\" dominant-baseline=\"middle\" alignment-baseline=\"middle\" class=\"messageText\" dy=\"1em\" style=\"font-size: 16px; font-weight: 400;\">认证通过 \u002F 限额检查\u003C\u002Ftext>\u003Cline x1=\"728\" y1=\"583\" x2=\"518\" y2=\"583\" class=\"messageLine1\" stroke-width=\"2\" stroke=\"none\" marker-end=\"url(#arrowhead)\" style=\"stroke-dasharray: 3, 3; fill: none;\">\u003C\u002Fline>\u003Cline x1=\"728\" y1=\"583\" x2=\"728\" y2=\"583\" stroke-width=\"0\" marker-start=\"url(#sequencenumber)\">\u003C\u002Fline>\u003Ctext x=\"728\" y=\"587\" font-family=\"sans-serif\" font-size=\"12px\" text-anchor=\"middle\" class=\"sequenceNumber\">8\u003C\u002Ftext>\u003Ctext x=\"515\" y=\"598\" text-anchor=\"middle\" dominant-baseline=\"middle\" alignment-baseline=\"middle\" class=\"messageText\" dy=\"1em\" style=\"font-size: 16px; font-weight: 400;\">请求预处理、模型别名和参数检查\u003C\u002Ftext>\u003Cpath d=\"M 515,635 C 575,625 575,665 515,655\" class=\"messageLine0\" stroke-width=\"2\" stroke=\"none\" marker-end=\"url(#arrowhead)\" style=\"fill: none;\">\u003C\u002Fpath>\u003Cline x1=\"515\" y1=\"635\" x2=\"515\" y2=\"635\" stroke-width=\"0\" marker-start=\"url(#sequencenumber)\">\u003C\u002Fline>\u003Ctext x=\"515\" y=\"639\" font-family=\"sans-serif\" font-size=\"12px\" text-anchor=\"middle\" class=\"sequenceNumber\">9\u003C\u002Ftext>\u003Ctext x=\"962\" y=\"680\" text-anchor=\"middle\" dominant-baseline=\"middle\" alignment-baseline=\"middle\" class=\"messageText\" dy=\"1em\" style=\"font-size: 16px; font-weight: 400;\">按 model group 路由\u003C\u002Ftext>\u003Cline x1=\"515\" y1=\"717\" x2=\"1408\" y2=\"717\" class=\"messageLine0\" stroke-width=\"2\" stroke=\"none\" marker-end=\"url(#arrowhead)\" style=\"fill: none;\">\u003C\u002Fline>\u003Cline x1=\"515\" y1=\"717\" x2=\"515\" y2=\"717\" stroke-width=\"0\" marker-start=\"url(#sequencenumber)\">\u003C\u002Fline>\u003Ctext x=\"515\" y=\"721\" font-family=\"sans-serif\" font-size=\"12px\" text-anchor=\"middle\" class=\"sequenceNumber\">10\u003C\u002Ftext>\u003Ctext x=\"1413\" y=\"732\" text-anchor=\"middle\" dominant-baseline=\"middle\" alignment-baseline=\"middle\" class=\"messageText\" dy=\"1em\" style=\"font-size: 16px; font-weight: 400;\">选择 deployment \u002F 检查 cooldown\u003C\u002Ftext>\u003Cpath d=\"M 1413,769 C 1473,759 1473,799 1413,789\" class=\"messageLine0\" stroke-width=\"2\" stroke=\"none\" marker-end=\"url(#arrowhead)\" style=\"fill: none;\">\u003C\u002Fpath>\u003Cline x1=\"1413\" y1=\"769\" x2=\"1413\" y2=\"769\" stroke-width=\"0\" marker-start=\"url(#sequencenumber)\">\u003C\u002Fline>\u003Ctext x=\"1413\" y=\"773\" font-family=\"sans-serif\" font-size=\"12px\" text-anchor=\"middle\" class=\"sequenceNumber\">11\u003C\u002Ftext>\u003Ctext x=\"1526\" y=\"814\" text-anchor=\"middle\" dominant-baseline=\"middle\" alignment-baseline=\"middle\" class=\"messageText\" dy=\"1em\" style=\"font-size: 16px; font-weight: 400;\">统一 completion 调用\u003C\u002Ftext>\u003Cline x1=\"1413\" y1=\"851\" x2=\"1638\" y2=\"851\" class=\"messageLine0\" stroke-width=\"2\" stroke=\"none\" marker-end=\"url(#arrowhead)\" style=\"fill: none;\">\u003C\u002Fline>\u003Cline x1=\"1413\" y1=\"851\" x2=\"1413\" y2=\"851\" stroke-width=\"0\" marker-start=\"url(#sequencenumber)\">\u003C\u002Fline>\u003Ctext x=\"1413\" y=\"855\" font-family=\"sans-serif\" font-size=\"12px\" text-anchor=\"middle\" class=\"sequenceNumber\">12\u003C\u002Ftext>\u003Ctext x=\"1766\" y=\"866\" text-anchor=\"middle\" dominant-baseline=\"middle\" alignment-baseline=\"middle\" class=\"messageText\" dy=\"1em\" style=\"font-size: 16px; font-weight: 400;\">Provider 识别和参数转换\u003C\u002Ftext>\u003Cline x1=\"1643\" y1=\"903\" x2=\"1889\" y2=\"903\" class=\"messageLine0\" stroke-width=\"2\" stroke=\"none\" marker-end=\"url(#arrowhead)\" style=\"fill: none;\">\u003C\u002Fline>\u003Cline x1=\"1643\" y1=\"903\" x2=\"1643\" y2=\"903\" stroke-width=\"0\" marker-start=\"url(#sequencenumber)\">\u003C\u002Fline>\u003Ctext x=\"1643\" y=\"907\" font-family=\"sans-serif\" font-size=\"12px\" text-anchor=\"middle\" class=\"sequenceNumber\">13\u003C\u002Ftext>\u003Ctext x=\"2026\" y=\"918\" text-anchor=\"middle\" dominant-baseline=\"middle\" alignment-baseline=\"middle\" class=\"messageText\" dy=\"1em\" style=\"font-size: 16px; font-weight: 400;\">Provider-native HTTP 请求\u003C\u002Ftext>\u003Cline x1=\"1894\" y1=\"955\" x2=\"2157\" y2=\"955\" class=\"messageLine0\" stroke-width=\"2\" stroke=\"none\" marker-end=\"url(#arrowhead)\" style=\"fill: none;\">\u003C\u002Fline>\u003Cline x1=\"1894\" y1=\"955\" x2=\"1894\" y2=\"955\" stroke-width=\"0\" marker-start=\"url(#sequencenumber)\">\u003C\u002Fline>\u003Ctext x=\"1894\" y=\"959\" font-family=\"sans-serif\" font-size=\"12px\" text-anchor=\"middle\" class=\"sequenceNumber\">14\u003C\u002Ftext>\u003Ctext x=\"2029\" y=\"970\" text-anchor=\"middle\" dominant-baseline=\"middle\" alignment-baseline=\"middle\" class=\"messageText\" dy=\"1em\" style=\"font-size: 16px; font-weight: 400;\">Provider 响应 \u002F Stream\u003C\u002Ftext>\u003Cline x1=\"2160\" y1=\"1007\" x2=\"1897\" y2=\"1007\" class=\"messageLine1\" stroke-width=\"2\" stroke=\"none\" marker-end=\"url(#arrowhead)\" style=\"stroke-dasharray: 3, 3; fill: none;\">\u003C\u002Fline>\u003Cline x1=\"2160\" y1=\"1007\" x2=\"2160\" y2=\"1007\" stroke-width=\"0\" marker-start=\"url(#sequencenumber)\">\u003C\u002Fline>\u003Ctext x=\"2160\" y=\"1011\" font-family=\"sans-serif\" font-size=\"12px\" text-anchor=\"middle\" class=\"sequenceNumber\">15\u003C\u002Ftext>\u003Ctext x=\"1769\" y=\"1022\" text-anchor=\"middle\" dominant-baseline=\"middle\" alignment-baseline=\"middle\" class=\"messageText\" dy=\"1em\" style=\"font-size: 16px; font-weight: 400;\">统一响应结构\u003C\u002Ftext>\u003Cline x1=\"1892\" y1=\"1059\" x2=\"1646\" y2=\"1059\" class=\"messageLine1\" stroke-width=\"2\" stroke=\"none\" marker-end=\"url(#arrowhead)\" style=\"stroke-dasharray: 3, 3; fill: none;\">\u003C\u002Fline>\u003Cline x1=\"1892\" y1=\"1059\" x2=\"1892\" y2=\"1059\" stroke-width=\"0\" marker-start=\"url(#sequencenumber)\">\u003C\u002Fline>\u003Ctext x=\"1892\" y=\"1063\" font-family=\"sans-serif\" font-size=\"12px\" text-anchor=\"middle\" class=\"sequenceNumber\">16\u003C\u002Ftext>\u003Ctext x=\"1529\" y=\"1074\" text-anchor=\"middle\" dominant-baseline=\"middle\" alignment-baseline=\"middle\" class=\"messageText\" dy=\"1em\" style=\"font-size: 16px; font-weight: 400;\">ModelResponse\u003C\u002Ftext>\u003Cline x1=\"1641\" y1=\"1111\" x2=\"1416\" y2=\"1111\" class=\"messageLine1\" stroke-width=\"2\" stroke=\"none\" marker-end=\"url(#arrowhead)\" style=\"stroke-dasharray: 3, 3; fill: none;\">\u003C\u002Fline>\u003Cline x1=\"1641\" y1=\"1111\" x2=\"1641\" y2=\"1111\" stroke-width=\"0\" marker-start=\"url(#sequencenumber)\">\u003C\u002Fline>\u003Ctext x=\"1641\" y=\"1115\" font-family=\"sans-serif\" font-size=\"12px\" text-anchor=\"middle\" class=\"sequenceNumber\">17\u003C\u002Ftext>\u003Ctext x=\"965\" y=\"1126\" text-anchor=\"middle\" dominant-baseline=\"middle\" alignment-baseline=\"middle\" class=\"messageText\" dy=\"1em\" style=\"font-size: 16px; font-weight: 400;\">结果\u003C\u002Ftext>\u003Cline x1=\"1411\" y1=\"1163\" x2=\"518\" y2=\"1163\" class=\"messageLine1\" stroke-width=\"2\" stroke=\"none\" marker-end=\"url(#arrowhead)\" style=\"stroke-dasharray: 3, 3; fill: none;\">\u003C\u002Fline>\u003Cline x1=\"1411\" y1=\"1163\" x2=\"1411\" y2=\"1163\" stroke-width=\"0\" marker-start=\"url(#sequencenumber)\">\u003C\u002Fline>\u003Ctext x=\"1411\" y=\"1167\" font-family=\"sans-serif\" font-size=\"12px\" text-anchor=\"middle\" class=\"sequenceNumber\">18\u003C\u002Ftext>\u003Ctext x=\"296\" y=\"1178\" text-anchor=\"middle\" dominant-baseline=\"middle\" alignment-baseline=\"middle\" class=\"messageText\" dy=\"1em\" style=\"font-size: 16px; font-weight: 400;\">统一 API 响应\u003C\u002Ftext>\u003Cline x1=\"513\" y1=\"1215\" x2=\"79\" y2=\"1215\" class=\"messageLine1\" stroke-width=\"2\" stroke=\"none\" marker-end=\"url(#arrowhead)\" style=\"stroke-dasharray: 3, 3; fill: none;\">\u003C\u002Fline>\u003Cline x1=\"513\" y1=\"1215\" x2=\"513\" y2=\"1215\" stroke-width=\"0\" marker-start=\"url(#sequencenumber)\">\u003C\u002Fline>\u003Ctext x=\"513\" y=\"1219\" font-family=\"sans-serif\" font-size=\"12px\" text-anchor=\"middle\" class=\"sequenceNumber\">19\u003C\u002Ftext>\u003Ctext x=\"1448\" y=\"1230\" text-anchor=\"middle\" dominant-baseline=\"middle\" alignment-baseline=\"middle\" class=\"messageText\" dy=\"1em\" style=\"font-size: 16px; font-weight: 400;\">异步成本核算 \u002F Spend \u002F Callback\u003C\u002Ftext>\u003Cline x1=\"515\" y1=\"1267\" x2=\"2381.5\" y2=\"1267\" class=\"messageLine1\" stroke-width=\"2\" stroke=\"none\" marker-end=\"url(#arrowhead)\" style=\"stroke-dasharray: 3, 3; fill: none;\">\u003C\u002Fline>\u003Cline x1=\"515\" y1=\"1267\" x2=\"515\" y2=\"1267\" stroke-width=\"0\" marker-start=\"url(#sequencenumber)\">\u003C\u002Fline>\u003Ctext x=\"515\" y=\"1271\" font-family=\"sans-serif\" font-size=\"12px\" text-anchor=\"middle\" class=\"sequenceNumber\">20\u003C\u002Ftext>\u003Ctext x=\"1700\" y=\"1282\" text-anchor=\"middle\" dominant-baseline=\"middle\" alignment-baseline=\"middle\" class=\"messageText\" dy=\"1em\" style=\"font-size: 16px; font-weight: 400;\">累积或缓冲使用量\u003C\u002Ftext>\u003Cline x1=\"2384.5\" y1=\"1319\" x2=\"1016\" y2=\"1319\" class=\"messageLine0\" stroke-width=\"2\" stroke=\"none\" marker-end=\"url(#arrowhead)\" style=\"fill: none;\">\u003C\u002Fline>\u003Cline x1=\"2384.5\" y1=\"1319\" x2=\"2384.5\" y2=\"1319\" stroke-width=\"0\" marker-start=\"url(#sequencenumber)\">\u003C\u002Fline>\u003Ctext x=\"2384.5\" y=\"1323\" font-family=\"sans-serif\" font-size=\"12px\" text-anchor=\"middle\" class=\"sequenceNumber\">21\u003C\u002Ftext>\u003Ctext x=\"1800\" y=\"1334\" text-anchor=\"middle\" dominant-baseline=\"middle\" alignment-baseline=\"middle\" class=\"messageText\" dy=\"1em\" style=\"font-size: 16px; font-weight: 400;\">批量持久化 Spend Logs\u003C\u002Ftext>\u003Cline x1=\"2384.5\" y1=\"1371\" x2=\"1216\" y2=\"1371\" class=\"messageLine0\" stroke-width=\"2\" stroke=\"none\" marker-end=\"url(#arrowhead)\" style=\"fill: none;\">\u003C\u002Fline>\u003Cline x1=\"2384.5\" y1=\"1371\" x2=\"2384.5\" y2=\"1371\" stroke-width=\"0\" marker-start=\"url(#sequencenumber)\">\u003C\u002Fline>\u003Ctext x=\"2384.5\" y=\"1375\" font-family=\"sans-serif\" font-size=\"12px\" text-anchor=\"middle\" class=\"sequenceNumber\">22\u003C\u002Ftext>\u003C\u002Fsvg>\u003Cdiv class=\"md-editor-mermaid-action\">\u003Cspan class=\"md-editor-mermaid-copy\">\u003Csvg xmlns=\"http:\u002F\u002Fwww.w3.org\u002F2000\u002Fsvg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"lucide lucide-copy md-editor-icon\">\u003Crect width=\"14\" height=\"14\" x=\"8\" y=\"8\" rx=\"2\" ry=\"2\">\u003C\u002Frect>\u003Cpath d=\"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2\">\u003C\u002Fpath>\u003C\u002Fsvg>\u003C\u002Fspan>\u003Cspan class=\"md-editor-mermaid-zoom\">\u003Csvg xmlns=\"http:\u002F\u002Fwww.w3.org\u002F2000\u002Fsvg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"lucide lucide-pin-off md-editor-icon\">\u003Cpath d=\"M12 17v5\">\u003C\u002Fpath>\u003Cpath d=\"M15 9.34V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H7.89\">\u003C\u002Fpath>\u003Cpath d=\"m2 2 20 20\">\u003C\u002Fpath>\u003Cpath d=\"M9 9v1.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h11\">\u003C\u002Fpath>\u003C\u002Fsvg>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002Fp>\u003Ch3 data-line=\"301\" id=\"4.2 请求阶段拆解\">4.2 请求阶段拆解\u003C\u002Fh3>\n\u003Ctable data-line=\"303\">\n\u003Cthead data-line=\"303\">\n\u003Ctr data-line=\"303\">\n\u003Cth>阶段\u003C\u002Fth>\n\u003Cth>主要职责\u003C\u002Fth>\n\u003Cth>关注点\u003C\u002Fth>\n\u003C\u002Ftr>\n\u003C\u002Fthead>\n\u003Ctbody data-line=\"305\">\n\u003Ctr data-line=\"305\">\n\u003Ctd>接入\u003C\u002Ftd>\n\u003Ctd>接收统一 API 请求\u003C\u002Ftd>\n\u003Ctd>路径、Header、Body、流式标志\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr data-line=\"306\">\n\u003Ctd>认证\u003C\u002Ftd>\n\u003Ctd>校验 Master Key \u002F Virtual Key \u002F JWT 等\u003C\u002Ftd>\n\u003Ctd>Key 有效期、权限、来源\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr data-line=\"307\">\n\u003Ctd>配额检查\u003C\u002Ftd>\n\u003Ctd>预算、RPM、TPM、并发数\u003C\u002Ftd>\n\u003Ctd>Key \u002F User \u002F Team \u002F Server\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr data-line=\"308\">\n\u003Ctd>预处理\u003C\u002Ftd>\n\u003Ctd>模型别名、请求参数、策略和上下文\u003C\u002Ftd>\n\u003Ctd>参数兼容性\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr data-line=\"309\">\n\u003Ctd>路由\u003C\u002Ftd>\n\u003Ctd>选择模型组和具体 Deployment\u003C\u002Ftd>\n\u003Ctd>负载均衡、冷却、健康状态\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr data-line=\"310\">\n\u003Ctd>Provider 调用\u003C\u002Ftd>\n\u003Ctd>将统一请求转换成供应商请求\u003C\u002Ftd>\n\u003Ctd>API Base、凭证、参数映射\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr data-line=\"311\">\n\u003Ctd>响应转换\u003C\u002Ftd>\n\u003Ctd>统一结果和流式事件\u003C\u002Ftd>\n\u003Ctd>Usage、Finish Reason、异常\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr data-line=\"312\">\n\u003Ctd>计费与审计\u003C\u002Ftd>\n\u003Ctd>计算费用、更新用量、记录日志\u003C\u002Ftd>\n\u003Ctd>异步写入、幂等、重试\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003C\u002Ftbody>\n\u003C\u002Ftable>\n\u003Ch3 data-line=\"314\" id=\"4.3 一个关键性能设计：请求返回与账务写入解耦\">4.3 一个关键性能设计：请求返回与账务写入解耦\u003C\u002Fh3>\n\u003Cp data-line=\"316\">官方架构说明：Key 缓存未命中时可能需要数据库读取；请求成功后的 Spend Logging、限流用量更新和回调通常在后台异步执行，而不是把所有数据库写入放在同步推理路径上。\u003C\u002Fp>\n\u003Cp data-line=\"318\">这带来三个收益：\u003C\u002Fp>\n\u003Cul data-line=\"320\">\n\u003Cli data-line=\"320\">降低请求尾延迟。\u003C\u002Fli>\n\u003Cli data-line=\"321\">避免每次模型调用都同步写多张账务表。\u003C\u002Fli>\n\u003Cli data-line=\"322\">可以批量聚合 Spend Update，减少数据库写入压力。\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Cp data-line=\"324\">但也意味着需要考虑：\u003C\u002Fp>\n\u003Cul data-line=\"326\">\n\u003Cli data-line=\"326\">后台任务失败后的重试与补偿。\u003C\u002Fli>\n\u003Cli data-line=\"327\">Redis 不可用时的降级策略。\u003C\u002Fli>\n\u003Cli data-line=\"328\">进程异常退出时未刷盘的缓冲数据。\u003C\u002Fli>\n\u003Cli data-line=\"329\">账务统计的最终一致性和延迟。\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Chr data-line=\"331\">\n\u003Ch2 data-line=\"333\" id=\"5. Provider 适配架构：多厂商如何统一\">5. Provider 适配架构：多厂商如何统一\u003C\u002Fh2>\n\u003Ch3 data-line=\"335\" id=\"5.1 Provider Adapter 的逻辑\">5.1 Provider Adapter 的逻辑\u003C\u002Fh3>\n\u003Cp data-line=\"337\">LiteLLM 将模型调用统一成标准入口，再根据 Provider 和 API 类型选择对应实现。\u003C\u002Fp>\n\u003Cp data-line=\"339\" class=\"md-editor-mermaid\" data-mermaid-theme=\"light\" data-closed=\"true\" data-processed=\"\" data-content=\"flowchart TB\n    REQ[&quot;统一请求：model \u002F messages \u002F params&quot;]\n    DETECT[&quot;Provider Resolver：识别 provider \u002F model \u002F api_base&quot;]\n    SELECT[&quot;选择 Provider Handler&quot;]\n    TRANS[&quot;Request Transformation&quot;]\n    HTTP[&quot;HTTP Client \u002F Cloud SDK&quot;]\n    VENDOR[&quot;厂商 API&quot;]\n    RESP[&quot;Response Transformation&quot;]\n    NORMAL[&quot;统一 ModelResponse \u002F Stream \u002F Error&quot;]\n\n    REQ --&gt; DETECT --&gt; SELECT --&gt; TRANS --&gt; HTTP --&gt; VENDOR\n    VENDOR --&gt; RESP --&gt; NORMAL\">\u003Csvg id=\"mx9uhx86k5w3eff33l\" width=\"100%\" xmlns=\"http:\u002F\u002Fwww.w3.org\u002F2000\u002Fsvg\" xmlns:xlink=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxlink\" class=\"flowchart\" style=\"max-width: 276px;\" viewBox=\"0 0 276 894\" role=\"graphics-document document\" aria-roledescription=\"flowchart-v2\">\u003Cstyle>#mx9uhx86k5w3eff33l{font-family:\"trebuchet ms\",verdana,arial,sans-serif;font-size:16px;fill:#333;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#mx9uhx86k5w3eff33l .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#mx9uhx86k5w3eff33l .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#mx9uhx86k5w3eff33l .error-icon{fill:#552222;}#mx9uhx86k5w3eff33l .error-text{fill:#552222;stroke:#552222;}#mx9uhx86k5w3eff33l .edge-thickness-normal{stroke-width:1px;}#mx9uhx86k5w3eff33l .edge-thickness-thick{stroke-width:3.5px;}#mx9uhx86k5w3eff33l .edge-pattern-solid{stroke-dasharray:0;}#mx9uhx86k5w3eff33l .edge-thickness-invisible{stroke-width:0;fill:none;}#mx9uhx86k5w3eff33l .edge-pattern-dashed{stroke-dasharray:3;}#mx9uhx86k5w3eff33l .edge-pattern-dotted{stroke-dasharray:2;}#mx9uhx86k5w3eff33l .marker{fill:#333333;stroke:#333333;}#mx9uhx86k5w3eff33l .marker.cross{stroke:#333333;}#mx9uhx86k5w3eff33l svg{font-family:\"trebuchet ms\",verdana,arial,sans-serif;font-size:16px;}#mx9uhx86k5w3eff33l p{margin:0;}#mx9uhx86k5w3eff33l .label{font-family:\"trebuchet ms\",verdana,arial,sans-serif;color:#333;}#mx9uhx86k5w3eff33l .cluster-label text{fill:#333;}#mx9uhx86k5w3eff33l .cluster-label span{color:#333;}#mx9uhx86k5w3eff33l .cluster-label span p{background-color:transparent;}#mx9uhx86k5w3eff33l .label text,#mx9uhx86k5w3eff33l span{fill:#333;color:#333;}#mx9uhx86k5w3eff33l .node rect,#mx9uhx86k5w3eff33l .node circle,#mx9uhx86k5w3eff33l .node ellipse,#mx9uhx86k5w3eff33l .node polygon,#mx9uhx86k5w3eff33l .node path{fill:#ECECFF;stroke:#9370DB;stroke-width:1px;}#mx9uhx86k5w3eff33l .rough-node .label text,#mx9uhx86k5w3eff33l .node .label text,#mx9uhx86k5w3eff33l .image-shape .label,#mx9uhx86k5w3eff33l .icon-shape .label{text-anchor:middle;}#mx9uhx86k5w3eff33l .node .katex path{fill:#000;stroke:#000;stroke-width:1px;}#mx9uhx86k5w3eff33l .rough-node .label,#mx9uhx86k5w3eff33l .node .label,#mx9uhx86k5w3eff33l .image-shape .label,#mx9uhx86k5w3eff33l .icon-shape .label{text-align:center;}#mx9uhx86k5w3eff33l .node.clickable{cursor:pointer;}#mx9uhx86k5w3eff33l .root .anchor path{fill:#333333!important;stroke-width:0;stroke:#333333;}#mx9uhx86k5w3eff33l .arrowheadPath{fill:#333333;}#mx9uhx86k5w3eff33l .edgePath .path{stroke:#333333;stroke-width:2.0px;}#mx9uhx86k5w3eff33l .flowchart-link{stroke:#333333;fill:none;}#mx9uhx86k5w3eff33l .edgeLabel{background-color:rgba(232,232,232, 0.8);text-align:center;}#mx9uhx86k5w3eff33l .edgeLabel p{background-color:rgba(232,232,232, 0.8);}#mx9uhx86k5w3eff33l .edgeLabel rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mx9uhx86k5w3eff33l .labelBkg{background-color:rgba(232, 232, 232, 0.5);}#mx9uhx86k5w3eff33l .cluster rect{fill:#ffffde;stroke:#aaaa33;stroke-width:1px;}#mx9uhx86k5w3eff33l .cluster text{fill:#333;}#mx9uhx86k5w3eff33l .cluster span{color:#333;}#mx9uhx86k5w3eff33l div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:\"trebuchet ms\",verdana,arial,sans-serif;font-size:12px;background:hsl(80, 100%, 96.2745098039%);border:1px solid #aaaa33;border-radius:2px;pointer-events:none;z-index:100;}#mx9uhx86k5w3eff33l .flowchartTitleText{text-anchor:middle;font-size:18px;fill:#333;}#mx9uhx86k5w3eff33l rect.text{fill:none;stroke-width:0;}#mx9uhx86k5w3eff33l .icon-shape,#mx9uhx86k5w3eff33l .image-shape{background-color:rgba(232,232,232, 0.8);text-align:center;}#mx9uhx86k5w3eff33l .icon-shape p,#mx9uhx86k5w3eff33l .image-shape p{background-color:rgba(232,232,232, 0.8);padding:2px;}#mx9uhx86k5w3eff33l .icon-shape rect,#mx9uhx86k5w3eff33l .image-shape rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mx9uhx86k5w3eff33l .label-icon{display:inline-block;height:1em;overflow:visible;vertical-align:-0.125em;}#mx9uhx86k5w3eff33l .node .label-icon path{fill:currentColor;stroke:revert;stroke-width:revert;}#mx9uhx86k5w3eff33l :root{--mermaid-font-family:\"trebuchet ms\",verdana,arial,sans-serif;}\u003C\u002Fstyle>\u003Cg>\u003Cmarker id=\"mx9uhx86k5w3eff33l_flowchart-v2-pointEnd\" class=\"marker flowchart-v2\" viewBox=\"0 0 10 10\" refX=\"5\" refY=\"5\" markerUnits=\"userSpaceOnUse\" markerWidth=\"8\" markerHeight=\"8\" orient=\"auto\">\u003Cpath d=\"M 0 0 L 10 5 L 0 10 z\" class=\"arrowMarkerPath\" style=\"stroke-width: 1; stroke-dasharray: 1, 0;\">\u003C\u002Fpath>\u003C\u002Fmarker>\u003Cmarker id=\"mx9uhx86k5w3eff33l_flowchart-v2-pointStart\" class=\"marker flowchart-v2\" viewBox=\"0 0 10 10\" refX=\"4.5\" refY=\"5\" markerUnits=\"userSpaceOnUse\" markerWidth=\"8\" markerHeight=\"8\" orient=\"auto\">\u003Cpath d=\"M 0 5 L 10 10 L 10 0 z\" class=\"arrowMarkerPath\" style=\"stroke-width: 1; stroke-dasharray: 1, 0;\">\u003C\u002Fpath>\u003C\u002Fmarker>\u003Cmarker id=\"mx9uhx86k5w3eff33l_flowchart-v2-circleEnd\" class=\"marker flowchart-v2\" viewBox=\"0 0 10 10\" refX=\"11\" refY=\"5\" markerUnits=\"userSpaceOnUse\" markerWidth=\"11\" markerHeight=\"11\" orient=\"auto\">\u003Ccircle cx=\"5\" cy=\"5\" r=\"5\" class=\"arrowMarkerPath\" style=\"stroke-width: 1; stroke-dasharray: 1, 0;\">\u003C\u002Fcircle>\u003C\u002Fmarker>\u003Cmarker id=\"mx9uhx86k5w3eff33l_flowchart-v2-circleStart\" class=\"marker flowchart-v2\" viewBox=\"0 0 10 10\" refX=\"-1\" refY=\"5\" markerUnits=\"userSpaceOnUse\" markerWidth=\"11\" markerHeight=\"11\" orient=\"auto\">\u003Ccircle cx=\"5\" cy=\"5\" r=\"5\" class=\"arrowMarkerPath\" style=\"stroke-width: 1; stroke-dasharray: 1, 0;\">\u003C\u002Fcircle>\u003C\u002Fmarker>\u003Cmarker id=\"mx9uhx86k5w3eff33l_flowchart-v2-crossEnd\" class=\"marker cross flowchart-v2\" viewBox=\"0 0 11 11\" refX=\"12\" refY=\"5.2\" markerUnits=\"userSpaceOnUse\" markerWidth=\"11\" markerHeight=\"11\" orient=\"auto\">\u003Cpath d=\"M 1,1 l 9,9 M 10,1 l -9,9\" class=\"arrowMarkerPath\" style=\"stroke-width: 2; stroke-dasharray: 1, 0;\">\u003C\u002Fpath>\u003C\u002Fmarker>\u003Cmarker id=\"mx9uhx86k5w3eff33l_flowchart-v2-crossStart\" class=\"marker cross flowchart-v2\" viewBox=\"0 0 11 11\" refX=\"-1\" refY=\"5.2\" markerUnits=\"userSpaceOnUse\" markerWidth=\"11\" markerHeight=\"11\" orient=\"auto\">\u003Cpath d=\"M 1,1 l 9,9 M 10,1 l -9,9\" class=\"arrowMarkerPath\" style=\"stroke-width: 2; stroke-dasharray: 1, 0;\">\u003C\u002Fpath>\u003C\u002Fmarker>\u003Cg class=\"root\">\u003Cg class=\"clusters\">\u003C\u002Fg>\u003Cg class=\"edgePaths\">\u003Cpath d=\"M138,86L138,90.167C138,94.333,138,102.667,138,110.333C138,118,138,125,138,128.5L138,132\" id=\"L_REQ_DETECT_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_REQ_DETECT_0\" data-points=\"W3sieCI6MTM4LCJ5Ijo4Nn0seyJ4IjoxMzgsInkiOjExMX0seyJ4IjoxMzgsInkiOjEzNn1d\" marker-end=\"url(#mx9uhx86k5w3eff33l_flowchart-v2-pointEnd)\">\u003C\u002Fpath>\u003Cpath d=\"M138,238L138,242.167C138,246.333,138,254.667,138,262.333C138,270,138,277,138,280.5L138,284\" id=\"L_DETECT_SELECT_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_DETECT_SELECT_0\" data-points=\"W3sieCI6MTM4LCJ5IjoyMzh9LHsieCI6MTM4LCJ5IjoyNjN9LHsieCI6MTM4LCJ5IjoyODh9XQ==\" marker-end=\"url(#mx9uhx86k5w3eff33l_flowchart-v2-pointEnd)\">\u003C\u002Fpath>\u003Cpath d=\"M138,342L138,346.167C138,350.333,138,358.667,138,366.333C138,374,138,381,138,384.5L138,388\" id=\"L_SELECT_TRANS_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_SELECT_TRANS_0\" data-points=\"W3sieCI6MTM4LCJ5IjozNDJ9LHsieCI6MTM4LCJ5IjozNjd9LHsieCI6MTM4LCJ5IjozOTJ9XQ==\" marker-end=\"url(#mx9uhx86k5w3eff33l_flowchart-v2-pointEnd)\">\u003C\u002Fpath>\u003Cpath d=\"M138,446L138,450.167C138,454.333,138,462.667,138,470.333C138,478,138,485,138,488.5L138,492\" id=\"L_TRANS_HTTP_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_TRANS_HTTP_0\" data-points=\"W3sieCI6MTM4LCJ5Ijo0NDZ9LHsieCI6MTM4LCJ5Ijo0NzF9LHsieCI6MTM4LCJ5Ijo0OTZ9XQ==\" marker-end=\"url(#mx9uhx86k5w3eff33l_flowchart-v2-pointEnd)\">\u003C\u002Fpath>\u003Cpath d=\"M138,550L138,554.167C138,558.333,138,566.667,138,574.333C138,582,138,589,138,592.5L138,596\" id=\"L_HTTP_VENDOR_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_HTTP_VENDOR_0\" data-points=\"W3sieCI6MTM4LCJ5Ijo1NTB9LHsieCI6MTM4LCJ5Ijo1NzV9LHsieCI6MTM4LCJ5Ijo2MDB9XQ==\" marker-end=\"url(#mx9uhx86k5w3eff33l_flowchart-v2-pointEnd)\">\u003C\u002Fpath>\u003Cpath d=\"M138,654L138,658.167C138,662.333,138,670.667,138,678.333C138,686,138,693,138,696.5L138,700\" id=\"L_VENDOR_RESP_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_VENDOR_RESP_0\" data-points=\"W3sieCI6MTM4LCJ5Ijo2NTR9LHsieCI6MTM4LCJ5Ijo2Nzl9LHsieCI6MTM4LCJ5Ijo3MDR9XQ==\" marker-end=\"url(#mx9uhx86k5w3eff33l_flowchart-v2-pointEnd)\">\u003C\u002Fpath>\u003Cpath d=\"M138,758L138,762.167C138,766.333,138,774.667,138,782.333C138,790,138,797,138,800.5L138,804\" id=\"L_RESP_NORMAL_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_RESP_NORMAL_0\" data-points=\"W3sieCI6MTM4LCJ5Ijo3NTh9LHsieCI6MTM4LCJ5Ijo3ODN9LHsieCI6MTM4LCJ5Ijo4MDh9XQ==\" marker-end=\"url(#mx9uhx86k5w3eff33l_flowchart-v2-pointEnd)\">\u003C\u002Fpath>\u003C\u002Fg>\u003Cg class=\"edgeLabels\">\u003Cg class=\"edgeLabel\">\u003Cg class=\"label\" data-id=\"L_REQ_DETECT_0\" transform=\"translate(0, 0)\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"edgeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"edgeLabel\">\u003Cg class=\"label\" data-id=\"L_DETECT_SELECT_0\" transform=\"translate(0, 0)\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"edgeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"edgeLabel\">\u003Cg class=\"label\" data-id=\"L_SELECT_TRANS_0\" transform=\"translate(0, 0)\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"edgeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"edgeLabel\">\u003Cg class=\"label\" data-id=\"L_TRANS_HTTP_0\" transform=\"translate(0, 0)\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"edgeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"edgeLabel\">\u003Cg class=\"label\" data-id=\"L_HTTP_VENDOR_0\" transform=\"translate(0, 0)\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"edgeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"edgeLabel\">\u003Cg class=\"label\" data-id=\"L_VENDOR_RESP_0\" transform=\"translate(0, 0)\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"edgeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"edgeLabel\">\u003Cg class=\"label\" data-id=\"L_RESP_NORMAL_0\" transform=\"translate(0, 0)\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"edgeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"nodes\">\u003Cg class=\"node default\" id=\"flowchart-REQ-0\" transform=\"translate(138, 47)\">\u003Crect class=\"basic label-container\" style=\"\" x=\"-130\" y=\"-39\" width=\"260\" height=\"78\">\u003C\u002Frect>\u003Cg class=\"label\" style=\"\" transform=\"translate(-100, -24)\">\u003Crect>\u003C\u002Frect>\u003CforeignObject width=\"200\" height=\"48\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table; white-space: break-spaces; line-height: 1.5; max-width: 200px; text-align: center; width: 200px;\">\u003Cspan class=\"nodeLabel\">\u003Cp>统一请求：model \u002F messages \u002F params\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"node default\" id=\"flowchart-DETECT-1\" transform=\"translate(138, 187)\">\u003Crect class=\"basic label-container\" style=\"\" x=\"-130\" y=\"-51\" width=\"260\" height=\"102\">\u003C\u002Frect>\u003Cg class=\"label\" style=\"\" transform=\"translate(-100, -36)\">\u003Crect>\u003C\u002Frect>\u003CforeignObject width=\"200\" height=\"72\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table; white-space: break-spaces; line-height: 1.5; max-width: 200px; text-align: center; width: 200px;\">\u003Cspan class=\"nodeLabel\">\u003Cp>Provider Resolver：识别 provider \u002F model \u002F api_base\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"node default\" id=\"flowchart-SELECT-2\" transform=\"translate(138, 315)\">\u003Crect class=\"basic label-container\" style=\"\" x=\"-108.53646087646484\" y=\"-27\" width=\"217.0729217529297\" height=\"54\">\u003C\u002Frect>\u003Cg class=\"label\" style=\"\" transform=\"translate(-78.53646087646484, -12)\">\u003Crect>\u003C\u002Frect>\u003CforeignObject width=\"157.0729217529297\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"nodeLabel\">\u003Cp>选择 Provider Handler\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"node default\" id=\"flowchart-TRANS-3\" transform=\"translate(138, 419)\">\u003Crect class=\"basic label-container\" style=\"\" x=\"-114.57292175292969\" y=\"-27\" width=\"229.14584350585938\" height=\"54\">\u003C\u002Frect>\u003Cg class=\"label\" style=\"\" transform=\"translate(-84.57292175292969, -12)\">\u003Crect>\u003C\u002Frect>\u003CforeignObject width=\"169.14584350585938\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"nodeLabel\">\u003Cp>Request Transformation\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"node default\" id=\"flowchart-HTTP-4\" transform=\"translate(138, 523)\">\u003Crect class=\"basic label-container\" style=\"\" x=\"-117.63542175292969\" y=\"-27\" width=\"235.27084350585938\" height=\"54\">\u003C\u002Frect>\u003Cg class=\"label\" style=\"\" transform=\"translate(-87.63542175292969, -12)\">\u003Crect>\u003C\u002Frect>\u003CforeignObject width=\"175.27084350585938\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"nodeLabel\">\u003Cp>HTTP Client \u002F Cloud SDK\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"node default\" id=\"flowchart-VENDOR-5\" transform=\"translate(138, 627)\">\u003Crect class=\"basic label-container\" style=\"\" x=\"-59.81770896911621\" y=\"-27\" width=\"119.63541793823242\" height=\"54\">\u003C\u002Frect>\u003Cg class=\"label\" style=\"\" transform=\"translate(-29.81770896911621, -12)\">\u003Crect>\u003C\u002Frect>\u003CforeignObject width=\"59.63541793823242\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"nodeLabel\">\u003Cp>厂商 API\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"node default\" id=\"flowchart-RESP-6\" transform=\"translate(138, 731)\">\u003Crect class=\"basic label-container\" style=\"\" x=\"-118.93229675292969\" y=\"-27\" width=\"237.86459350585938\" height=\"54\">\u003C\u002Frect>\u003Cg class=\"label\" style=\"\" transform=\"translate(-88.93229675292969, -12)\">\u003Crect>\u003C\u002Frect>\u003CforeignObject width=\"177.86459350585938\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"nodeLabel\">\u003Cp>Response Transformation\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"node default\" id=\"flowchart-NORMAL-7\" transform=\"translate(138, 847)\">\u003Crect class=\"basic label-container\" style=\"\" x=\"-130\" y=\"-39\" width=\"260\" height=\"78\">\u003C\u002Frect>\u003Cg class=\"label\" style=\"\" transform=\"translate(-100, -24)\">\u003Crect>\u003C\u002Frect>\u003CforeignObject width=\"200\" height=\"48\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table; white-space: break-spaces; line-height: 1.5; max-width: 200px; text-align: center; width: 200px;\">\u003Cspan class=\"nodeLabel\">\u003Cp>统一 ModelResponse \u002F Stream \u002F Error\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003C\u002Fg>\u003C\u002Fg>\u003C\u002Fg>\u003C\u002Fsvg>\u003Cdiv class=\"md-editor-mermaid-action\">\u003Cspan class=\"md-editor-mermaid-copy\">\u003Csvg xmlns=\"http:\u002F\u002Fwww.w3.org\u002F2000\u002Fsvg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"lucide lucide-copy md-editor-icon\">\u003Crect width=\"14\" height=\"14\" x=\"8\" y=\"8\" rx=\"2\" ry=\"2\">\u003C\u002Frect>\u003Cpath d=\"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2\">\u003C\u002Fpath>\u003C\u002Fsvg>\u003C\u002Fspan>\u003Cspan class=\"md-editor-mermaid-zoom\">\u003Csvg xmlns=\"http:\u002F\u002Fwww.w3.org\u002F2000\u002Fsvg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"lucide lucide-pin-off md-editor-icon\">\u003Cpath d=\"M12 17v5\">\u003C\u002Fpath>\u003Cpath d=\"M15 9.34V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H7.89\">\u003C\u002Fpath>\u003Cpath d=\"m2 2 20 20\">\u003C\u002Fpath>\u003Cpath d=\"M9 9v1.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h11\">\u003C\u002Fpath>\u003C\u002Fsvg>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002Fp>\u003Ch3 data-line=\"354\" id=\"5.2 Provider 目录组织思想\">5.2 Provider 目录组织思想\u003C\u002Fh3>\n\u003Cp data-line=\"356\">典型实现集中在 \u003Ccode>litellm\u002Fllms\u002F\u003C\u002Fcode>，按厂商、API 能力和处理方式组织。并不是每家厂商只有一个文件，而可能拆分为：\u003C\u002Fp>\n\u003Cul data-line=\"358\">\n\u003Cli data-line=\"358\">Chat Completion\u003C\u002Fli>\n\u003Cli data-line=\"359\">Embedding\u003C\u002Fli>\n\u003Cli data-line=\"360\">Rerank\u003C\u002Fli>\n\u003Cli data-line=\"361\">Image\u003C\u002Fli>\n\u003Cli data-line=\"362\">Audio \u002F Speech \u002F Transcription\u003C\u002Fli>\n\u003Cli data-line=\"363\">Messages\u003C\u002Fli>\n\u003Cli data-line=\"364\">Responses\u003C\u002Fli>\n\u003Cli data-line=\"365\">Token Counting\u003C\u002Fli>\n\u003Cli data-line=\"366\">Request \u002F Response Transformation\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Cp data-line=\"368\">通用 Provider 识别逻辑可从 \u003Ccode>litellm\u002Flitellm_core_utils\u002Fget_llm_provider_logic.py\u003C\u002Fcode> 入手；自定义 LLM 的适配抽象可阅读 \u003Ccode>litellm\u002Fllms\u002Fcustom_llm.py\u003C\u002Fcode>。\u003C\u002Fp>\n\u003Ch3 data-line=\"370\" id=\"5.3 统一协议不等于所有厂商完全一致\">5.3 统一协议不等于所有厂商完全一致\u003C\u002Fh3>\n\u003Cp data-line=\"372\">LiteLLM 可以统一常见调用接口，但供应商能力并不完全对齐：\u003C\u002Fp>\n\u003Ctable data-line=\"374\">\n\u003Cthead data-line=\"374\">\n\u003Ctr data-line=\"374\">\n\u003Cth>差异类型\u003C\u002Fth>\n\u003Cth>可能出现的问题\u003C\u002Fth>\n\u003Cth>网关处理方式\u003C\u002Fth>\n\u003C\u002Ftr>\n\u003C\u002Fthead>\n\u003Ctbody data-line=\"376\">\n\u003Ctr data-line=\"376\">\n\u003Ctd>参数差异\u003C\u002Ftd>\n\u003Ctd>某厂商不支持某采样参数\u003C\u002Ftd>\n\u003Ctd>参数过滤、映射或报错\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr data-line=\"377\">\n\u003Ctd>Tool Calling\u003C\u002Ftd>\n\u003Ctd>工具结构或约束不同\u003C\u002Ftd>\n\u003Ctd>请求转换、能力检查\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr data-line=\"378\">\n\u003Ctd>Streaming\u003C\u002Ftd>\n\u003Ctd>SSE 事件格式不同\u003C\u002Ftd>\n\u003Ctd>流式事件转换\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr data-line=\"379\">\n\u003Ctd>Multimodal\u003C\u002Ftd>\n\u003Ctd>图片、音频、视频载荷不同\u003C\u002Ftd>\n\u003Ctd>内容适配和数据转换\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr data-line=\"380\">\n\u003Ctd>Usage\u003C\u002Ftd>\n\u003Ctd>Token 字段和缓存 Token 口径不同\u003C\u002Ftd>\n\u003Ctd>统一 Usage 模型\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr data-line=\"381\">\n\u003Ctd>Error\u003C\u002Ftd>\n\u003Ctd>HTTP 状态码和错误结构不同\u003C\u002Ftd>\n\u003Ctd>统一异常映射\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr data-line=\"382\">\n\u003Ctd>API Base\u003C\u002Ftd>\n\u003Ctd>私有化部署和兼容 API\u003C\u002Ftd>\n\u003Ctd>自定义 Base URL \u002F OpenAI-compatible Provider\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003C\u002Ftbody>\n\u003C\u002Ftable>\n\u003Cp data-line=\"384\">\u003Cstrong>技术结论：统一 API 解决的是接口接入复杂度，不保证模型能力、效果、Token 计费口径和行为完全一致。\u003C\u002Fstrong> 业务系统仍需建立模型能力矩阵和回归测试。\u003C\u002Fp>\n\u003Ch3 data-line=\"386\" id=\"5.4 新增 Provider 的扩展流程\">5.4 新增 Provider 的扩展流程\u003C\u002Fh3>\n\u003Cp data-line=\"388\" class=\"md-editor-mermaid\" data-mermaid-theme=\"light\" data-closed=\"true\" data-processed=\"\" data-content=\"flowchart TD\n    A[&quot;确认厂商 API 协议与认证方式&quot;] --&gt; B[&quot;确定能力类型：Chat \u002F Embedding \u002F Audio 等&quot;]\n    B --&gt; C[&quot;实现 Provider Handler&quot;]\n    C --&gt; D[&quot;实现请求参数转换&quot;]\n    D --&gt; E[&quot;实现响应 \u002F Streaming 转换&quot;]\n    E --&gt; F[&quot;实现错误映射与 Usage 解析&quot;]\n    F --&gt; G[&quot;注册 Provider \u002F 模型识别&quot;]\n    G --&gt; H[&quot;补齐单元测试和集成测试&quot;]\n    H --&gt; I[&quot;验证模型价格、上下文和能力元数据&quot;]\n    I --&gt; J[&quot;发布并加入 Provider 文档&quot;]\">\u003Csvg id=\"mx9uhx86hgirk00ahca\" width=\"100%\" xmlns=\"http:\u002F\u002Fwww.w3.org\u002F2000\u002Fsvg\" xmlns:xlink=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxlink\" class=\"flowchart\" style=\"max-width: 276px;\" viewBox=\"0 0 276 1078\" role=\"graphics-document document\" aria-roledescription=\"flowchart-v2\">\u003Cstyle>#mx9uhx86hgirk00ahca{font-family:\"trebuchet ms\",verdana,arial,sans-serif;font-size:16px;fill:#333;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#mx9uhx86hgirk00ahca .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#mx9uhx86hgirk00ahca .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#mx9uhx86hgirk00ahca .error-icon{fill:#552222;}#mx9uhx86hgirk00ahca .error-text{fill:#552222;stroke:#552222;}#mx9uhx86hgirk00ahca .edge-thickness-normal{stroke-width:1px;}#mx9uhx86hgirk00ahca .edge-thickness-thick{stroke-width:3.5px;}#mx9uhx86hgirk00ahca .edge-pattern-solid{stroke-dasharray:0;}#mx9uhx86hgirk00ahca .edge-thickness-invisible{stroke-width:0;fill:none;}#mx9uhx86hgirk00ahca .edge-pattern-dashed{stroke-dasharray:3;}#mx9uhx86hgirk00ahca .edge-pattern-dotted{stroke-dasharray:2;}#mx9uhx86hgirk00ahca .marker{fill:#333333;stroke:#333333;}#mx9uhx86hgirk00ahca .marker.cross{stroke:#333333;}#mx9uhx86hgirk00ahca svg{font-family:\"trebuchet ms\",verdana,arial,sans-serif;font-size:16px;}#mx9uhx86hgirk00ahca p{margin:0;}#mx9uhx86hgirk00ahca .label{font-family:\"trebuchet ms\",verdana,arial,sans-serif;color:#333;}#mx9uhx86hgirk00ahca .cluster-label text{fill:#333;}#mx9uhx86hgirk00ahca .cluster-label span{color:#333;}#mx9uhx86hgirk00ahca .cluster-label span p{background-color:transparent;}#mx9uhx86hgirk00ahca .label text,#mx9uhx86hgirk00ahca span{fill:#333;color:#333;}#mx9uhx86hgirk00ahca .node rect,#mx9uhx86hgirk00ahca .node circle,#mx9uhx86hgirk00ahca .node ellipse,#mx9uhx86hgirk00ahca .node polygon,#mx9uhx86hgirk00ahca .node path{fill:#ECECFF;stroke:#9370DB;stroke-width:1px;}#mx9uhx86hgirk00ahca .rough-node .label text,#mx9uhx86hgirk00ahca .node .label text,#mx9uhx86hgirk00ahca .image-shape .label,#mx9uhx86hgirk00ahca .icon-shape .label{text-anchor:middle;}#mx9uhx86hgirk00ahca .node .katex path{fill:#000;stroke:#000;stroke-width:1px;}#mx9uhx86hgirk00ahca .rough-node .label,#mx9uhx86hgirk00ahca .node .label,#mx9uhx86hgirk00ahca .image-shape .label,#mx9uhx86hgirk00ahca .icon-shape .label{text-align:center;}#mx9uhx86hgirk00ahca .node.clickable{cursor:pointer;}#mx9uhx86hgirk00ahca .root .anchor path{fill:#333333!important;stroke-width:0;stroke:#333333;}#mx9uhx86hgirk00ahca .arrowheadPath{fill:#333333;}#mx9uhx86hgirk00ahca .edgePath .path{stroke:#333333;stroke-width:2.0px;}#mx9uhx86hgirk00ahca .flowchart-link{stroke:#333333;fill:none;}#mx9uhx86hgirk00ahca .edgeLabel{background-color:rgba(232,232,232, 0.8);text-align:center;}#mx9uhx86hgirk00ahca .edgeLabel p{background-color:rgba(232,232,232, 0.8);}#mx9uhx86hgirk00ahca .edgeLabel rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mx9uhx86hgirk00ahca .labelBkg{background-color:rgba(232, 232, 232, 0.5);}#mx9uhx86hgirk00ahca .cluster rect{fill:#ffffde;stroke:#aaaa33;stroke-width:1px;}#mx9uhx86hgirk00ahca .cluster text{fill:#333;}#mx9uhx86hgirk00ahca .cluster span{color:#333;}#mx9uhx86hgirk00ahca div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:\"trebuchet ms\",verdana,arial,sans-serif;font-size:12px;background:hsl(80, 100%, 96.2745098039%);border:1px solid #aaaa33;border-radius:2px;pointer-events:none;z-index:100;}#mx9uhx86hgirk00ahca .flowchartTitleText{text-anchor:middle;font-size:18px;fill:#333;}#mx9uhx86hgirk00ahca rect.text{fill:none;stroke-width:0;}#mx9uhx86hgirk00ahca .icon-shape,#mx9uhx86hgirk00ahca .image-shape{background-color:rgba(232,232,232, 0.8);text-align:center;}#mx9uhx86hgirk00ahca .icon-shape p,#mx9uhx86hgirk00ahca .image-shape p{background-color:rgba(232,232,232, 0.8);padding:2px;}#mx9uhx86hgirk00ahca .icon-shape rect,#mx9uhx86hgirk00ahca .image-shape rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mx9uhx86hgirk00ahca .label-icon{display:inline-block;height:1em;overflow:visible;vertical-align:-0.125em;}#mx9uhx86hgirk00ahca .node .label-icon path{fill:currentColor;stroke:revert;stroke-width:revert;}#mx9uhx86hgirk00ahca :root{--mermaid-font-family:\"trebuchet ms\",verdana,arial,sans-serif;}\u003C\u002Fstyle>\u003Cg>\u003Cmarker id=\"mx9uhx86hgirk00ahca_flowchart-v2-pointEnd\" class=\"marker flowchart-v2\" viewBox=\"0 0 10 10\" refX=\"5\" refY=\"5\" markerUnits=\"userSpaceOnUse\" markerWidth=\"8\" markerHeight=\"8\" orient=\"auto\">\u003Cpath d=\"M 0 0 L 10 5 L 0 10 z\" class=\"arrowMarkerPath\" style=\"stroke-width: 1; stroke-dasharray: 1, 0;\">\u003C\u002Fpath>\u003C\u002Fmarker>\u003Cmarker id=\"mx9uhx86hgirk00ahca_flowchart-v2-pointStart\" class=\"marker flowchart-v2\" viewBox=\"0 0 10 10\" refX=\"4.5\" refY=\"5\" markerUnits=\"userSpaceOnUse\" markerWidth=\"8\" markerHeight=\"8\" orient=\"auto\">\u003Cpath d=\"M 0 5 L 10 10 L 10 0 z\" class=\"arrowMarkerPath\" style=\"stroke-width: 1; stroke-dasharray: 1, 0;\">\u003C\u002Fpath>\u003C\u002Fmarker>\u003Cmarker id=\"mx9uhx86hgirk00ahca_flowchart-v2-circleEnd\" class=\"marker flowchart-v2\" viewBox=\"0 0 10 10\" refX=\"11\" refY=\"5\" markerUnits=\"userSpaceOnUse\" markerWidth=\"11\" markerHeight=\"11\" orient=\"auto\">\u003Ccircle cx=\"5\" cy=\"5\" r=\"5\" class=\"arrowMarkerPath\" style=\"stroke-width: 1; stroke-dasharray: 1, 0;\">\u003C\u002Fcircle>\u003C\u002Fmarker>\u003Cmarker id=\"mx9uhx86hgirk00ahca_flowchart-v2-circleStart\" class=\"marker flowchart-v2\" viewBox=\"0 0 10 10\" refX=\"-1\" refY=\"5\" markerUnits=\"userSpaceOnUse\" markerWidth=\"11\" markerHeight=\"11\" orient=\"auto\">\u003Ccircle cx=\"5\" cy=\"5\" r=\"5\" class=\"arrowMarkerPath\" style=\"stroke-width: 1; stroke-dasharray: 1, 0;\">\u003C\u002Fcircle>\u003C\u002Fmarker>\u003Cmarker id=\"mx9uhx86hgirk00ahca_flowchart-v2-crossEnd\" class=\"marker cross flowchart-v2\" viewBox=\"0 0 11 11\" refX=\"12\" refY=\"5.2\" markerUnits=\"userSpaceOnUse\" markerWidth=\"11\" markerHeight=\"11\" orient=\"auto\">\u003Cpath d=\"M 1,1 l 9,9 M 10,1 l -9,9\" class=\"arrowMarkerPath\" style=\"stroke-width: 2; stroke-dasharray: 1, 0;\">\u003C\u002Fpath>\u003C\u002Fmarker>\u003Cmarker id=\"mx9uhx86hgirk00ahca_flowchart-v2-crossStart\" class=\"marker cross flowchart-v2\" viewBox=\"0 0 11 11\" refX=\"-1\" refY=\"5.2\" markerUnits=\"userSpaceOnUse\" markerWidth=\"11\" markerHeight=\"11\" orient=\"auto\">\u003Cpath d=\"M 1,1 l 9,9 M 10,1 l -9,9\" class=\"arrowMarkerPath\" style=\"stroke-width: 2; stroke-dasharray: 1, 0;\">\u003C\u002Fpath>\u003C\u002Fmarker>\u003Cg class=\"root\">\u003Cg class=\"clusters\">\u003C\u002Fg>\u003Cg class=\"edgePaths\">\u003Cpath d=\"M138,86L138,90.167C138,94.333,138,102.667,138,110.333C138,118,138,125,138,128.5L138,132\" id=\"L_A_B_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_A_B_0\" data-points=\"W3sieCI6MTM4LCJ5Ijo4Nn0seyJ4IjoxMzgsInkiOjExMX0seyJ4IjoxMzgsInkiOjEzNn1d\" marker-end=\"url(#mx9uhx86hgirk00ahca_flowchart-v2-pointEnd)\">\u003C\u002Fpath>\u003Cpath d=\"M138,214L138,218.167C138,222.333,138,230.667,138,238.333C138,246,138,253,138,256.5L138,260\" id=\"L_B_C_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_B_C_0\" data-points=\"W3sieCI6MTM4LCJ5IjoyMTR9LHsieCI6MTM4LCJ5IjoyMzl9LHsieCI6MTM4LCJ5IjoyNjR9XQ==\" marker-end=\"url(#mx9uhx86hgirk00ahca_flowchart-v2-pointEnd)\">\u003C\u002Fpath>\u003Cpath d=\"M138,318L138,322.167C138,326.333,138,334.667,138,342.333C138,350,138,357,138,360.5L138,364\" id=\"L_C_D_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_C_D_0\" data-points=\"W3sieCI6MTM4LCJ5IjozMTh9LHsieCI6MTM4LCJ5IjozNDN9LHsieCI6MTM4LCJ5IjozNjh9XQ==\" marker-end=\"url(#mx9uhx86hgirk00ahca_flowchart-v2-pointEnd)\">\u003C\u002Fpath>\u003Cpath d=\"M138,422L138,426.167C138,430.333,138,438.667,138,446.333C138,454,138,461,138,464.5L138,468\" id=\"L_D_E_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_D_E_0\" data-points=\"W3sieCI6MTM4LCJ5Ijo0MjJ9LHsieCI6MTM4LCJ5Ijo0NDd9LHsieCI6MTM4LCJ5Ijo0NzJ9XQ==\" marker-end=\"url(#mx9uhx86hgirk00ahca_flowchart-v2-pointEnd)\">\u003C\u002Fpath>\u003Cpath d=\"M138,526L138,530.167C138,534.333,138,542.667,138,550.333C138,558,138,565,138,568.5L138,572\" id=\"L_E_F_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_E_F_0\" data-points=\"W3sieCI6MTM4LCJ5Ijo1MjZ9LHsieCI6MTM4LCJ5Ijo1NTF9LHsieCI6MTM4LCJ5Ijo1NzZ9XQ==\" marker-end=\"url(#mx9uhx86hgirk00ahca_flowchart-v2-pointEnd)\">\u003C\u002Fpath>\u003Cpath d=\"M138,630L138,634.167C138,638.333,138,646.667,138,654.333C138,662,138,669,138,672.5L138,676\" id=\"L_F_G_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_F_G_0\" data-points=\"W3sieCI6MTM4LCJ5Ijo2MzB9LHsieCI6MTM4LCJ5Ijo2NTV9LHsieCI6MTM4LCJ5Ijo2ODB9XQ==\" marker-end=\"url(#mx9uhx86hgirk00ahca_flowchart-v2-pointEnd)\">\u003C\u002Fpath>\u003Cpath d=\"M138,734L138,738.167C138,742.333,138,750.667,138,758.333C138,766,138,773,138,776.5L138,780\" id=\"L_G_H_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_G_H_0\" data-points=\"W3sieCI6MTM4LCJ5Ijo3MzR9LHsieCI6MTM4LCJ5Ijo3NTl9LHsieCI6MTM4LCJ5Ijo3ODR9XQ==\" marker-end=\"url(#mx9uhx86hgirk00ahca_flowchart-v2-pointEnd)\">\u003C\u002Fpath>\u003Cpath d=\"M138,838L138,842.167C138,846.333,138,854.667,138,862.333C138,870,138,877,138,880.5L138,884\" id=\"L_H_I_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_H_I_0\" data-points=\"W3sieCI6MTM4LCJ5Ijo4Mzh9LHsieCI6MTM4LCJ5Ijo4NjN9LHsieCI6MTM4LCJ5Ijo4ODh9XQ==\" marker-end=\"url(#mx9uhx86hgirk00ahca_flowchart-v2-pointEnd)\">\u003C\u002Fpath>\u003Cpath d=\"M138,966L138,970.167C138,974.333,138,982.667,138,990.333C138,998,138,1005,138,1008.5L138,1012\" id=\"L_I_J_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_I_J_0\" data-points=\"W3sieCI6MTM4LCJ5Ijo5NjZ9LHsieCI6MTM4LCJ5Ijo5OTF9LHsieCI6MTM4LCJ5IjoxMDE2fV0=\" marker-end=\"url(#mx9uhx86hgirk00ahca_flowchart-v2-pointEnd)\">\u003C\u002Fpath>\u003C\u002Fg>\u003Cg class=\"edgeLabels\">\u003Cg class=\"edgeLabel\">\u003Cg class=\"label\" data-id=\"L_A_B_0\" transform=\"translate(0, 0)\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"edgeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"edgeLabel\">\u003Cg class=\"label\" data-id=\"L_B_C_0\" transform=\"translate(0, 0)\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"edgeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"edgeLabel\">\u003Cg class=\"label\" data-id=\"L_C_D_0\" transform=\"translate(0, 0)\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"edgeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"edgeLabel\">\u003Cg class=\"label\" data-id=\"L_D_E_0\" transform=\"translate(0, 0)\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"edgeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"edgeLabel\">\u003Cg class=\"label\" data-id=\"L_E_F_0\" transform=\"translate(0, 0)\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"edgeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"edgeLabel\">\u003Cg class=\"label\" data-id=\"L_F_G_0\" transform=\"translate(0, 0)\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"edgeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"edgeLabel\">\u003Cg class=\"label\" data-id=\"L_G_H_0\" transform=\"translate(0, 0)\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"edgeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"edgeLabel\">\u003Cg class=\"label\" data-id=\"L_H_I_0\" transform=\"translate(0, 0)\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"edgeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"edgeLabel\">\u003Cg class=\"label\" data-id=\"L_I_J_0\" transform=\"translate(0, 0)\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"edgeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"nodes\">\u003Cg class=\"node default\" id=\"flowchart-A-0\" transform=\"translate(138, 47)\">\u003Crect class=\"basic label-container\" style=\"\" x=\"-130\" y=\"-39\" width=\"260\" height=\"78\">\u003C\u002Frect>\u003Cg class=\"label\" style=\"\" transform=\"translate(-100, -24)\">\u003Crect>\u003C\u002Frect>\u003CforeignObject width=\"200\" height=\"48\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table; white-space: break-spaces; line-height: 1.5; max-width: 200px; text-align: center; width: 200px;\">\u003Cspan class=\"nodeLabel\">\u003Cp>确认厂商 API 协议与认证方式\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"node default\" id=\"flowchart-B-1\" transform=\"translate(138, 175)\">\u003Crect class=\"basic label-container\" style=\"\" x=\"-130\" y=\"-39\" width=\"260\" height=\"78\">\u003C\u002Frect>\u003Cg class=\"label\" style=\"\" transform=\"translate(-100, -24)\">\u003Crect>\u003C\u002Frect>\u003CforeignObject width=\"200\" height=\"48\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table; white-space: break-spaces; line-height: 1.5; max-width: 200px; text-align: center; width: 200px;\">\u003Cspan class=\"nodeLabel\">\u003Cp>确定能力类型：Chat \u002F Embedding \u002F Audio 等\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"node default\" id=\"flowchart-C-3\" transform=\"translate(138, 291)\">\u003Crect class=\"basic label-container\" style=\"\" x=\"-108.53646087646484\" y=\"-27\" width=\"217.0729217529297\" height=\"54\">\u003C\u002Frect>\u003Cg class=\"label\" style=\"\" transform=\"translate(-78.53646087646484, -12)\">\u003Crect>\u003C\u002Frect>\u003CforeignObject width=\"157.0729217529297\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"nodeLabel\">\u003Cp>实现 Provider Handler\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"node default\" id=\"flowchart-D-5\" transform=\"translate(138, 395)\">\u003Crect class=\"basic label-container\" style=\"\" x=\"-94\" y=\"-27\" width=\"188\" height=\"54\">\u003C\u002Frect>\u003Cg class=\"label\" style=\"\" transform=\"translate(-64, -12)\">\u003Crect>\u003C\u002Frect>\u003CforeignObject width=\"128\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"nodeLabel\">\u003Cp>实现请求参数转换\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"node default\" id=\"flowchart-E-7\" transform=\"translate(138, 499)\">\u003Crect class=\"basic label-container\" style=\"\" x=\"-125.43229675292969\" y=\"-27\" width=\"250.86459350585938\" height=\"54\">\u003C\u002Frect>\u003Cg class=\"label\" style=\"\" transform=\"translate(-95.43229675292969, -12)\">\u003Crect>\u003C\u002Frect>\u003CforeignObject width=\"190.86459350585938\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"nodeLabel\">\u003Cp>实现响应 \u002F Streaming 转换\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"node default\" id=\"flowchart-F-9\" transform=\"translate(138, 603)\">\u003Crect class=\"basic label-container\" style=\"\" x=\"-127.828125\" y=\"-27\" width=\"255.65625\" height=\"54\">\u003C\u002Frect>\u003Cg class=\"label\" style=\"\" transform=\"translate(-97.828125, -12)\">\u003Crect>\u003C\u002Frect>\u003CforeignObject width=\"195.65625\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"nodeLabel\">\u003Cp>实现错误映射与 Usage 解析\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"node default\" id=\"flowchart-G-11\" transform=\"translate(138, 707)\">\u003Crect class=\"basic label-container\" style=\"\" x=\"-119.046875\" y=\"-27\" width=\"238.09375\" height=\"54\">\u003C\u002Frect>\u003Cg class=\"label\" style=\"\" transform=\"translate(-89.046875, -12)\">\u003Crect>\u003C\u002Frect>\u003CforeignObject width=\"178.09375\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"nodeLabel\">\u003Cp>注册 Provider \u002F 模型识别\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"node default\" id=\"flowchart-H-13\" transform=\"translate(138, 811)\">\u003Crect class=\"basic label-container\" style=\"\" x=\"-118\" y=\"-27\" width=\"236\" height=\"54\">\u003C\u002Frect>\u003Cg class=\"label\" style=\"\" transform=\"translate(-88, -12)\">\u003Crect>\u003C\u002Frect>\u003CforeignObject width=\"176\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"nodeLabel\">\u003Cp>补齐单元测试和集成测试\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"node default\" id=\"flowchart-I-15\" transform=\"translate(138, 927)\">\u003Crect class=\"basic label-container\" style=\"\" x=\"-130\" y=\"-39\" width=\"260\" height=\"78\">\u003C\u002Frect>\u003Cg class=\"label\" style=\"\" transform=\"translate(-100, -24)\">\u003Crect>\u003C\u002Frect>\u003CforeignObject width=\"200\" height=\"48\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table; white-space: break-spaces; line-height: 1.5; max-width: 200px; text-align: center; width: 200px;\">\u003Cspan class=\"nodeLabel\">\u003Cp>验证模型价格、上下文和能力元数据\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"node default\" id=\"flowchart-J-17\" transform=\"translate(138, 1043)\">\u003Crect class=\"basic label-container\" style=\"\" x=\"-120.4375\" y=\"-27\" width=\"240.875\" height=\"54\">\u003C\u002Frect>\u003Cg class=\"label\" style=\"\" transform=\"translate(-90.4375, -12)\">\u003Crect>\u003C\u002Frect>\u003CforeignObject width=\"180.875\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"nodeLabel\">\u003Cp>发布并加入 Provider 文档\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003C\u002Fg>\u003C\u002Fg>\u003C\u002Fg>\u003C\u002Fsvg>\u003Cdiv class=\"md-editor-mermaid-action\">\u003Cspan class=\"md-editor-mermaid-copy\">\u003Csvg xmlns=\"http:\u002F\u002Fwww.w3.org\u002F2000\u002Fsvg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"lucide lucide-copy md-editor-icon\">\u003Crect width=\"14\" height=\"14\" x=\"8\" y=\"8\" rx=\"2\" ry=\"2\">\u003C\u002Frect>\u003Cpath d=\"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2\">\u003C\u002Fpath>\u003C\u002Fsvg>\u003C\u002Fspan>\u003Cspan class=\"md-editor-mermaid-zoom\">\u003Csvg xmlns=\"http:\u002F\u002Fwww.w3.org\u002F2000\u002Fsvg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"lucide lucide-pin-off md-editor-icon\">\u003Cpath d=\"M12 17v5\">\u003C\u002Fpath>\u003Cpath d=\"M15 9.34V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H7.89\">\u003C\u002Fpath>\u003Cpath d=\"m2 2 20 20\">\u003C\u002Fpath>\u003Cpath d=\"M9 9v1.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h11\">\u003C\u002Fpath>\u003C\u002Fsvg>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002Fp>\u003Chr data-line=\"401\">\n\u003Ch2 data-line=\"403\" id=\"6. Router：模型选择、负载均衡和故障恢复\">6. Router：模型选择、负载均衡和故障恢复\u003C\u002Fh2>\n\u003Ch3 data-line=\"405\" id=\"6.1 Model Group 与 Deployment\">6.1 Model Group 与 Deployment\u003C\u002Fh3>\n\u003Cp data-line=\"407\">应区分两个概念：\u003C\u002Fp>\n\u003Cul data-line=\"409\">\n\u003Cli data-line=\"409\">\u003Cstrong>Model Group \u002F model_name\u003C\u002Fstrong>：客户端看到的逻辑模型名称。\u003C\u002Fli>\n\u003Cli data-line=\"410\">\u003Cstrong>Deployment\u003C\u002Fstrong>：实际可被调用的供应商模型实例，包含 Provider、模型名、凭证、API Base 和路由参数。\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Cp data-line=\"412\">一个逻辑模型组可以挂载多个 Deployment。\u003C\u002Fp>\n\u003Cp data-line=\"414\" class=\"md-editor-mermaid\" data-mermaid-theme=\"light\" data-closed=\"true\" data-processed=\"\" data-content=\"flowchart TB\n    CLIENT[&quot;请求 model = smart-chat&quot;]\n    GROUP[&quot;Model Group：smart-chat&quot;]\n    D1[&quot;Deployment A：Provider A&quot;]\n    D2[&quot;Deployment B：Provider A 备用 Key&quot;]\n    D3[&quot;Deployment C：Provider B 兼容模型&quot;]\n    CLIENT --&gt; GROUP\n    GROUP --&gt; D1\n    GROUP --&gt; D2\n    GROUP --&gt; D3\">\u003Csvg id=\"mx9uhx86f1vv2e9djv\" width=\"100%\" xmlns=\"http:\u002F\u002Fwww.w3.org\u002F2000\u002Fsvg\" xmlns:xlink=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxlink\" class=\"flowchart\" style=\"max-width: 883.7291870117188px;\" viewBox=\"0.00000762939453125 0 883.7291870117188 302\" role=\"graphics-document document\" aria-roledescription=\"flowchart-v2\">\u003Cstyle>#mx9uhx86f1vv2e9djv{font-family:\"trebuchet ms\",verdana,arial,sans-serif;font-size:16px;fill:#333;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#mx9uhx86f1vv2e9djv .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#mx9uhx86f1vv2e9djv .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#mx9uhx86f1vv2e9djv .error-icon{fill:#552222;}#mx9uhx86f1vv2e9djv .error-text{fill:#552222;stroke:#552222;}#mx9uhx86f1vv2e9djv .edge-thickness-normal{stroke-width:1px;}#mx9uhx86f1vv2e9djv .edge-thickness-thick{stroke-width:3.5px;}#mx9uhx86f1vv2e9djv .edge-pattern-solid{stroke-dasharray:0;}#mx9uhx86f1vv2e9djv .edge-thickness-invisible{stroke-width:0;fill:none;}#mx9uhx86f1vv2e9djv .edge-pattern-dashed{stroke-dasharray:3;}#mx9uhx86f1vv2e9djv .edge-pattern-dotted{stroke-dasharray:2;}#mx9uhx86f1vv2e9djv .marker{fill:#333333;stroke:#333333;}#mx9uhx86f1vv2e9djv .marker.cross{stroke:#333333;}#mx9uhx86f1vv2e9djv svg{font-family:\"trebuchet ms\",verdana,arial,sans-serif;font-size:16px;}#mx9uhx86f1vv2e9djv p{margin:0;}#mx9uhx86f1vv2e9djv .label{font-family:\"trebuchet ms\",verdana,arial,sans-serif;color:#333;}#mx9uhx86f1vv2e9djv .cluster-label text{fill:#333;}#mx9uhx86f1vv2e9djv .cluster-label span{color:#333;}#mx9uhx86f1vv2e9djv .cluster-label span p{background-color:transparent;}#mx9uhx86f1vv2e9djv .label text,#mx9uhx86f1vv2e9djv span{fill:#333;color:#333;}#mx9uhx86f1vv2e9djv .node rect,#mx9uhx86f1vv2e9djv .node circle,#mx9uhx86f1vv2e9djv .node ellipse,#mx9uhx86f1vv2e9djv .node polygon,#mx9uhx86f1vv2e9djv .node path{fill:#ECECFF;stroke:#9370DB;stroke-width:1px;}#mx9uhx86f1vv2e9djv .rough-node .label text,#mx9uhx86f1vv2e9djv .node .label text,#mx9uhx86f1vv2e9djv .image-shape .label,#mx9uhx86f1vv2e9djv .icon-shape .label{text-anchor:middle;}#mx9uhx86f1vv2e9djv .node .katex path{fill:#000;stroke:#000;stroke-width:1px;}#mx9uhx86f1vv2e9djv .rough-node .label,#mx9uhx86f1vv2e9djv .node .label,#mx9uhx86f1vv2e9djv .image-shape .label,#mx9uhx86f1vv2e9djv .icon-shape .label{text-align:center;}#mx9uhx86f1vv2e9djv .node.clickable{cursor:pointer;}#mx9uhx86f1vv2e9djv .root .anchor path{fill:#333333!important;stroke-width:0;stroke:#333333;}#mx9uhx86f1vv2e9djv .arrowheadPath{fill:#333333;}#mx9uhx86f1vv2e9djv .edgePath .path{stroke:#333333;stroke-width:2.0px;}#mx9uhx86f1vv2e9djv .flowchart-link{stroke:#333333;fill:none;}#mx9uhx86f1vv2e9djv .edgeLabel{background-color:rgba(232,232,232, 0.8);text-align:center;}#mx9uhx86f1vv2e9djv .edgeLabel p{background-color:rgba(232,232,232, 0.8);}#mx9uhx86f1vv2e9djv .edgeLabel rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mx9uhx86f1vv2e9djv .labelBkg{background-color:rgba(232, 232, 232, 0.5);}#mx9uhx86f1vv2e9djv .cluster rect{fill:#ffffde;stroke:#aaaa33;stroke-width:1px;}#mx9uhx86f1vv2e9djv .cluster text{fill:#333;}#mx9uhx86f1vv2e9djv .cluster span{color:#333;}#mx9uhx86f1vv2e9djv div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:\"trebuchet ms\",verdana,arial,sans-serif;font-size:12px;background:hsl(80, 100%, 96.2745098039%);border:1px solid #aaaa33;border-radius:2px;pointer-events:none;z-index:100;}#mx9uhx86f1vv2e9djv .flowchartTitleText{text-anchor:middle;font-size:18px;fill:#333;}#mx9uhx86f1vv2e9djv rect.text{fill:none;stroke-width:0;}#mx9uhx86f1vv2e9djv .icon-shape,#mx9uhx86f1vv2e9djv .image-shape{background-color:rgba(232,232,232, 0.8);text-align:center;}#mx9uhx86f1vv2e9djv .icon-shape p,#mx9uhx86f1vv2e9djv .image-shape p{background-color:rgba(232,232,232, 0.8);padding:2px;}#mx9uhx86f1vv2e9djv .icon-shape rect,#mx9uhx86f1vv2e9djv .image-shape rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mx9uhx86f1vv2e9djv .label-icon{display:inline-block;height:1em;overflow:visible;vertical-align:-0.125em;}#mx9uhx86f1vv2e9djv .node .label-icon path{fill:currentColor;stroke:revert;stroke-width:revert;}#mx9uhx86f1vv2e9djv :root{--mermaid-font-family:\"trebuchet ms\",verdana,arial,sans-serif;}\u003C\u002Fstyle>\u003Cg>\u003Cmarker id=\"mx9uhx86f1vv2e9djv_flowchart-v2-pointEnd\" class=\"marker flowchart-v2\" viewBox=\"0 0 10 10\" refX=\"5\" refY=\"5\" markerUnits=\"userSpaceOnUse\" markerWidth=\"8\" markerHeight=\"8\" orient=\"auto\">\u003Cpath d=\"M 0 0 L 10 5 L 0 10 z\" class=\"arrowMarkerPath\" style=\"stroke-width: 1; stroke-dasharray: 1, 0;\">\u003C\u002Fpath>\u003C\u002Fmarker>\u003Cmarker id=\"mx9uhx86f1vv2e9djv_flowchart-v2-pointStart\" class=\"marker flowchart-v2\" viewBox=\"0 0 10 10\" refX=\"4.5\" refY=\"5\" markerUnits=\"userSpaceOnUse\" markerWidth=\"8\" markerHeight=\"8\" orient=\"auto\">\u003Cpath d=\"M 0 5 L 10 10 L 10 0 z\" class=\"arrowMarkerPath\" style=\"stroke-width: 1; stroke-dasharray: 1, 0;\">\u003C\u002Fpath>\u003C\u002Fmarker>\u003Cmarker id=\"mx9uhx86f1vv2e9djv_flowchart-v2-circleEnd\" class=\"marker flowchart-v2\" viewBox=\"0 0 10 10\" refX=\"11\" refY=\"5\" markerUnits=\"userSpaceOnUse\" markerWidth=\"11\" markerHeight=\"11\" orient=\"auto\">\u003Ccircle cx=\"5\" cy=\"5\" r=\"5\" class=\"arrowMarkerPath\" style=\"stroke-width: 1; stroke-dasharray: 1, 0;\">\u003C\u002Fcircle>\u003C\u002Fmarker>\u003Cmarker id=\"mx9uhx86f1vv2e9djv_flowchart-v2-circleStart\" class=\"marker flowchart-v2\" viewBox=\"0 0 10 10\" refX=\"-1\" refY=\"5\" markerUnits=\"userSpaceOnUse\" markerWidth=\"11\" markerHeight=\"11\" orient=\"auto\">\u003Ccircle cx=\"5\" cy=\"5\" r=\"5\" class=\"arrowMarkerPath\" style=\"stroke-width: 1; stroke-dasharray: 1, 0;\">\u003C\u002Fcircle>\u003C\u002Fmarker>\u003Cmarker id=\"mx9uhx86f1vv2e9djv_flowchart-v2-crossEnd\" class=\"marker cross flowchart-v2\" viewBox=\"0 0 11 11\" refX=\"12\" refY=\"5.2\" markerUnits=\"userSpaceOnUse\" markerWidth=\"11\" markerHeight=\"11\" orient=\"auto\">\u003Cpath d=\"M 1,1 l 9,9 M 10,1 l -9,9\" class=\"arrowMarkerPath\" style=\"stroke-width: 2; stroke-dasharray: 1, 0;\">\u003C\u002Fpath>\u003C\u002Fmarker>\u003Cmarker id=\"mx9uhx86f1vv2e9djv_flowchart-v2-crossStart\" class=\"marker cross flowchart-v2\" viewBox=\"0 0 11 11\" refX=\"-1\" refY=\"5.2\" markerUnits=\"userSpaceOnUse\" markerWidth=\"11\" markerHeight=\"11\" orient=\"auto\">\u003Cpath d=\"M 1,1 l 9,9 M 10,1 l -9,9\" class=\"arrowMarkerPath\" style=\"stroke-width: 2; stroke-dasharray: 1, 0;\">\u003C\u002Fpath>\u003C\u002Fmarker>\u003Cg class=\"root\">\u003Cg class=\"clusters\">\u003C\u002Fg>\u003Cg class=\"edgePaths\">\u003Cpath d=\"M435.729,62L435.729,66.167C435.729,70.333,435.729,78.667,435.729,86.333C435.729,94,435.729,101,435.729,104.5L435.729,108\" id=\"L_CLIENT_GROUP_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_CLIENT_GROUP_0\" data-points=\"W3sieCI6NDM1LjcyOTE3MTc1MjkyOTcsInkiOjYyfSx7IngiOjQzNS43MjkxNzE3NTI5Mjk3LCJ5Ijo4N30seyJ4Ijo0MzUuNzI5MTcxNzUyOTI5NywieSI6MTEyfV0=\" marker-end=\"url(#mx9uhx86f1vv2e9djv_flowchart-v2-pointEnd)\">\u003C\u002Fpath>\u003Cpath d=\"M313.521,159.913L283.245,165.094C252.969,170.276,192.417,180.638,162.141,191.319C131.865,202,131.865,213,131.865,218.5L131.865,224\" id=\"L_GROUP_D1_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_GROUP_D1_0\" data-points=\"W3sieCI6MzEzLjUyMDgzNTg3NjQ2NDg0LCJ5IjoxNTkuOTEzMzczMTMwNDg5NDh9LHsieCI6MTMxLjg2NDU4NTg3NjQ2NDg0LCJ5IjoxOTF9LHsieCI6MTMxLjg2NDU4NTg3NjQ2NDg0LCJ5IjoyMjh9XQ==\" marker-end=\"url(#mx9uhx86f1vv2e9djv_flowchart-v2-pointEnd)\">\u003C\u002Fpath>\u003Cpath d=\"M435.729,166L435.729,170.167C435.729,174.333,435.729,182.667,435.729,190.333C435.729,198,435.729,205,435.729,208.5L435.729,212\" id=\"L_GROUP_D2_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_GROUP_D2_0\" data-points=\"W3sieCI6NDM1LjcyOTE3MTc1MjkyOTcsInkiOjE2Nn0seyJ4Ijo0MzUuNzI5MTcxNzUyOTI5NywieSI6MTkxfSx7IngiOjQzNS43MjkxNzE3NTI5Mjk3LCJ5IjoyMTZ9XQ==\" marker-end=\"url(#mx9uhx86f1vv2e9djv_flowchart-v2-pointEnd)\">\u003C\u002Fpath>\u003Cpath d=\"M557.938,159.499L589.236,164.75C620.535,170,683.132,180.5,714.431,189.25C745.729,198,745.729,205,745.729,208.5L745.729,212\" id=\"L_GROUP_D3_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_GROUP_D3_0\" data-points=\"W3sieCI6NTU3LjkzNzUwNzYyOTM5NDUsInkiOjE1OS40OTk0NjI3OTIxODEyfSx7IngiOjc0NS43MjkxNzE3NTI5Mjk3LCJ5IjoxOTF9LHsieCI6NzQ1LjcyOTE3MTc1MjkyOTcsInkiOjIxNn1d\" marker-end=\"url(#mx9uhx86f1vv2e9djv_flowchart-v2-pointEnd)\">\u003C\u002Fpath>\u003C\u002Fg>\u003Cg class=\"edgeLabels\">\u003Cg class=\"edgeLabel\">\u003Cg class=\"label\" data-id=\"L_CLIENT_GROUP_0\" transform=\"translate(0, 0)\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"edgeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"edgeLabel\">\u003Cg class=\"label\" data-id=\"L_GROUP_D1_0\" transform=\"translate(0, 0)\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"edgeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"edgeLabel\">\u003Cg class=\"label\" data-id=\"L_GROUP_D2_0\" transform=\"translate(0, 0)\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"edgeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"edgeLabel\">\u003Cg class=\"label\" data-id=\"L_GROUP_D3_0\" transform=\"translate(0, 0)\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"edgeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"nodes\">\u003Cg class=\"node default\" id=\"flowchart-CLIENT-0\" transform=\"translate(435.7291717529297, 35)\">\u003Crect class=\"basic label-container\" style=\"\" x=\"-118.546875\" y=\"-27\" width=\"237.09375\" height=\"54\">\u003C\u002Frect>\u003Cg class=\"label\" style=\"\" transform=\"translate(-88.546875, -12)\">\u003Crect>\u003C\u002Frect>\u003CforeignObject width=\"177.09375\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"nodeLabel\">\u003Cp>请求 model = smart-chat\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"node default\" id=\"flowchart-GROUP-1\" transform=\"translate(435.7291717529297, 139)\">\u003Crect class=\"basic label-container\" style=\"\" x=\"-122.20833587646484\" y=\"-27\" width=\"244.4166717529297\" height=\"54\">\u003C\u002Frect>\u003Cg class=\"label\" style=\"\" transform=\"translate(-92.20833587646484, -12)\">\u003Crect>\u003C\u002Frect>\u003CforeignObject width=\"184.4166717529297\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"nodeLabel\">\u003Cp>Model Group：smart-chat\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"node default\" id=\"flowchart-D1-2\" transform=\"translate(131.86458587646484, 255)\">\u003Crect class=\"basic label-container\" style=\"\" x=\"-123.86458587646484\" y=\"-27\" width=\"247.7291717529297\" height=\"54\">\u003C\u002Frect>\u003Cg class=\"label\" style=\"\" transform=\"translate(-93.86458587646484, -12)\">\u003Crect>\u003C\u002Frect>\u003CforeignObject width=\"187.7291717529297\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"nodeLabel\">\u003Cp>Deployment A：Provider A\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"node default\" id=\"flowchart-D2-3\" transform=\"translate(435.7291717529297, 255)\">\u003Crect class=\"basic label-container\" style=\"\" x=\"-130\" y=\"-39\" width=\"260\" height=\"78\">\u003C\u002Frect>\u003Cg class=\"label\" style=\"\" transform=\"translate(-100, -24)\">\u003Crect>\u003C\u002Frect>\u003CforeignObject width=\"200\" height=\"48\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table; white-space: break-spaces; line-height: 1.5; max-width: 200px; text-align: center; width: 200px;\">\u003Cspan class=\"nodeLabel\">\u003Cp>Deployment B：Provider A 备用 Key\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"node default\" id=\"flowchart-D3-4\" transform=\"translate(745.7291717529297, 255)\">\u003Crect class=\"basic label-container\" style=\"\" x=\"-130\" y=\"-39\" width=\"260\" height=\"78\">\u003C\u002Frect>\u003Cg class=\"label\" style=\"\" transform=\"translate(-100, -24)\">\u003Crect>\u003C\u002Frect>\u003CforeignObject width=\"200\" height=\"48\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table; white-space: break-spaces; line-height: 1.5; max-width: 200px; text-align: center; width: 200px;\">\u003Cspan class=\"nodeLabel\">\u003Cp>Deployment C：Provider B 兼容模型\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003C\u002Fg>\u003C\u002Fg>\u003C\u002Fg>\u003C\u002Fsvg>\u003Cdiv class=\"md-editor-mermaid-action\">\u003Cspan class=\"md-editor-mermaid-copy\">\u003Csvg xmlns=\"http:\u002F\u002Fwww.w3.org\u002F2000\u002Fsvg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"lucide lucide-copy md-editor-icon\">\u003Crect width=\"14\" height=\"14\" x=\"8\" y=\"8\" rx=\"2\" ry=\"2\">\u003C\u002Frect>\u003Cpath d=\"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2\">\u003C\u002Fpath>\u003C\u002Fsvg>\u003C\u002Fspan>\u003Cspan class=\"md-editor-mermaid-zoom\">\u003Csvg xmlns=\"http:\u002F\u002Fwww.w3.org\u002F2000\u002Fsvg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"lucide lucide-pin-off md-editor-icon\">\u003Cpath d=\"M12 17v5\">\u003C\u002Fpath>\u003Cpath d=\"M15 9.34V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H7.89\">\u003C\u002Fpath>\u003Cpath d=\"m2 2 20 20\">\u003C\u002Fpath>\u003Cpath d=\"M9 9v1.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h11\">\u003C\u002Fpath>\u003C\u002Fsvg>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002Fp>\u003Ch3 data-line=\"427\" id=\"6.2 Router 的核心能力\">6.2 Router 的核心能力\u003C\u002Fh3>\n\u003Ctable data-line=\"429\">\n\u003Cthead data-line=\"429\">\n\u003Ctr data-line=\"429\">\n\u003Cth>能力\u003C\u002Fth>\n\u003Cth>作用\u003C\u002Fth>\n\u003C\u002Ftr>\n\u003C\u002Fthead>\n\u003Ctbody data-line=\"431\">\n\u003Ctr data-line=\"431\">\n\u003Ctd>Load Balancing\u003C\u002Ftd>\n\u003Ctd>在同一模型组的 Deployment 中选择实例\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr data-line=\"432\">\n\u003Ctd>Retry\u003C\u002Ftd>\n\u003Ctd>当前实例失败后在策略允许范围内重试\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr data-line=\"433\">\n\u003Ctd>Fallback\u003C\u002Ftd>\n\u003Ctd>当前模型组失败后切换备用模型组\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr data-line=\"434\">\n\u003Ctd>Cooldown\u003C\u002Ftd>\n\u003Ctd>对连续失败或异常的 Deployment 暂时降权\u002F隔离\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr data-line=\"435\">\n\u003Ctd>Health \u002F Usage\u003C\u002Ftd>\n\u003Ctd>维护可用状态、RPM\u002FTPM 和部署使用情况\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr data-line=\"436\">\n\u003Ctd>Alias\u003C\u002Ftd>\n\u003Ctd>对外提供稳定模型名，内部映射真实模型\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr data-line=\"437\">\n\u003Ctd>Routing Strategy\u003C\u002Ftd>\n\u003Ctd>根据策略决定实例选择\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003C\u002Ftbody>\n\u003C\u002Ftable>\n\u003Ch3 data-line=\"439\" id=\"6.3 Retry 与 Fallback 的区别\">6.3 Retry 与 Fallback 的区别\u003C\u002Fh3>\n\u003Cp data-line=\"441\" class=\"md-editor-mermaid\" data-mermaid-theme=\"light\" data-closed=\"true\" data-processed=\"\" data-content=\"flowchart TD\n    R[&quot;调用 model-group-A&quot;] --&gt; A[&quot;选择 Deployment A1&quot;]\n    A --&gt;|失败| RETRY[&quot;Retry：在 A 组内尝试 A2&quot;]\n    RETRY --&gt;|成功| OK[&quot;返回成功&quot;]\n    RETRY --&gt;|仍失败 \u002F 策略耗尽| FB[&quot;Fallback：切换 model-group-B&quot;]\n    FB --&gt; B[&quot;选择 B 组 Deployment&quot;]\n    B --&gt;|成功| OK\n    B --&gt;|失败| ERR[&quot;返回最终异常&quot;]\">\u003Csvg id=\"mx9uhx862vlpyx58fis\" width=\"100%\" xmlns=\"http:\u002F\u002Fwww.w3.org\u002F2000\u002Fsvg\" xmlns:xlink=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxlink\" class=\"flowchart\" style=\"max-width: 385.5px;\" viewBox=\"0 0 385.5 710\" role=\"graphics-document document\" aria-roledescription=\"flowchart-v2\">\u003Cstyle>#mx9uhx862vlpyx58fis{font-family:\"trebuchet ms\",verdana,arial,sans-serif;font-size:16px;fill:#333;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#mx9uhx862vlpyx58fis .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#mx9uhx862vlpyx58fis .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#mx9uhx862vlpyx58fis .error-icon{fill:#552222;}#mx9uhx862vlpyx58fis .error-text{fill:#552222;stroke:#552222;}#mx9uhx862vlpyx58fis .edge-thickness-normal{stroke-width:1px;}#mx9uhx862vlpyx58fis .edge-thickness-thick{stroke-width:3.5px;}#mx9uhx862vlpyx58fis .edge-pattern-solid{stroke-dasharray:0;}#mx9uhx862vlpyx58fis .edge-thickness-invisible{stroke-width:0;fill:none;}#mx9uhx862vlpyx58fis .edge-pattern-dashed{stroke-dasharray:3;}#mx9uhx862vlpyx58fis .edge-pattern-dotted{stroke-dasharray:2;}#mx9uhx862vlpyx58fis .marker{fill:#333333;stroke:#333333;}#mx9uhx862vlpyx58fis .marker.cross{stroke:#333333;}#mx9uhx862vlpyx58fis svg{font-family:\"trebuchet ms\",verdana,arial,sans-serif;font-size:16px;}#mx9uhx862vlpyx58fis p{margin:0;}#mx9uhx862vlpyx58fis .label{font-family:\"trebuchet ms\",verdana,arial,sans-serif;color:#333;}#mx9uhx862vlpyx58fis .cluster-label text{fill:#333;}#mx9uhx862vlpyx58fis .cluster-label span{color:#333;}#mx9uhx862vlpyx58fis .cluster-label span p{background-color:transparent;}#mx9uhx862vlpyx58fis .label text,#mx9uhx862vlpyx58fis span{fill:#333;color:#333;}#mx9uhx862vlpyx58fis .node rect,#mx9uhx862vlpyx58fis .node circle,#mx9uhx862vlpyx58fis .node ellipse,#mx9uhx862vlpyx58fis .node polygon,#mx9uhx862vlpyx58fis .node path{fill:#ECECFF;stroke:#9370DB;stroke-width:1px;}#mx9uhx862vlpyx58fis .rough-node .label text,#mx9uhx862vlpyx58fis .node .label text,#mx9uhx862vlpyx58fis .image-shape .label,#mx9uhx862vlpyx58fis .icon-shape .label{text-anchor:middle;}#mx9uhx862vlpyx58fis .node .katex path{fill:#000;stroke:#000;stroke-width:1px;}#mx9uhx862vlpyx58fis .rough-node .label,#mx9uhx862vlpyx58fis .node .label,#mx9uhx862vlpyx58fis .image-shape .label,#mx9uhx862vlpyx58fis .icon-shape .label{text-align:center;}#mx9uhx862vlpyx58fis .node.clickable{cursor:pointer;}#mx9uhx862vlpyx58fis .root .anchor path{fill:#333333!important;stroke-width:0;stroke:#333333;}#mx9uhx862vlpyx58fis .arrowheadPath{fill:#333333;}#mx9uhx862vlpyx58fis .edgePath .path{stroke:#333333;stroke-width:2.0px;}#mx9uhx862vlpyx58fis .flowchart-link{stroke:#333333;fill:none;}#mx9uhx862vlpyx58fis .edgeLabel{background-color:rgba(232,232,232, 0.8);text-align:center;}#mx9uhx862vlpyx58fis .edgeLabel p{background-color:rgba(232,232,232, 0.8);}#mx9uhx862vlpyx58fis .edgeLabel rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mx9uhx862vlpyx58fis .labelBkg{background-color:rgba(232, 232, 232, 0.5);}#mx9uhx862vlpyx58fis .cluster rect{fill:#ffffde;stroke:#aaaa33;stroke-width:1px;}#mx9uhx862vlpyx58fis .cluster text{fill:#333;}#mx9uhx862vlpyx58fis .cluster span{color:#333;}#mx9uhx862vlpyx58fis div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:\"trebuchet ms\",verdana,arial,sans-serif;font-size:12px;background:hsl(80, 100%, 96.2745098039%);border:1px solid #aaaa33;border-radius:2px;pointer-events:none;z-index:100;}#mx9uhx862vlpyx58fis .flowchartTitleText{text-anchor:middle;font-size:18px;fill:#333;}#mx9uhx862vlpyx58fis rect.text{fill:none;stroke-width:0;}#mx9uhx862vlpyx58fis .icon-shape,#mx9uhx862vlpyx58fis .image-shape{background-color:rgba(232,232,232, 0.8);text-align:center;}#mx9uhx862vlpyx58fis .icon-shape p,#mx9uhx862vlpyx58fis .image-shape p{background-color:rgba(232,232,232, 0.8);padding:2px;}#mx9uhx862vlpyx58fis .icon-shape rect,#mx9uhx862vlpyx58fis .image-shape rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mx9uhx862vlpyx58fis .label-icon{display:inline-block;height:1em;overflow:visible;vertical-align:-0.125em;}#mx9uhx862vlpyx58fis .node .label-icon path{fill:currentColor;stroke:revert;stroke-width:revert;}#mx9uhx862vlpyx58fis :root{--mermaid-font-family:\"trebuchet ms\",verdana,arial,sans-serif;}\u003C\u002Fstyle>\u003Cg>\u003Cmarker id=\"mx9uhx862vlpyx58fis_flowchart-v2-pointEnd\" class=\"marker flowchart-v2\" viewBox=\"0 0 10 10\" refX=\"5\" refY=\"5\" markerUnits=\"userSpaceOnUse\" markerWidth=\"8\" markerHeight=\"8\" orient=\"auto\">\u003Cpath d=\"M 0 0 L 10 5 L 0 10 z\" class=\"arrowMarkerPath\" style=\"stroke-width: 1; stroke-dasharray: 1, 0;\">\u003C\u002Fpath>\u003C\u002Fmarker>\u003Cmarker id=\"mx9uhx862vlpyx58fis_flowchart-v2-pointStart\" class=\"marker flowchart-v2\" viewBox=\"0 0 10 10\" refX=\"4.5\" refY=\"5\" markerUnits=\"userSpaceOnUse\" markerWidth=\"8\" markerHeight=\"8\" orient=\"auto\">\u003Cpath d=\"M 0 5 L 10 10 L 10 0 z\" class=\"arrowMarkerPath\" style=\"stroke-width: 1; stroke-dasharray: 1, 0;\">\u003C\u002Fpath>\u003C\u002Fmarker>\u003Cmarker id=\"mx9uhx862vlpyx58fis_flowchart-v2-circleEnd\" class=\"marker flowchart-v2\" viewBox=\"0 0 10 10\" refX=\"11\" refY=\"5\" markerUnits=\"userSpaceOnUse\" markerWidth=\"11\" markerHeight=\"11\" orient=\"auto\">\u003Ccircle cx=\"5\" cy=\"5\" r=\"5\" class=\"arrowMarkerPath\" style=\"stroke-width: 1; stroke-dasharray: 1, 0;\">\u003C\u002Fcircle>\u003C\u002Fmarker>\u003Cmarker id=\"mx9uhx862vlpyx58fis_flowchart-v2-circleStart\" class=\"marker flowchart-v2\" viewBox=\"0 0 10 10\" refX=\"-1\" refY=\"5\" markerUnits=\"userSpaceOnUse\" markerWidth=\"11\" markerHeight=\"11\" orient=\"auto\">\u003Ccircle cx=\"5\" cy=\"5\" r=\"5\" class=\"arrowMarkerPath\" style=\"stroke-width: 1; stroke-dasharray: 1, 0;\">\u003C\u002Fcircle>\u003C\u002Fmarker>\u003Cmarker id=\"mx9uhx862vlpyx58fis_flowchart-v2-crossEnd\" class=\"marker cross flowchart-v2\" viewBox=\"0 0 11 11\" refX=\"12\" refY=\"5.2\" markerUnits=\"userSpaceOnUse\" markerWidth=\"11\" markerHeight=\"11\" orient=\"auto\">\u003Cpath d=\"M 1,1 l 9,9 M 10,1 l -9,9\" class=\"arrowMarkerPath\" style=\"stroke-width: 2; stroke-dasharray: 1, 0;\">\u003C\u002Fpath>\u003C\u002Fmarker>\u003Cmarker id=\"mx9uhx862vlpyx58fis_flowchart-v2-crossStart\" class=\"marker cross flowchart-v2\" viewBox=\"0 0 11 11\" refX=\"-1\" refY=\"5.2\" markerUnits=\"userSpaceOnUse\" markerWidth=\"11\" markerHeight=\"11\" orient=\"auto\">\u003Cpath d=\"M 1,1 l 9,9 M 10,1 l -9,9\" class=\"arrowMarkerPath\" style=\"stroke-width: 2; stroke-dasharray: 1, 0;\">\u003C\u002Fpath>\u003C\u002Fmarker>\u003Cg class=\"root\">\u003Cg class=\"clusters\">\u003C\u002Fg>\u003Cg class=\"edgePaths\">\u003Cpath d=\"M165,62L165,66.167C165,70.333,165,78.667,165,86.333C165,94,165,101,165,104.5L165,108\" id=\"L_R_A_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_R_A_0\" data-points=\"W3sieCI6MTY1LCJ5Ijo2Mn0seyJ4IjoxNjUsInkiOjg3fSx7IngiOjE2NSwieSI6MTEyfV0=\" marker-end=\"url(#mx9uhx862vlpyx58fis_flowchart-v2-pointEnd)\">\u003C\u002Fpath>\u003Cpath d=\"M165,166L165,172.167C165,178.333,165,190.667,165,202.333C165,214,165,225,165,230.5L165,236\" id=\"L_A_RETRY_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_A_RETRY_0\" data-points=\"W3sieCI6MTY1LCJ5IjoxNjZ9LHsieCI6MTY1LCJ5IjoyMDN9LHsieCI6MTY1LCJ5IjoyNDB9XQ==\" marker-end=\"url(#mx9uhx862vlpyx58fis_flowchart-v2-pointEnd)\">\u003C\u002Fpath>\u003Cpath d=\"M117.328,294L106.44,300.167C95.552,306.333,73.776,318.667,62.888,337.5C52,356.333,52,381.667,52,407C52,432.333,52,457.667,52,481C52,504.333,52,525.667,52,547C52,568.333,52,589.667,53.554,605.858C55.108,622.05,58.216,633.1,59.769,638.624L61.323,644.149\" id=\"L_RETRY_OK_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_RETRY_OK_0\" data-points=\"W3sieCI6MTE3LjMyODEyNSwieSI6Mjk0fSx7IngiOjUyLCJ5IjozMzF9LHsieCI6NTIsInkiOjQwN30seyJ4Ijo1MiwieSI6NDgzfSx7IngiOjUyLCJ5Ijo1NDd9LHsieCI6NTIsInkiOjYxMX0seyJ4Ijo2Mi40MDYyNSwieSI6NjQ4fV0=\" marker-end=\"url(#mx9uhx862vlpyx58fis_flowchart-v2-pointEnd)\">\u003C\u002Fpath>\u003Cpath d=\"M199.805,294L207.754,300.167C215.703,306.333,231.602,318.667,239.551,330.333C247.5,342,247.5,353,247.5,358.5L247.5,364\" id=\"L_RETRY_FB_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_RETRY_FB_0\" data-points=\"W3sieCI6MTk5LjgwNDY4NzUsInkiOjI5NH0seyJ4IjoyNDcuNSwieSI6MzMxfSx7IngiOjI0Ny41LCJ5IjozNjh9XQ==\" marker-end=\"url(#mx9uhx862vlpyx58fis_flowchart-v2-pointEnd)\">\u003C\u002Fpath>\u003Cpath d=\"M247.5,446L247.5,452.167C247.5,458.333,247.5,470.667,247.5,482.333C247.5,494,247.5,505,247.5,510.5L247.5,516\" id=\"L_FB_B_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_FB_B_0\" data-points=\"W3sieCI6MjQ3LjUsInkiOjQ0Nn0seyJ4IjoyNDcuNSwieSI6NDgzfSx7IngiOjI0Ny41LCJ5Ijo1MjB9XQ==\" marker-end=\"url(#mx9uhx862vlpyx58fis_flowchart-v2-pointEnd)\">\u003C\u002Fpath>\u003Cpath d=\"M207.422,574L198.268,580.167C189.115,586.333,170.807,598.667,154.231,610.591C137.655,622.516,122.81,634.032,115.388,639.79L107.965,645.548\" id=\"L_B_OK_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_B_OK_0\" data-points=\"W3sieCI6MjA3LjQyMTg3NSwieSI6NTc0fSx7IngiOjE1Mi41LCJ5Ijo2MTF9LHsieCI6MTA0LjgwNDY4NzUsInkiOjY0OH1d\" marker-end=\"url(#mx9uhx862vlpyx58fis_flowchart-v2-pointEnd)\">\u003C\u002Fpath>\u003Cpath d=\"M258.469,574L260.974,580.167C263.479,586.333,268.49,598.667,270.995,610.333C273.5,622,273.5,633,273.5,638.5L273.5,644\" id=\"L_B_ERR_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_B_ERR_0\" data-points=\"W3sieCI6MjU4LjQ2ODc1LCJ5Ijo1NzR9LHsieCI6MjczLjUsInkiOjYxMX0seyJ4IjoyNzMuNSwieSI6NjQ4fV0=\" marker-end=\"url(#mx9uhx862vlpyx58fis_flowchart-v2-pointEnd)\">\u003C\u002Fpath>\u003C\u002Fg>\u003Cg class=\"edgeLabels\">\u003Cg class=\"edgeLabel\">\u003Cg class=\"label\" data-id=\"L_R_A_0\" transform=\"translate(0, 0)\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"edgeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"edgeLabel\" transform=\"translate(165, 203)\">\u003Cg class=\"label\" data-id=\"L_A_RETRY_0\" transform=\"translate(-16, -12)\">\u003CforeignObject width=\"32\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"edgeLabel\">\u003Cp>失败\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"edgeLabel\" transform=\"translate(52, 483)\">\u003Cg class=\"label\" data-id=\"L_RETRY_OK_0\" transform=\"translate(-16, -12)\">\u003CforeignObject width=\"32\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"edgeLabel\">\u003Cp>成功\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"edgeLabel\" transform=\"translate(247.5, 331)\">\u003Cg class=\"label\" data-id=\"L_RETRY_FB_0\" transform=\"translate(-65.015625, -12)\">\u003CforeignObject width=\"130.03125\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"edgeLabel\">\u003Cp>仍失败 \u002F 策略耗尽\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"edgeLabel\">\u003Cg class=\"label\" data-id=\"L_FB_B_0\" transform=\"translate(0, 0)\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"edgeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"edgeLabel\" transform=\"translate(152.5, 611)\">\u003Cg class=\"label\" data-id=\"L_B_OK_0\" transform=\"translate(-16, -12)\">\u003CforeignObject width=\"32\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"edgeLabel\">\u003Cp>成功\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"edgeLabel\" transform=\"translate(273.5, 611)\">\u003Cg class=\"label\" data-id=\"L_B_ERR_0\" transform=\"translate(-16, -12)\">\u003CforeignObject width=\"32\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"edgeLabel\">\u003Cp>失败\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"nodes\">\u003Cg class=\"node default\" id=\"flowchart-R-0\" transform=\"translate(165, 35)\">\u003Crect class=\"basic label-container\" style=\"\" x=\"-101.36458587646484\" y=\"-27\" width=\"202.7291717529297\" height=\"54\">\u003C\u002Frect>\u003Cg class=\"label\" style=\"\" transform=\"translate(-71.36458587646484, -12)\">\u003Crect>\u003C\u002Frect>\u003CforeignObject width=\"142.7291717529297\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"nodeLabel\">\u003Cp>调用 model-group-A\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"node default\" id=\"flowchart-A-1\" transform=\"translate(165, 139)\">\u003Crect class=\"basic label-container\" style=\"\" x=\"-102.16667175292969\" y=\"-27\" width=\"204.33334350585938\" height=\"54\">\u003C\u002Frect>\u003Cg class=\"label\" style=\"\" transform=\"translate(-72.16667175292969, -12)\">\u003Crect>\u003C\u002Frect>\u003CforeignObject width=\"144.33334350585938\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"nodeLabel\">\u003Cp>选择 Deployment A1\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"node default\" id=\"flowchart-RETRY-3\" transform=\"translate(165, 267)\">\u003Crect class=\"basic label-container\" style=\"\" x=\"-117.34375\" y=\"-27\" width=\"234.6875\" height=\"54\">\u003C\u002Frect>\u003Cg class=\"label\" style=\"\" transform=\"translate(-87.34375, -12)\">\u003Crect>\u003C\u002Frect>\u003CforeignObject width=\"174.6875\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"nodeLabel\">\u003Cp>Retry：在 A 组内尝试 A2\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"node default\" id=\"flowchart-OK-5\" transform=\"translate(70, 675)\">\u003Crect class=\"basic label-container\" style=\"\" x=\"-62\" y=\"-27\" width=\"124\" height=\"54\">\u003C\u002Frect>\u003Cg class=\"label\" style=\"\" transform=\"translate(-32, -12)\">\u003Crect>\u003C\u002Frect>\u003CforeignObject width=\"64\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"nodeLabel\">\u003Cp>返回成功\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"node default\" id=\"flowchart-FB-7\" transform=\"translate(247.5, 407)\">\u003Crect class=\"basic label-container\" style=\"\" x=\"-130\" y=\"-39\" width=\"260\" height=\"78\">\u003C\u002Frect>\u003Cg class=\"label\" style=\"\" transform=\"translate(-100, -24)\">\u003Crect>\u003C\u002Frect>\u003CforeignObject width=\"200\" height=\"48\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table; white-space: break-spaces; line-height: 1.5; max-width: 200px; text-align: center; width: 200px;\">\u003Cspan class=\"nodeLabel\">\u003Cp>Fallback：切换 model-group-B\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"node default\" id=\"flowchart-B-9\" transform=\"translate(247.5, 547)\">\u003Crect class=\"basic label-container\" style=\"\" x=\"-108.63021087646484\" y=\"-27\" width=\"217.2604217529297\" height=\"54\">\u003C\u002Frect>\u003Cg class=\"label\" style=\"\" transform=\"translate(-78.63021087646484, -12)\">\u003Crect>\u003C\u002Frect>\u003CforeignObject width=\"157.2604217529297\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"nodeLabel\">\u003Cp>选择 B 组 Deployment\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"node default\" id=\"flowchart-ERR-13\" transform=\"translate(273.5, 675)\">\u003Crect class=\"basic label-container\" style=\"\" x=\"-78\" y=\"-27\" width=\"156\" height=\"54\">\u003C\u002Frect>\u003Cg class=\"label\" style=\"\" transform=\"translate(-48, -12)\">\u003Crect>\u003C\u002Frect>\u003CforeignObject width=\"96\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"nodeLabel\">\u003Cp>返回最终异常\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003C\u002Fg>\u003C\u002Fg>\u003C\u002Fg>\u003C\u002Fsvg>\u003Cdiv class=\"md-editor-mermaid-action\">\u003Cspan class=\"md-editor-mermaid-copy\">\u003Csvg xmlns=\"http:\u002F\u002Fwww.w3.org\u002F2000\u002Fsvg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"lucide lucide-copy md-editor-icon\">\u003Crect width=\"14\" height=\"14\" x=\"8\" y=\"8\" rx=\"2\" ry=\"2\">\u003C\u002Frect>\u003Cpath d=\"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2\">\u003C\u002Fpath>\u003C\u002Fsvg>\u003C\u002Fspan>\u003Cspan class=\"md-editor-mermaid-zoom\">\u003Csvg xmlns=\"http:\u002F\u002Fwww.w3.org\u002F2000\u002Fsvg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"lucide lucide-pin-off md-editor-icon\">\u003Cpath d=\"M12 17v5\">\u003C\u002Fpath>\u003Cpath d=\"M15 9.34V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H7.89\">\u003C\u002Fpath>\u003Cpath d=\"m2 2 20 20\">\u003C\u002Fpath>\u003Cpath d=\"M9 9v1.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h11\">\u003C\u002Fpath>\u003C\u002Fsvg>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002Fp>\u003Cul data-line=\"452\">\n\u003Cli data-line=\"452\">Retry：仍在同一个逻辑模型组内寻找可用实例。\u003C\u002Fli>\n\u003Cli data-line=\"453\">Fallback：切换到另一个逻辑模型组。\u003C\u002Fli>\n\u003Cli data-line=\"454\">Fallback 不应被理解为“自动找一个效果相同的模型”。模型能力、输出格式、上下文和费用都可能不同，必须由业务方明确配置和验证。\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Ch3 data-line=\"456\" id=\"6.4 新版本 Router 的 Rust 边界\">6.4 新版本 Router 的 Rust 边界\u003C\u002Fh3>\n\u003Cp data-line=\"458\">当前源码 \u003Ccode>litellm\u002Frouter.py\u003C\u002Fcode> 的模块说明明确：Router 主要承担配置构建和接口门面职责，具体 Router Core 通过 \u003Ccode>router_core.py\u003C\u002Fcode> 创建，并把 Endpoint Methods 和 Registry \u002F Health \u002F Select \u002F Apply \u002F Observe 等入口委托给 Core。\u003C\u002Fp>\n\u003Cp data-line=\"460\">Rust Core 设计中的重要概念：\u003C\u002Fp>\n\u003Cul data-line=\"462\">\n\u003Cli data-line=\"462\">\u003Cstrong>Registry\u003C\u002Fstrong>：部署注册表，按 ID、模型组、别名、团队等索引。\u003C\u002Fli>\n\u003Cli data-line=\"463\">\u003Cstrong>RouterConfig \u002F Dynamic Config\u003C\u002Fstrong>：静态路由配置与动态配置快照。\u003C\u002Fli>\n\u003Cli data-line=\"464\">\u003Cstrong>Health\u003C\u002Fstrong>：冷却状态、失败计数和使用情况。\u003C\u002Fli>\n\u003Cli data-line=\"465\">\u003Cstrong>select()\u003C\u002Fstrong>：只做部署选择。\u003C\u002Fli>\n\u003Cli data-line=\"466\">\u003Cstrong>apply()\u003C\u002Fstrong>：原子应用配置变更。\u003C\u002Fli>\n\u003Cli data-line=\"467\">\u003Cstrong>call()\u003C\u002Fstrong>：执行选择、调用、重试和 Fallback。\u003C\u002Fli>\n\u003Cli data-line=\"468\">\u003Cstrong>Host\u003C\u002Fstrong>：通过 Host 把实际 Provider 调用交给 Python 或 Gateway 执行。\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Cp data-line=\"470\">这是一种清晰的核心\u002F宿主边界设计，减少 Router Core 对 Python 全局状态和具体 Provider 实现的直接耦合。\u003C\u002Fp>\n\u003Chr data-line=\"472\">\n\u003Ch2 data-line=\"474\" id=\"7. 认证、授权和多租户模型\">7. 认证、授权和多租户模型\u003C\u002Fh2>\n\u003Ch3 data-line=\"476\" id=\"7.1 Virtual Key 是应用接入的主要治理单元\">7.1 Virtual Key 是应用接入的主要治理单元\u003C\u002Fh3>\n\u003Cp data-line=\"478\">客户端使用 LiteLLM 发放的 Virtual Key，而不是直接使用供应商的 API Key。\u003C\u002Fp>\n\u003Cp data-line=\"480\" class=\"md-editor-mermaid\" data-mermaid-theme=\"light\" data-closed=\"true\" data-processed=\"\" data-content=\"flowchart TB\n    APP[&quot;Application \u002F Agent&quot;]\n    VKEY[&quot;Virtual Key&quot;]\n    AUTH[&quot;Key Authentication&quot;]\n    SCOPE[&quot;Scope \u002F Model Access&quot;]\n    BUDGET[&quot;Budget \u002F Spend Limit&quot;]\n    RATE[&quot;RPM \u002F TPM \u002F Concurrency&quot;]\n    PROVIDERKEY[&quot;Provider Credentials&quot;]\n    MODEL[&quot;Model Deployment&quot;]\n\n    APP --&gt; VKEY --&gt; AUTH\n    AUTH --&gt; SCOPE\n    AUTH --&gt; BUDGET\n    AUTH --&gt; RATE\n    SCOPE --&gt; MODEL\n    BUDGET --&gt; MODEL\n    RATE --&gt; MODEL\n    PROVIDERKEY --&gt; MODEL\">\u003Csvg id=\"mx9uhx86st2otrw206r\" width=\"100%\" xmlns=\"http:\u002F\u002Fwww.w3.org\u002F2000\u002Fsvg\" xmlns:xlink=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxlink\" class=\"flowchart\" style=\"max-width: 1041.260498046875px;\" viewBox=\"0 0 1041.260498046875 486\" role=\"graphics-document document\" aria-roledescription=\"flowchart-v2\">\u003Cstyle>#mx9uhx86st2otrw206r{font-family:\"trebuchet ms\",verdana,arial,sans-serif;font-size:16px;fill:#333;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#mx9uhx86st2otrw206r .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#mx9uhx86st2otrw206r .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#mx9uhx86st2otrw206r .error-icon{fill:#552222;}#mx9uhx86st2otrw206r .error-text{fill:#552222;stroke:#552222;}#mx9uhx86st2otrw206r .edge-thickness-normal{stroke-width:1px;}#mx9uhx86st2otrw206r .edge-thickness-thick{stroke-width:3.5px;}#mx9uhx86st2otrw206r .edge-pattern-solid{stroke-dasharray:0;}#mx9uhx86st2otrw206r .edge-thickness-invisible{stroke-width:0;fill:none;}#mx9uhx86st2otrw206r .edge-pattern-dashed{stroke-dasharray:3;}#mx9uhx86st2otrw206r .edge-pattern-dotted{stroke-dasharray:2;}#mx9uhx86st2otrw206r .marker{fill:#333333;stroke:#333333;}#mx9uhx86st2otrw206r .marker.cross{stroke:#333333;}#mx9uhx86st2otrw206r svg{font-family:\"trebuchet ms\",verdana,arial,sans-serif;font-size:16px;}#mx9uhx86st2otrw206r p{margin:0;}#mx9uhx86st2otrw206r .label{font-family:\"trebuchet ms\",verdana,arial,sans-serif;color:#333;}#mx9uhx86st2otrw206r .cluster-label text{fill:#333;}#mx9uhx86st2otrw206r .cluster-label span{color:#333;}#mx9uhx86st2otrw206r .cluster-label span p{background-color:transparent;}#mx9uhx86st2otrw206r .label text,#mx9uhx86st2otrw206r span{fill:#333;color:#333;}#mx9uhx86st2otrw206r .node rect,#mx9uhx86st2otrw206r .node circle,#mx9uhx86st2otrw206r .node ellipse,#mx9uhx86st2otrw206r .node polygon,#mx9uhx86st2otrw206r .node path{fill:#ECECFF;stroke:#9370DB;stroke-width:1px;}#mx9uhx86st2otrw206r .rough-node .label text,#mx9uhx86st2otrw206r .node .label text,#mx9uhx86st2otrw206r .image-shape .label,#mx9uhx86st2otrw206r .icon-shape .label{text-anchor:middle;}#mx9uhx86st2otrw206r .node .katex path{fill:#000;stroke:#000;stroke-width:1px;}#mx9uhx86st2otrw206r .rough-node .label,#mx9uhx86st2otrw206r .node .label,#mx9uhx86st2otrw206r .image-shape .label,#mx9uhx86st2otrw206r .icon-shape .label{text-align:center;}#mx9uhx86st2otrw206r .node.clickable{cursor:pointer;}#mx9uhx86st2otrw206r .root .anchor path{fill:#333333!important;stroke-width:0;stroke:#333333;}#mx9uhx86st2otrw206r .arrowheadPath{fill:#333333;}#mx9uhx86st2otrw206r .edgePath .path{stroke:#333333;stroke-width:2.0px;}#mx9uhx86st2otrw206r .flowchart-link{stroke:#333333;fill:none;}#mx9uhx86st2otrw206r .edgeLabel{background-color:rgba(232,232,232, 0.8);text-align:center;}#mx9uhx86st2otrw206r .edgeLabel p{background-color:rgba(232,232,232, 0.8);}#mx9uhx86st2otrw206r .edgeLabel rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mx9uhx86st2otrw206r .labelBkg{background-color:rgba(232, 232, 232, 0.5);}#mx9uhx86st2otrw206r .cluster rect{fill:#ffffde;stroke:#aaaa33;stroke-width:1px;}#mx9uhx86st2otrw206r .cluster text{fill:#333;}#mx9uhx86st2otrw206r .cluster span{color:#333;}#mx9uhx86st2otrw206r div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:\"trebuchet ms\",verdana,arial,sans-serif;font-size:12px;background:hsl(80, 100%, 96.2745098039%);border:1px solid #aaaa33;border-radius:2px;pointer-events:none;z-index:100;}#mx9uhx86st2otrw206r .flowchartTitleText{text-anchor:middle;font-size:18px;fill:#333;}#mx9uhx86st2otrw206r rect.text{fill:none;stroke-width:0;}#mx9uhx86st2otrw206r .icon-shape,#mx9uhx86st2otrw206r .image-shape{background-color:rgba(232,232,232, 0.8);text-align:center;}#mx9uhx86st2otrw206r .icon-shape p,#mx9uhx86st2otrw206r .image-shape p{background-color:rgba(232,232,232, 0.8);padding:2px;}#mx9uhx86st2otrw206r .icon-shape rect,#mx9uhx86st2otrw206r .image-shape rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mx9uhx86st2otrw206r .label-icon{display:inline-block;height:1em;overflow:visible;vertical-align:-0.125em;}#mx9uhx86st2otrw206r .node .label-icon path{fill:currentColor;stroke:revert;stroke-width:revert;}#mx9uhx86st2otrw206r :root{--mermaid-font-family:\"trebuchet ms\",verdana,arial,sans-serif;}\u003C\u002Fstyle>\u003Cg>\u003Cmarker id=\"mx9uhx86st2otrw206r_flowchart-v2-pointEnd\" class=\"marker flowchart-v2\" viewBox=\"0 0 10 10\" refX=\"5\" refY=\"5\" markerUnits=\"userSpaceOnUse\" markerWidth=\"8\" markerHeight=\"8\" orient=\"auto\">\u003Cpath d=\"M 0 0 L 10 5 L 0 10 z\" class=\"arrowMarkerPath\" style=\"stroke-width: 1; stroke-dasharray: 1, 0;\">\u003C\u002Fpath>\u003C\u002Fmarker>\u003Cmarker id=\"mx9uhx86st2otrw206r_flowchart-v2-pointStart\" class=\"marker flowchart-v2\" viewBox=\"0 0 10 10\" refX=\"4.5\" refY=\"5\" markerUnits=\"userSpaceOnUse\" markerWidth=\"8\" markerHeight=\"8\" orient=\"auto\">\u003Cpath d=\"M 0 5 L 10 10 L 10 0 z\" class=\"arrowMarkerPath\" style=\"stroke-width: 1; stroke-dasharray: 1, 0;\">\u003C\u002Fpath>\u003C\u002Fmarker>\u003Cmarker id=\"mx9uhx86st2otrw206r_flowchart-v2-circleEnd\" class=\"marker flowchart-v2\" viewBox=\"0 0 10 10\" refX=\"11\" refY=\"5\" markerUnits=\"userSpaceOnUse\" markerWidth=\"11\" markerHeight=\"11\" orient=\"auto\">\u003Ccircle cx=\"5\" cy=\"5\" r=\"5\" class=\"arrowMarkerPath\" style=\"stroke-width: 1; stroke-dasharray: 1, 0;\">\u003C\u002Fcircle>\u003C\u002Fmarker>\u003Cmarker id=\"mx9uhx86st2otrw206r_flowchart-v2-circleStart\" class=\"marker flowchart-v2\" viewBox=\"0 0 10 10\" refX=\"-1\" refY=\"5\" markerUnits=\"userSpaceOnUse\" markerWidth=\"11\" markerHeight=\"11\" orient=\"auto\">\u003Ccircle cx=\"5\" cy=\"5\" r=\"5\" class=\"arrowMarkerPath\" style=\"stroke-width: 1; stroke-dasharray: 1, 0;\">\u003C\u002Fcircle>\u003C\u002Fmarker>\u003Cmarker id=\"mx9uhx86st2otrw206r_flowchart-v2-crossEnd\" class=\"marker cross flowchart-v2\" viewBox=\"0 0 11 11\" refX=\"12\" refY=\"5.2\" markerUnits=\"userSpaceOnUse\" markerWidth=\"11\" markerHeight=\"11\" orient=\"auto\">\u003Cpath d=\"M 1,1 l 9,9 M 10,1 l -9,9\" class=\"arrowMarkerPath\" style=\"stroke-width: 2; stroke-dasharray: 1, 0;\">\u003C\u002Fpath>\u003C\u002Fmarker>\u003Cmarker id=\"mx9uhx86st2otrw206r_flowchart-v2-crossStart\" class=\"marker cross flowchart-v2\" viewBox=\"0 0 11 11\" refX=\"-1\" refY=\"5.2\" markerUnits=\"userSpaceOnUse\" markerWidth=\"11\" markerHeight=\"11\" orient=\"auto\">\u003Cpath d=\"M 1,1 l 9,9 M 10,1 l -9,9\" class=\"arrowMarkerPath\" style=\"stroke-width: 2; stroke-dasharray: 1, 0;\">\u003C\u002Fpath>\u003C\u002Fmarker>\u003Cg class=\"root\">\u003Cg class=\"clusters\">\u003C\u002Fg>\u003Cg class=\"edgePaths\">\u003Cpath d=\"M377.328,62L377.328,66.167C377.328,70.333,377.328,78.667,377.328,86.333C377.328,94,377.328,101,377.328,104.5L377.328,108\" id=\"L_APP_VKEY_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_APP_VKEY_0\" data-points=\"W3sieCI6Mzc3LjMyODEzMjYyOTM5NDUzLCJ5Ijo2Mn0seyJ4IjozNzcuMzI4MTMyNjI5Mzk0NTMsInkiOjg3fSx7IngiOjM3Ny4zMjgxMzI2MjkzOTQ1MywieSI6MTEyfV0=\" marker-end=\"url(#mx9uhx86st2otrw206r_flowchart-v2-pointEnd)\">\u003C\u002Fpath>\u003Cpath d=\"M377.328,166L377.328,170.167C377.328,174.333,377.328,182.667,377.328,190.333C377.328,198,377.328,205,377.328,208.5L377.328,212\" id=\"L_VKEY_AUTH_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_VKEY_AUTH_0\" data-points=\"W3sieCI6Mzc3LjMyODEzMjYyOTM5NDUzLCJ5IjoxNjZ9LHsieCI6Mzc3LjMyODEzMjYyOTM5NDUzLCJ5IjoxOTF9LHsieCI6Mzc3LjMyODEzMjYyOTM5NDUzLCJ5IjoyMTZ9XQ==\" marker-end=\"url(#mx9uhx86st2otrw206r_flowchart-v2-pointEnd)\">\u003C\u002Fpath>\u003Cpath d=\"M279.594,262.339L252.084,267.783C224.575,273.226,169.556,284.113,142.046,293.057C114.536,302,114.536,309,114.536,312.5L114.536,316\" id=\"L_AUTH_SCOPE_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_AUTH_SCOPE_0\" data-points=\"W3sieCI6Mjc5LjU5Mzc1NzYyOTM5NDUzLCJ5IjoyNjIuMzM5MjI1ODgyMjM0NzZ9LHsieCI6MTE0LjUzNjQ2MDg3NjQ2NDg0LCJ5IjoyOTV9LHsieCI6MTE0LjUzNjQ2MDg3NjQ2NDg0LCJ5IjozMjB9XQ==\" marker-end=\"url(#mx9uhx86st2otrw206r_flowchart-v2-pointEnd)\">\u003C\u002Fpath>\u003Cpath d=\"M377.328,270L377.328,274.167C377.328,278.333,377.328,286.667,377.328,294.333C377.328,302,377.328,309,377.328,312.5L377.328,316\" id=\"L_AUTH_BUDGET_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_AUTH_BUDGET_0\" data-points=\"W3sieCI6Mzc3LjMyODEzMjYyOTM5NDUzLCJ5IjoyNzB9LHsieCI6Mzc3LjMyODEzMjYyOTM5NDUzLCJ5IjoyOTV9LHsieCI6Mzc3LjMyODEzMjYyOTM5NDUzLCJ5IjozMjB9XQ==\" marker-end=\"url(#mx9uhx86st2otrw206r_flowchart-v2-pointEnd)\">\u003C\u002Fpath>\u003Cpath d=\"M475.063,261.258L505.167,266.881C535.271,272.505,595.479,283.753,625.583,292.876C655.688,302,655.688,309,655.688,312.5L655.688,316\" id=\"L_AUTH_RATE_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_AUTH_RATE_0\" data-points=\"W3sieCI6NDc1LjA2MjUwNzYyOTM5NDUzLCJ5IjoyNjEuMjU3NjQ4MDQ5Mzk2NTV9LHsieCI6NjU1LjY4NzUwNzYyOTM5NDUsInkiOjI5NX0seyJ4Ijo2NTUuNjg3NTA3NjI5Mzk0NSwieSI6MzIwfV0=\" marker-end=\"url(#mx9uhx86st2otrw206r_flowchart-v2-pointEnd)\">\u003C\u002Fpath>\u003Cpath d=\"M114.536,374L114.536,378.167C114.536,382.333,114.536,390.667,164.798,401.335C215.061,412.004,315.585,425.008,365.847,431.51L416.109,438.012\" id=\"L_SCOPE_MODEL_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_SCOPE_MODEL_0\" data-points=\"W3sieCI6MTE0LjUzNjQ2MDg3NjQ2NDg0LCJ5IjozNzR9LHsieCI6MTE0LjUzNjQ2MDg3NjQ2NDg0LCJ5IjozOTl9LHsieCI6NDIwLjA3NTUzMTAwNTg1OTQsInkiOjQzOC41MjUyODI3ODY5NTQ0NX1d\" marker-end=\"url(#mx9uhx86st2otrw206r_flowchart-v2-pointEnd)\">\u003C\u002Fpath>\u003Cpath d=\"M377.328,374L377.328,378.167C377.328,382.333,377.328,390.667,387.856,398.767C398.384,406.867,419.439,414.733,429.967,418.667L440.494,422.6\" id=\"L_BUDGET_MODEL_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_BUDGET_MODEL_0\" data-points=\"W3sieCI6Mzc3LjMyODEzMjYyOTM5NDUzLCJ5IjozNzR9LHsieCI6Mzc3LjMyODEzMjYyOTM5NDUzLCJ5IjozOTl9LHsieCI6NDQ0LjI0MTQ0MzkyNzQ3MTQ0LCJ5Ijo0MjR9XQ==\" marker-end=\"url(#mx9uhx86st2otrw206r_flowchart-v2-pointEnd)\">\u003C\u002Fpath>\u003Cpath d=\"M655.688,374L655.688,378.167C655.688,382.333,655.688,390.667,645.16,398.767C634.632,406.867,613.577,414.733,603.049,418.667L592.521,422.6\" id=\"L_RATE_MODEL_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_RATE_MODEL_0\" data-points=\"W3sieCI6NjU1LjY4NzUwNzYyOTM5NDUsInkiOjM3NH0seyJ4Ijo2NTUuNjg3NTA3NjI5Mzk0NSwieSI6Mzk5fSx7IngiOjU4OC43NzQxOTYzMzEzMTc2LCJ5Ijo0MjR9XQ==\" marker-end=\"url(#mx9uhx86st2otrw206r_flowchart-v2-pointEnd)\">\u003C\u002Fpath>\u003Cpath d=\"M930.526,374L930.526,378.167C930.526,382.333,930.526,390.667,878.257,401.398C825.987,412.13,721.448,425.26,669.178,431.825L616.909,438.39\" id=\"L_PROVIDERKEY_MODEL_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_PROVIDERKEY_MODEL_0\" data-points=\"W3sieCI6OTMwLjUyNjA0Njc1MjkyOTcsInkiOjM3NH0seyJ4Ijo5MzAuNTI2MDQ2NzUyOTI5NywieSI6Mzk5fSx7IngiOjYxMi45NDAxMDkyNTI5Mjk3LCJ5Ijo0MzguODg4MjY1MDI4MDQzMX1d\" marker-end=\"url(#mx9uhx86st2otrw206r_flowchart-v2-pointEnd)\">\u003C\u002Fpath>\u003C\u002Fg>\u003Cg class=\"edgeLabels\">\u003Cg class=\"edgeLabel\">\u003Cg class=\"label\" data-id=\"L_APP_VKEY_0\" transform=\"translate(0, 0)\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"edgeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"edgeLabel\">\u003Cg class=\"label\" data-id=\"L_VKEY_AUTH_0\" transform=\"translate(0, 0)\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"edgeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"edgeLabel\">\u003Cg class=\"label\" data-id=\"L_AUTH_SCOPE_0\" transform=\"translate(0, 0)\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"edgeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"edgeLabel\">\u003Cg class=\"label\" data-id=\"L_AUTH_BUDGET_0\" transform=\"translate(0, 0)\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"edgeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"edgeLabel\">\u003Cg class=\"label\" data-id=\"L_AUTH_RATE_0\" transform=\"translate(0, 0)\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"edgeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"edgeLabel\">\u003Cg class=\"label\" data-id=\"L_SCOPE_MODEL_0\" transform=\"translate(0, 0)\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"edgeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"edgeLabel\">\u003Cg class=\"label\" data-id=\"L_BUDGET_MODEL_0\" transform=\"translate(0, 0)\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"edgeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"edgeLabel\">\u003Cg class=\"label\" data-id=\"L_RATE_MODEL_0\" transform=\"translate(0, 0)\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"edgeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"edgeLabel\">\u003Cg class=\"label\" data-id=\"L_PROVIDERKEY_MODEL_0\" transform=\"translate(0, 0)\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"edgeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"nodes\">\u003Cg class=\"node default\" id=\"flowchart-APP-0\" transform=\"translate(377.32813262939453, 35)\">\u003Crect class=\"basic label-container\" style=\"\" x=\"-99.77083587646484\" y=\"-27\" width=\"199.5416717529297\" height=\"54\">\u003C\u002Frect>\u003Cg class=\"label\" style=\"\" transform=\"translate(-69.77083587646484, -12)\">\u003Crect>\u003C\u002Frect>\u003CforeignObject width=\"139.5416717529297\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"nodeLabel\">\u003Cp>Application \u002F Agent\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"node default\" id=\"flowchart-VKEY-1\" transform=\"translate(377.32813262939453, 139)\">\u003Crect class=\"basic label-container\" style=\"\" x=\"-69.125\" y=\"-27\" width=\"138.25\" height=\"54\">\u003C\u002Frect>\u003Cg class=\"label\" style=\"\" transform=\"translate(-39.125, -12)\">\u003Crect>\u003C\u002Frect>\u003CforeignObject width=\"78.25\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"nodeLabel\">\u003Cp>Virtual Key\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"node default\" id=\"flowchart-AUTH-2\" transform=\"translate(377.32813262939453, 243)\">\u003Crect class=\"basic label-container\" style=\"\" x=\"-97.734375\" y=\"-27\" width=\"195.46875\" height=\"54\">\u003C\u002Frect>\u003Cg class=\"label\" style=\"\" transform=\"translate(-67.734375, -12)\">\u003Crect>\u003C\u002Frect>\u003CforeignObject width=\"135.46875\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"nodeLabel\">\u003Cp>Key Authentication\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"node default\" id=\"flowchart-SCOPE-3\" transform=\"translate(114.53646087646484, 347)\">\u003Crect class=\"basic label-container\" style=\"\" x=\"-106.53646087646484\" y=\"-27\" width=\"213.0729217529297\" height=\"54\">\u003C\u002Frect>\u003Cg class=\"label\" style=\"\" transform=\"translate(-76.53646087646484, -12)\">\u003Crect>\u003C\u002Frect>\u003CforeignObject width=\"153.0729217529297\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"nodeLabel\">\u003Cp>Scope \u002F Model Access\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"node default\" id=\"flowchart-BUDGET-4\" transform=\"translate(377.32813262939453, 347)\">\u003Crect class=\"basic label-container\" style=\"\" x=\"-106.25521087646484\" y=\"-27\" width=\"212.5104217529297\" height=\"54\">\u003C\u002Frect>\u003Cg class=\"label\" style=\"\" transform=\"translate(-76.25521087646484, -12)\">\u003Crect>\u003C\u002Frect>\u003CforeignObject width=\"152.5104217529297\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"nodeLabel\">\u003Cp>Budget \u002F Spend Limit\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"node default\" id=\"flowchart-RATE-5\" transform=\"translate(655.6875076293945, 347)\">\u003Crect class=\"basic label-container\" style=\"\" x=\"-122.10417175292969\" y=\"-27\" width=\"244.20834350585938\" height=\"54\">\u003C\u002Frect>\u003Cg class=\"label\" style=\"\" transform=\"translate(-92.10417175292969, -12)\">\u003Crect>\u003C\u002Frect>\u003CforeignObject width=\"184.20834350585938\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"nodeLabel\">\u003Cp>RPM \u002F TPM \u002F Concurrency\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"node default\" id=\"flowchart-PROVIDERKEY-6\" transform=\"translate(930.5260467529297, 347)\">\u003Crect class=\"basic label-container\" style=\"\" x=\"-102.734375\" y=\"-27\" width=\"205.46875\" height=\"54\">\u003C\u002Frect>\u003Cg class=\"label\" style=\"\" transform=\"translate(-72.734375, -12)\">\u003Crect>\u003C\u002Frect>\u003CforeignObject width=\"145.46875\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"nodeLabel\">\u003Cp>Provider Credentials\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"node default\" id=\"flowchart-MODEL-7\" transform=\"translate(516.5078201293945, 451)\">\u003Crect class=\"basic label-container\" style=\"\" x=\"-96.43229675292969\" y=\"-27\" width=\"192.86459350585938\" height=\"54\">\u003C\u002Frect>\u003Cg class=\"label\" style=\"\" transform=\"translate(-66.43229675292969, -12)\">\u003Crect>\u003C\u002Frect>\u003CforeignObject width=\"132.86459350585938\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"nodeLabel\">\u003Cp>Model Deployment\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003C\u002Fg>\u003C\u002Fg>\u003C\u002Fg>\u003C\u002Fsvg>\u003Cdiv class=\"md-editor-mermaid-action\">\u003Cspan class=\"md-editor-mermaid-copy\">\u003Csvg xmlns=\"http:\u002F\u002Fwww.w3.org\u002F2000\u002Fsvg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"lucide lucide-copy md-editor-icon\">\u003Crect width=\"14\" height=\"14\" x=\"8\" y=\"8\" rx=\"2\" ry=\"2\">\u003C\u002Frect>\u003Cpath d=\"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2\">\u003C\u002Fpath>\u003C\u002Fsvg>\u003C\u002Fspan>\u003Cspan class=\"md-editor-mermaid-zoom\">\u003Csvg xmlns=\"http:\u002F\u002Fwww.w3.org\u002F2000\u002Fsvg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"lucide lucide-pin-off md-editor-icon\">\u003Cpath d=\"M12 17v5\">\u003C\u002Fpath>\u003Cpath d=\"M15 9.34V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H7.89\">\u003C\u002Fpath>\u003Cpath d=\"m2 2 20 20\">\u003C\u002Fpath>\u003Cpath d=\"M9 9v1.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h11\">\u003C\u002Fpath>\u003C\u002Fsvg>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002Fp>\u003Ch3 data-line=\"501\" id=\"7.2 逻辑身份关系\">7.2 逻辑身份关系\u003C\u002Fh3>\n\u003Cp data-line=\"503\">LiteLLM 的身份与资源关系比简单的 API Key 列表更丰富。常见治理对象包括：\u003C\u002Fp>\n\u003Cul data-line=\"505\">\n\u003Cli data-line=\"505\">Proxy Admin：管理网关的管理员。\u003C\u002Fli>\n\u003Cli data-line=\"506\">User：网关用户。\u003C\u002Fli>\n\u003Cli data-line=\"507\">Team：团队及其预算、模型访问范围。\u003C\u002Fli>\n\u003Cli data-line=\"508\">Organization \u002F Project \u002F Customer 等资源：按版本和功能启用相应层级。\u003C\u002Fli>\n\u003Cli data-line=\"509\">Virtual Key：具体调用凭证。\u003C\u002Fli>\n\u003Cli data-line=\"510\">Model \u002F Deployment：可被授权访问的模型资源。\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Cp data-line=\"512\">企业系统应避免把 LiteLLM 内部 User ID 直接当作企业主身份。建议由 SEABRID IAM 维护真实用户、部门和项目关系，再映射到 LiteLLM 的 Team、User 和 Key。\u003C\u002Fp>\n\u003Ch3 data-line=\"514\" id=\"7.3 多租户权限建议\">7.3 多租户权限建议\u003C\u002Fh3>\n\u003Ctable data-line=\"516\">\n\u003Cthead data-line=\"516\">\n\u003Ctr data-line=\"516\">\n\u003Cth>企业对象\u003C\u002Fth>\n\u003Cth>建议映射\u003C\u002Fth>\n\u003C\u002Ftr>\n\u003C\u002Fthead>\n\u003Ctbody data-line=\"518\">\n\u003Ctr data-line=\"518\">\n\u003Ctd>企业租户 Tenant\u003C\u002Ftd>\n\u003Ctd>LiteLLM Organization 或独立资源边界\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr data-line=\"519\">\n\u003Ctd>部门 \u002F 团队\u003C\u002Ftd>\n\u003Ctd>Team\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr data-line=\"520\">\n\u003Ctd>项目\u003C\u002Ftd>\n\u003Ctd>Project 或 Team 下的项目约定\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr data-line=\"521\">\n\u003Ctd>Agent\u003C\u002Ftd>\n\u003Ctd>独立 Virtual Key\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr data-line=\"522\">\n\u003Ctd>应用\u003C\u002Ftd>\n\u003Ctd>独立 Virtual Key\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr data-line=\"523\">\n\u003Ctd>研发人员\u003C\u002Ftd>\n\u003Ctd>User\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr data-line=\"524\">\n\u003Ctd>模型访问范围\u003C\u002Ftd>\n\u003Ctd>Key \u002F Team 的 model access policy\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr data-line=\"525\">\n\u003Ctd>预算\u003C\u002Ftd>\n\u003Ctd>Key \u002F User \u002F Team 预算\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003C\u002Ftbody>\n\u003C\u002Ftable>\n\u003Cp data-line=\"527\">实际采用哪些实体，需结合部署版本支持的对象与权限模型验证，不能仅凭名称推定数据库中存在完全相同的企业级租户语义。\u003C\u002Fp>\n\u003Chr data-line=\"529\">\n\u003Ch2 data-line=\"531\" id=\"8. 数据架构：PostgreSQL、Redis 和异步账务\">8. 数据架构：PostgreSQL、Redis 和异步账务\u003C\u002Fh2>\n\u003Ch3 data-line=\"533\" id=\"8.1 PostgreSQL 的职责\">8.1 PostgreSQL 的职责\u003C\u002Fh3>\n\u003Cp data-line=\"535\">PostgreSQL 是 LiteLLM 管理数据和账务数据的重要持久化层。常见数据类别：\u003C\u002Fp>\n\u003Ctable data-line=\"537\">\n\u003Cthead data-line=\"537\">\n\u003Ctr data-line=\"537\">\n\u003Cth>数据类别\u003C\u002Fth>\n\u003Cth>内容\u003C\u002Fth>\n\u003C\u002Ftr>\n\u003C\u002Fthead>\n\u003Ctbody data-line=\"539\">\n\u003Ctr data-line=\"539\">\n\u003Ctd>凭证与访问\u003C\u002Ftd>\n\u003Ctd>Virtual Key、Key Hash \u002F Metadata、权限和状态\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr data-line=\"540\">\n\u003Ctd>身份与组织\u003C\u002Ftd>\n\u003Ctd>User、Team、Organization 等资源\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr data-line=\"541\">\n\u003Ctd>模型配置\u003C\u002Ftd>\n\u003Ctd>数据库保存的模型部署和相关凭证配置\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr data-line=\"542\">\n\u003Ctd>账务\u003C\u002Ftd>\n\u003Ctd>Spend Logs、Token Usage、请求成本\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr data-line=\"543\">\n\u003Ctd>预算\u003C\u002Ftd>\n\u003Ctd>Key \u002F User \u002F Team 的预算状态和累计消费\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr data-line=\"544\">\n\u003Ctd>审计与配置\u003C\u002Ftd>\n\u003Ctd>管理操作、运行配置和其他管理资源（依版本\u002F功能）\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003C\u002Ftbody>\n\u003C\u002Ftable>\n\u003Cp data-line=\"546\">不要把 LiteLLM 的数据库表直接当作企业业务主数据。企业租户、合同、项目、成本中心和财务结算仍应由 SEABRID 业务数据库维护。\u003C\u002Fp>\n\u003Ch3 data-line=\"548\" id=\"8.2 Redis 的职责\">8.2 Redis 的职责\u003C\u002Fh3>\n\u003Cp data-line=\"550\">Redis 在生产架构中不仅是普通缓存，可能承担：\u003C\u002Fp>\n\u003Cul data-line=\"552\">\n\u003Cli data-line=\"552\">Virtual Key \u002F User \u002F Team 等认证对象缓存。\u003C\u002Fli>\n\u003Cli data-line=\"553\">RPM \u002F TPM \u002F 并发限制计数。\u003C\u002Fli>\n\u003Cli data-line=\"554\">Deployment cooldown \u002F routing usage 等路由状态。\u003C\u002Fli>\n\u003Cli data-line=\"555\">Spend 增量缓冲或队列。\u003C\u002Fli>\n\u003Cli data-line=\"556\">可选 LLM Response Cache。\u003C\u002Fli>\n\u003Cli data-line=\"557\">多实例之间共享部分运行状态。\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Cp data-line=\"559\">Redis 不是所有功能的必选项。单机小规模可以从内存缓存开始，但多副本、严格限流和共享状态场景应评估 Redis。\u003C\u002Fp>\n\u003Ch3 data-line=\"561\" id=\"8.3 数据关系示意\">8.3 数据关系示意\u003C\u002Fh3>\n\u003Cp data-line=\"563\" class=\"md-editor-mermaid\" data-mermaid-theme=\"light\" data-closed=\"true\" data-processed=\"\" data-content=\"erDiagram\n    USER ||--o{ KEY : owns\n    TEAM ||--o{ USER : contains\n    TEAM ||--o{ KEY : authorizes\n    TEAM ||--o{ MODEL_ACCESS : grants\n    KEY ||--o{ SPEND_LOG : generates\n    USER ||--o{ SPEND_LOG : attributed\n    TEAM ||--o{ SPEND_LOG : attributed\n    MODEL ||--o{ SPEND_LOG : billed_against\n\n    USER {\n      string user_id\n      string role\n      string status\n    }\n    TEAM {\n      string team_id\n      string team_alias\n      decimal max_budget\n    }\n    KEY {\n      string key_id\n      string key_alias\n      string token_hash\n      decimal max_budget\n    }\n    MODEL {\n      string model_id\n      string model_name\n      string provider\n    }\n    SPEND_LOG {\n      string request_id\n      string model\n      int prompt_tokens\n      int completion_tokens\n      decimal spend\n      datetime start_time\n    }\n    MODEL_ACCESS {\n      string team_id\n      string model_name\n    }\">\u003Csvg id=\"mx9uhx86mt5entfdv7\" width=\"100%\" xmlns=\"http:\u002F\u002Fwww.w3.org\u002F2000\u002Fsvg\" xmlns:xlink=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxlink\" class=\"erDiagram\" style=\"max-width: 1022.0963745117188px;\" viewBox=\"0 0 1022.0963745117188 1174\" role=\"graphics-document document\" aria-roledescription=\"er\">\u003Cstyle>#mx9uhx86mt5entfdv7{font-family:\"trebuchet ms\",verdana,arial,sans-serif;font-size:16px;fill:#333;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#mx9uhx86mt5entfdv7 .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#mx9uhx86mt5entfdv7 .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#mx9uhx86mt5entfdv7 .error-icon{fill:#552222;}#mx9uhx86mt5entfdv7 .error-text{fill:#552222;stroke:#552222;}#mx9uhx86mt5entfdv7 .edge-thickness-normal{stroke-width:1px;}#mx9uhx86mt5entfdv7 .edge-thickness-thick{stroke-width:3.5px;}#mx9uhx86mt5entfdv7 .edge-pattern-solid{stroke-dasharray:0;}#mx9uhx86mt5entfdv7 .edge-thickness-invisible{stroke-width:0;fill:none;}#mx9uhx86mt5entfdv7 .edge-pattern-dashed{stroke-dasharray:3;}#mx9uhx86mt5entfdv7 .edge-pattern-dotted{stroke-dasharray:2;}#mx9uhx86mt5entfdv7 .marker{fill:#333333;stroke:#333333;}#mx9uhx86mt5entfdv7 .marker.cross{stroke:#333333;}#mx9uhx86mt5entfdv7 svg{font-family:\"trebuchet ms\",verdana,arial,sans-serif;font-size:16px;}#mx9uhx86mt5entfdv7 p{margin:0;}#mx9uhx86mt5entfdv7 .entityBox{fill:#ECECFF;stroke:#9370DB;}#mx9uhx86mt5entfdv7 .relationshipLabelBox{fill:hsl(80, 100%, 96.2745098039%);opacity:0.7;background-color:hsl(80, 100%, 96.2745098039%);}#mx9uhx86mt5entfdv7 .relationshipLabelBox rect{opacity:0.5;}#mx9uhx86mt5entfdv7 .labelBkg{background-color:rgba(248.6666666666, 255, 235.9999999999, 0.5);}#mx9uhx86mt5entfdv7 .edgeLabel .label{fill:#9370DB;font-size:14px;}#mx9uhx86mt5entfdv7 .label{font-family:\"trebuchet ms\",verdana,arial,sans-serif;color:#333;}#mx9uhx86mt5entfdv7 .edge-pattern-dashed{stroke-dasharray:8,8;}#mx9uhx86mt5entfdv7 .node rect,#mx9uhx86mt5entfdv7 .node circle,#mx9uhx86mt5entfdv7 .node ellipse,#mx9uhx86mt5entfdv7 .node polygon{fill:#ECECFF;stroke:#9370DB;stroke-width:1px;}#mx9uhx86mt5entfdv7 .relationshipLine{stroke:#333333;stroke-width:1;fill:none;}#mx9uhx86mt5entfdv7 .marker{fill:none!important;stroke:#333333!important;stroke-width:1;}#mx9uhx86mt5entfdv7 :root{--mermaid-font-family:\"trebuchet ms\",verdana,arial,sans-serif;}\u003C\u002Fstyle>\u003Cg>\u003Cdefs>\u003Cmarker id=\"mx9uhx86mt5entfdv7_er-onlyOneStart\" class=\"marker onlyOne er\" refX=\"0\" refY=\"9\" markerWidth=\"18\" markerHeight=\"18\" orient=\"auto\">\u003Cpath d=\"M9,0 L9,18 M15,0 L15,18\">\u003C\u002Fpath>\u003C\u002Fmarker>\u003C\u002Fdefs>\u003Cdefs>\u003Cmarker id=\"mx9uhx86mt5entfdv7_er-onlyOneEnd\" class=\"marker onlyOne er\" refX=\"18\" refY=\"9\" markerWidth=\"18\" markerHeight=\"18\" orient=\"auto\">\u003Cpath d=\"M3,0 L3,18 M9,0 L9,18\">\u003C\u002Fpath>\u003C\u002Fmarker>\u003C\u002Fdefs>\u003Cdefs>\u003Cmarker id=\"mx9uhx86mt5entfdv7_er-zeroOrOneStart\" class=\"marker zeroOrOne er\" refX=\"0\" refY=\"9\" markerWidth=\"30\" markerHeight=\"18\" orient=\"auto\">\u003Ccircle fill=\"white\" cx=\"21\" cy=\"9\" r=\"6\">\u003C\u002Fcircle>\u003Cpath d=\"M9,0 L9,18\">\u003C\u002Fpath>\u003C\u002Fmarker>\u003C\u002Fdefs>\u003Cdefs>\u003Cmarker id=\"mx9uhx86mt5entfdv7_er-zeroOrOneEnd\" class=\"marker zeroOrOne er\" refX=\"30\" refY=\"9\" markerWidth=\"30\" markerHeight=\"18\" orient=\"auto\">\u003Ccircle fill=\"white\" cx=\"9\" cy=\"9\" r=\"6\">\u003C\u002Fcircle>\u003Cpath d=\"M21,0 L21,18\">\u003C\u002Fpath>\u003C\u002Fmarker>\u003C\u002Fdefs>\u003Cdefs>\u003Cmarker id=\"mx9uhx86mt5entfdv7_er-oneOrMoreStart\" class=\"marker oneOrMore er\" refX=\"18\" refY=\"18\" markerWidth=\"45\" markerHeight=\"36\" orient=\"auto\">\u003Cpath d=\"M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27\">\u003C\u002Fpath>\u003C\u002Fmarker>\u003C\u002Fdefs>\u003Cdefs>\u003Cmarker id=\"mx9uhx86mt5entfdv7_er-oneOrMoreEnd\" class=\"marker oneOrMore er\" refX=\"27\" refY=\"18\" markerWidth=\"45\" markerHeight=\"36\" orient=\"auto\">\u003Cpath d=\"M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18\">\u003C\u002Fpath>\u003C\u002Fmarker>\u003C\u002Fdefs>\u003Cdefs>\u003Cmarker id=\"mx9uhx86mt5entfdv7_er-zeroOrMoreStart\" class=\"marker zeroOrMore er\" refX=\"18\" refY=\"18\" markerWidth=\"57\" markerHeight=\"36\" orient=\"auto\">\u003Ccircle fill=\"white\" cx=\"48\" cy=\"18\" r=\"6\">\u003C\u002Fcircle>\u003Cpath d=\"M0,18 Q18,0 36,18 Q18,36 0,18\">\u003C\u002Fpath>\u003C\u002Fmarker>\u003C\u002Fdefs>\u003Cdefs>\u003Cmarker id=\"mx9uhx86mt5entfdv7_er-zeroOrMoreEnd\" class=\"marker zeroOrMore er\" refX=\"39\" refY=\"18\" markerWidth=\"57\" markerHeight=\"36\" orient=\"auto\">\u003Ccircle fill=\"white\" cx=\"9\" cy=\"18\" r=\"6\">\u003C\u002Fcircle>\u003Cpath d=\"M21,18 Q39,0 57,18 Q39,36 21,18\">\u003C\u002Fpath>\u003C\u002Fmarker>\u003C\u002Fdefs>\u003Cg class=\"root\">\u003Cg class=\"clusters\">\u003C\u002Fg>\u003Cg class=\"edgePaths\">\u003Cpath d=\"M79.203,451L79.203,459.417C79.203,467.833,79.203,484.667,105.171,509.239C131.138,533.811,183.073,566.122,209.04,582.278L235.008,598.433\" id=\"id_entity-USER-0_entity-KEY-1_0\" class=\"edge-thickness-normal edge-pattern-solid relationshipLine\" style=\"undefined;;;undefined\" data-edge=\"true\" data-et=\"edge\" data-id=\"id_entity-USER-0_entity-KEY-1_0\" data-points=\"W3sieCI6NzkuMjAzMTI1LCJ5Ijo0NTF9LHsieCI6NzkuMjAzMTI1LCJ5Ijo1MDEuNX0seyJ4IjoyMzUuMDA3ODA4Njg1MzAyNzMsInkiOjU5OC40MzMwMTY5MDU3NDYxfV0=\" marker-start=\"url(#mx9uhx86mt5entfdv7_er-onlyOneStart)\" marker-end=\"url(#mx9uhx86mt5entfdv7_er-zeroOrMoreEnd)\">\u003C\u002Fpath>\u003Cpath d=\"M386.148,126.197L334.991,143.414C283.833,160.631,181.518,195.066,130.361,220.699C79.203,246.333,79.203,263.167,79.203,271.583L79.203,280\" id=\"id_entity-TEAM-2_entity-USER-0_1\" class=\"edge-thickness-normal edge-pattern-solid relationshipLine\" style=\"undefined;;;undefined\" data-edge=\"true\" data-et=\"edge\" data-id=\"id_entity-TEAM-2_entity-USER-0_1\" data-points=\"W3sieCI6Mzg2LjE0ODQzMzY4NTMwMjczLCJ5IjoxMjYuMTk2NTE0NTMzMTk3ODF9LHsieCI6NzkuMjAzMTI1LCJ5IjoyMjkuNX0seyJ4Ijo3OS4yMDMxMjUsInkiOjI4MH1d\" marker-start=\"url(#mx9uhx86mt5entfdv7_er-onlyOneStart)\" marker-end=\"url(#mx9uhx86mt5entfdv7_er-zeroOrMoreEnd)\">\u003C\u002Fpath>\u003Cpath d=\"M547.308,179L553.609,187.417C559.91,195.833,572.512,212.667,578.814,243.75C585.115,274.833,585.115,320.167,585.115,365.5C585.115,410.833,585.115,456.167,559.147,494.989C533.18,533.811,481.245,566.122,455.277,582.278L429.31,598.433\" id=\"id_entity-TEAM-2_entity-KEY-1_2\" class=\"edge-thickness-normal edge-pattern-solid relationshipLine\" style=\"undefined;;;undefined\" data-edge=\"true\" data-et=\"edge\" data-id=\"id_entity-TEAM-2_entity-KEY-1_2\" data-points=\"W3sieCI6NTQ3LjMwODI0MTU3NzcwOTQsInkiOjE3OX0seyJ4Ijo1ODUuMTE0NTg1ODc2NDY0OCwieSI6MjI5LjV9LHsieCI6NTg1LjExNDU4NTg3NjQ2NDgsInkiOjM2NS41fSx7IngiOjU4NS4xMTQ1ODU4NzY0NjQ4LCJ5Ijo1MDEuNX0seyJ4Ijo0MjkuMzA5OTAyMTkxMTYyMSwieSI6NTk4LjQzMzAxNjkwNTc0NjF9XQ==\" marker-start=\"url(#mx9uhx86mt5entfdv7_er-onlyOneStart)\" marker-end=\"url(#mx9uhx86mt5entfdv7_er-zeroOrMoreEnd)\">\u003C\u002Fpath>\u003Cpath d=\"M419.291,179L412.99,187.417C406.689,195.833,394.086,212.667,387.785,233.063C381.484,253.458,381.484,277.417,381.484,289.396L381.484,301.375\" id=\"id_entity-TEAM-2_entity-MODEL_ACCESS-3_3\" class=\"edge-thickness-normal edge-pattern-solid relationshipLine\" style=\"undefined;;;undefined\" data-edge=\"true\" data-et=\"edge\" data-id=\"id_entity-TEAM-2_entity-MODEL_ACCESS-3_3\" data-points=\"W3sieCI6NDE5LjI5MDcxOTI5ODc1NTQ1LCJ5IjoxNzl9LHsieCI6MzgxLjQ4NDM3NSwieSI6MjI5LjV9LHsieCI6MzgxLjQ4NDM3NSwieSI6MzAxLjM3NX1d\" marker-start=\"url(#mx9uhx86mt5entfdv7_er-onlyOneStart)\" marker-end=\"url(#mx9uhx86mt5entfdv7_er-zeroOrMoreEnd)\">\u003C\u002Fpath>\u003Cpath d=\"M332.159,765.75L332.159,774.167C332.159,782.583,332.159,799.417,376.856,830.554C421.553,861.691,510.947,907.132,555.644,929.852L600.341,952.573\" id=\"id_entity-KEY-1_entity-SPEND_LOG-4_4\" class=\"edge-thickness-normal edge-pattern-solid relationshipLine\" style=\"undefined;;;undefined\" data-edge=\"true\" data-et=\"edge\" data-id=\"id_entity-KEY-1_entity-SPEND_LOG-4_4\" data-points=\"W3sieCI6MzMyLjE1ODg1NTQzODIzMjQsInkiOjc2NS43NX0seyJ4IjozMzIuMTU4ODU1NDM4MjMyNCwieSI6ODE2LjI1fSx7IngiOjYwMC4zNDExNTIxOTExNjIxLCJ5Ijo5NTIuNTcyNzQ2ODg4NTY4NH1d\" marker-start=\"url(#mx9uhx86mt5entfdv7_er-onlyOneStart)\" marker-end=\"url(#mx9uhx86mt5entfdv7_er-zeroOrMoreEnd)\">\u003C\u002Fpath>\u003Cpath d=\"M150.406,381.104L241.967,401.17C333.529,421.236,516.651,461.368,608.212,507.663C699.773,553.958,699.773,606.417,699.773,658.875C699.773,711.333,699.773,763.792,700.87,798.438C701.967,833.083,704.161,849.917,705.258,858.333L706.355,866.75\" id=\"id_entity-USER-0_entity-SPEND_LOG-4_5\" class=\"edge-thickness-normal edge-pattern-solid relationshipLine\" style=\"undefined;;;undefined\" data-edge=\"true\" data-et=\"edge\" data-id=\"id_entity-USER-0_entity-SPEND_LOG-4_5\" data-points=\"W3sieCI6MTUwLjQwNjI1LCJ5IjozODEuMTA0Mzk2MDEzODg1OX0seyJ4Ijo2OTkuNzczNDQzMjIyMDQ1OSwieSI6NTAxLjV9LHsieCI6Njk5Ljc3MzQ0MzIyMjA0NTksInkiOjY1OC44NzV9LHsieCI6Njk5Ljc3MzQ0MzIyMjA0NTksInkiOjgxNi4yNX0seyJ4Ijo3MDYuMzU1MzcxMzQ0MTcxNCwieSI6ODY2Ljc1fV0=\" marker-start=\"url(#mx9uhx86mt5entfdv7_er-onlyOneStart)\" marker-end=\"url(#mx9uhx86mt5entfdv7_er-zeroOrMoreEnd)\">\u003C\u002Fpath>\u003Cpath d=\"M580.451,142.683L609.032,157.152C637.614,171.622,694.777,200.561,723.359,237.697C751.94,274.833,751.94,320.167,751.94,365.5C751.94,410.833,751.94,456.167,751.94,505.063C751.94,553.958,751.94,606.417,751.94,658.875C751.94,711.333,751.94,763.792,750.843,798.438C749.746,833.083,747.552,849.917,746.455,858.333L745.358,866.75\" id=\"id_entity-TEAM-2_entity-SPEND_LOG-4_6\" class=\"edge-thickness-normal edge-pattern-solid relationshipLine\" style=\"undefined;;;undefined\" data-edge=\"true\" data-et=\"edge\" data-id=\"id_entity-TEAM-2_entity-SPEND_LOG-4_6\" data-points=\"W3sieCI6NTgwLjQ1MDUyNzE5MTE2MjEsInkiOjE0Mi42ODI5NjM1ODU1MzgzNX0seyJ4Ijo3NTEuOTQwMTExMTYwMjc4MywieSI6MjI5LjV9LHsieCI6NzUxLjk0MDExMTE2MDI3ODMsInkiOjM2NS41fSx7IngiOjc1MS45NDAxMTExNjAyNzgzLCJ5Ijo1MDEuNX0seyJ4Ijo3NTEuOTQwMTExMTYwMjc4MywieSI6NjU4Ljg3NX0seyJ4Ijo3NTEuOTQwMTExMTYwMjc4MywieSI6ODE2LjI1fSx7IngiOjc0NS4zNTgxODMwMzgxNTI4LCJ5Ijo4NjYuNzV9XQ==\" marker-start=\"url(#mx9uhx86mt5entfdv7_er-onlyOneStart)\" marker-end=\"url(#mx9uhx86mt5entfdv7_er-zeroOrMoreEnd)\">\u003C\u002Fpath>\u003Cpath d=\"M923.018,744.375L923.018,756.354C923.018,768.333,923.018,792.292,911.077,816.391C899.136,840.491,875.254,864.732,863.313,876.852L851.372,888.973\" id=\"id_entity-MODEL-5_entity-SPEND_LOG-4_7\" class=\"edge-thickness-normal edge-pattern-solid relationshipLine\" style=\"undefined;;;undefined\" data-edge=\"true\" data-et=\"edge\" data-id=\"id_entity-MODEL-5_entity-SPEND_LOG-4_7\" data-points=\"W3sieCI6OTIzLjAxODIzNjE2MDI3ODMsInkiOjc0NC4zNzV9LHsieCI6OTIzLjAxODIzNjE2MDI3ODMsInkiOjgxNi4yNX0seyJ4Ijo4NTEuMzcyNDAyMTkxMTYyMSwieSI6ODg4Ljk3Mjc0NTA5NDQ5M31d\" marker-start=\"url(#mx9uhx86mt5entfdv7_er-onlyOneStart)\" marker-end=\"url(#mx9uhx86mt5entfdv7_er-zeroOrMoreEnd)\">\u003C\u002Fpath>\u003C\u002Fg>\u003Cg class=\"edgeLabels\">\u003Cg class=\"edgeLabel\" transform=\"translate(79.203125, 501.5)\">\u003Cg class=\"label\" data-id=\"id_entity-USER-0_entity-KEY-1_0\" transform=\"translate(-15.625, -10.5)\">\u003CforeignObject width=\"31.25\" height=\"21\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"edgeLabel\">\u003Cp>owns\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"edgeLabel\" transform=\"translate(79.203125, 229.5)\">\u003Cg class=\"label\" data-id=\"id_entity-TEAM-2_entity-USER-0_1\" transform=\"translate(-26.15625, -10.5)\">\u003CforeignObject width=\"52.3125\" height=\"21\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"edgeLabel\">\u003Cp>contains\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"edgeLabel\" transform=\"translate(585.1145858764648, 365.5)\">\u003Cg class=\"label\" data-id=\"id_entity-TEAM-2_entity-KEY-1_2\" transform=\"translate(-32.552085876464844, -10.5)\">\u003CforeignObject width=\"65.10417175292969\" height=\"21\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"edgeLabel\">\u003Cp>authorizes\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"edgeLabel\" transform=\"translate(381.484375, 229.5)\">\u003Cg class=\"label\" data-id=\"id_entity-TEAM-2_entity-MODEL_ACCESS-3_3\" transform=\"translate(-19.34895896911621, -10.5)\">\u003CforeignObject width=\"38.69791793823242\" height=\"21\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"edgeLabel\">\u003Cp>grants\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"edgeLabel\" transform=\"translate(332.1588554382324, 816.25)\">\u003Cg class=\"label\" data-id=\"id_entity-KEY-1_entity-SPEND_LOG-4_4\" transform=\"translate(-30.80208396911621, -10.5)\">\u003CforeignObject width=\"61.60416793823242\" height=\"21\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"edgeLabel\">\u003Cp>generates\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"edgeLabel\" transform=\"translate(699.7734432220459, 658.875)\">\u003Cg class=\"label\" data-id=\"id_entity-USER-0_entity-SPEND_LOG-4_5\" transform=\"translate(-32.16666793823242, -10.5)\">\u003CforeignObject width=\"64.33333587646484\" height=\"21\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"edgeLabel\">\u003Cp>attributed\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"edgeLabel\" transform=\"translate(751.9401111602783, 501.5)\">\u003Cg class=\"label\" data-id=\"id_entity-TEAM-2_entity-SPEND_LOG-4_6\" transform=\"translate(-32.16666793823242, -10.5)\">\u003CforeignObject width=\"64.33333587646484\" height=\"21\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"edgeLabel\">\u003Cp>attributed\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"edgeLabel\" transform=\"translate(923.0182361602783, 816.25)\">\u003Cg class=\"label\" data-id=\"id_entity-MODEL-5_entity-SPEND_LOG-4_7\" transform=\"translate(-43.71354293823242, -10.5)\">\u003CforeignObject width=\"87.42708587646484\" height=\"21\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"edgeLabel\">\u003Cp>billed_against\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"nodes\">\u003Cg class=\"node default\" id=\"entity-USER-0\" transform=\"translate(79.203125, 365.5)\">\u003Cg style=\"\">\u003Cpath d=\"M-71.203125 -85.5 L71.203125 -85.5 L71.203125 85.5 L-71.203125 85.5\" stroke=\"none\" stroke-width=\"0\" fill=\"#ECECFF\">\u003C\u002Fpath>\u003Cpath d=\"M-71.203125 -85.5 C-36.1250888280211 -85.5, -1.0470526560421973 -85.5, 71.203125 -85.5 M-71.203125 -85.5 C-28.913567342387147 -85.5, 13.375990315225707 -85.5, 71.203125 -85.5 M71.203125 -85.5 C71.203125 -28.93658859263548, 71.203125 27.62682281472904, 71.203125 85.5 M71.203125 -85.5 C71.203125 -22.437841637673287, 71.203125 40.624316724653426, 71.203125 85.5 M71.203125 85.5 C40.93892690077695 85.5, 10.674728801553897 85.5, -71.203125 85.5 M71.203125 85.5 C26.538828813160244 85.5, -18.125467373679513 85.5, -71.203125 85.5 M-71.203125 85.5 C-71.203125 32.324655586794655, -71.203125 -20.85068882641069, -71.203125 -85.5 M-71.203125 85.5 C-71.203125 30.463399201802652, -71.203125 -24.573201596394696, -71.203125 -85.5\" stroke=\"#9370DB\" stroke-width=\"1.3\" fill=\"none\" stroke-dasharray=\"0 0\">\u003C\u002Fpath>\u003C\u002Fg>\u003Cg style=\"\" class=\"row-rect-odd\">\u003Cpath d=\"M-71.203125 -42.75 L71.203125 -42.75 L71.203125 0 L-71.203125 0\" stroke=\"none\" stroke-width=\"0\" fill=\"hsl(240, 100%, 100%)\">\u003C\u002Fpath>\u003Cpath d=\"M-71.203125 -42.75 C-38.15503221234305 -42.75, -5.106939424686104 -42.75, 71.203125 -42.75 M-71.203125 -42.75 C-22.73150669265086 -42.75, 25.74011161469828 -42.75, 71.203125 -42.75 M71.203125 -42.75 C71.203125 -26.919868682247422, 71.203125 -11.089737364494844, 71.203125 0 M71.203125 -42.75 C71.203125 -31.7159412607542, 71.203125 -20.681882521508403, 71.203125 0 M71.203125 0 C34.544627774844066 0, -2.113869450311867 0, -71.203125 0 M71.203125 0 C15.417319140078881 0, -40.36848671984224 0, -71.203125 0 M-71.203125 0 C-71.203125 -13.387919604085486, -71.203125 -26.77583920817097, -71.203125 -42.75 M-71.203125 0 C-71.203125 -9.065966127843316, -71.203125 -18.131932255686632, -71.203125 -42.75\" stroke=\"#9370DB\" stroke-width=\"1.3\" fill=\"none\" stroke-dasharray=\"0 0\">\u003C\u002Fpath>\u003C\u002Fg>\u003Cg style=\"\" class=\"row-rect-even\">\u003Cpath d=\"M-71.203125 0 L71.203125 0 L71.203125 42.75 L-71.203125 42.75\" stroke=\"none\" stroke-width=\"0\" fill=\"hsl(240, 100%, 97.2745098039%)\">\u003C\u002Fpath>\u003Cpath d=\"M-71.203125 0 C-37.75934797392527 0, -4.315570947850546 0, 71.203125 0 M-71.203125 0 C-17.360643361704653 0, 36.48183827659069 0, 71.203125 0 M71.203125 0 C71.203125 14.802108884846955, 71.203125 29.60421776969391, 71.203125 42.75 M71.203125 0 C71.203125 14.693343458889965, 71.203125 29.38668691777993, 71.203125 42.75 M71.203125 42.75 C25.61409605773354 42.75, -19.97493288453292 42.75, -71.203125 42.75 M71.203125 42.75 C21.332709406868837 42.75, -28.537706186262326 42.75, -71.203125 42.75 M-71.203125 42.75 C-71.203125 30.688455099481487, -71.203125 18.626910198962975, -71.203125 0 M-71.203125 42.75 C-71.203125 30.963695926194184, -71.203125 19.17739185238837, -71.203125 0\" stroke=\"#9370DB\" stroke-width=\"1.3\" fill=\"none\" stroke-dasharray=\"0 0\">\u003C\u002Fpath>\u003C\u002Fg>\u003Cg style=\"\" class=\"row-rect-odd\">\u003Cpath d=\"M-71.203125 42.75 L71.203125 42.75 L71.203125 85.5 L-71.203125 85.5\" stroke=\"none\" stroke-width=\"0\" fill=\"hsl(240, 100%, 100%)\">\u003C\u002Fpath>\u003Cpath d=\"M-71.203125 42.75 C-26.064468106367016 42.75, 19.074188787265967 42.75, 71.203125 42.75 M-71.203125 42.75 C-40.48663224939268 42.75, -9.770139498785355 42.75, 71.203125 42.75 M71.203125 42.75 C71.203125 54.069062377175115, 71.203125 65.38812475435023, 71.203125 85.5 M71.203125 42.75 C71.203125 53.15348176173731, 71.203125 63.55696352347462, 71.203125 85.5 M71.203125 85.5 C38.43334694733321 85.5, 5.663568894666426 85.5, -71.203125 85.5 M71.203125 85.5 C26.34163147707556 85.5, -18.519862045848882 85.5, -71.203125 85.5 M-71.203125 85.5 C-71.203125 71.84961989047022, -71.203125 58.19923978094045, -71.203125 42.75 M-71.203125 85.5 C-71.203125 74.75760642179993, -71.203125 64.01521284359987, -71.203125 42.75\" stroke=\"#9370DB\" stroke-width=\"1.3\" fill=\"none\" stroke-dasharray=\"0 0\">\u003C\u002Fpath>\u003C\u002Fg>\u003Cg class=\"label name\" transform=\"translate(-17.979167938232422, -76.125)\" style=\"\">\u003CforeignObject width=\"35.958335876464844\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 141px; text-align: start;\">\u003Cspan class=\"nodeLabel\">\u003Cp>USER\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003Cg class=\"label attribute-type\" transform=\"translate(-58.703125, -33.375)\" style=\"\">\u003CforeignObject width=\"40.375\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 144px; text-align: start;\">\u003Cspan class=\"nodeLabel\">\u003Cp>string\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003Cg class=\"label attribute-name\" transform=\"translate(6.671875, -33.375)\" style=\"\">\u003CforeignObject width=\"52.03125\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 156px; text-align: start;\">\u003Cspan class=\"nodeLabel\">\u003Cp>user_id\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003Cg class=\"label attribute-keys\" transform=\"translate(83.703125, -33.375)\" style=\"\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 100px; text-align: start;\">\u003Cspan class=\"nodeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003Cg class=\"label attribute-comment\" transform=\"translate(83.703125, -33.375)\" style=\"\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 100px; text-align: start;\">\u003Cspan class=\"nodeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003Cg class=\"label attribute-type\" transform=\"translate(-58.703125, 9.375)\" style=\"\">\u003CforeignObject width=\"40.375\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 144px; text-align: start;\">\u003Cspan class=\"nodeLabel\">\u003Cp>string\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003Cg class=\"label attribute-name\" transform=\"translate(6.671875, 9.375)\" style=\"\">\u003CforeignObject width=\"28.25\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 129px; text-align: start;\">\u003Cspan class=\"nodeLabel\">\u003Cp>role\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003Cg class=\"label attribute-keys\" transform=\"translate(83.703125, 9.375)\" style=\"\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 100px; text-align: start;\">\u003Cspan class=\"nodeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003Cg class=\"label attribute-comment\" transform=\"translate(83.703125, 9.375)\" style=\"\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 100px; text-align: start;\">\u003Cspan class=\"nodeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003Cg class=\"label attribute-type\" transform=\"translate(-58.703125, 52.125)\" style=\"\">\u003CforeignObject width=\"40.375\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 144px; text-align: start;\">\u003Cspan class=\"nodeLabel\">\u003Cp>string\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003Cg class=\"label attribute-name\" transform=\"translate(6.671875, 52.125)\" style=\"\">\u003CforeignObject width=\"42.79166793823242\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 145px; text-align: start;\">\u003Cspan class=\"nodeLabel\">\u003Cp>status\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003Cg class=\"label attribute-keys\" transform=\"translate(83.703125, 52.125)\" style=\"\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 100px; text-align: start;\">\u003Cspan class=\"nodeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003Cg class=\"label attribute-comment\" transform=\"translate(83.703125, 52.125)\" style=\"\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 100px; text-align: start;\">\u003Cspan class=\"nodeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003Cg class=\"divider\">\u003Cpath d=\"M-71.203125 -42.75 C-27.997646298887346 -42.75, 15.207832402225307 -42.75, 71.203125 -42.75 M-71.203125 -42.75 C-37.42563909815191 -42.75, -3.6481531963038236 -42.75, 71.203125 -42.75\" stroke=\"#9370DB\" stroke-width=\"1.3\" fill=\"none\" stroke-dasharray=\"0 0\">\u003C\u002Fpath>\u003C\u002Fg>\u003Cg class=\"divider\">\u003Cpath d=\"M-5.828125 -42.75 C-5.828125 -1.7205077385479086, -5.828125 39.30898452290418, -5.828125 85.5 M-5.828125 -42.75 C-5.828125 -10.50800024420181, -5.828125 21.73399951159638, -5.828125 85.5\" stroke=\"#9370DB\" stroke-width=\"1.3\" fill=\"none\" stroke-dasharray=\"0 0\">\u003C\u002Fpath>\u003C\u002Fg>\u003Cg class=\"divider\">\u003Cpath d=\"M-71.203125 -42.75 C-14.44935616746455 -42.75, 42.3044126650709 -42.75, 71.203125 -42.75 M-71.203125 -42.75 C-29.340244287515205 -42.75, 12.52263642496959 -42.75, 71.203125 -42.75\" stroke=\"#9370DB\" stroke-width=\"1.3\" fill=\"none\" stroke-dasharray=\"0 0\">\u003C\u002Fpath>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"node default\" id=\"entity-KEY-1\" transform=\"translate(332.1588554382324, 658.875)\">\u003Cg style=\"\">\u003Cpath d=\"M-97.15104293823242 -106.875 L97.15104293823242 -106.875 L97.15104293823242 106.875 L-97.15104293823242 106.875\" stroke=\"none\" stroke-width=\"0\" fill=\"#ECECFF\">\u003C\u002Fpath>\u003Cpath d=\"M-97.15104293823242 -106.875 C-41.76693663445566 -106.875, 13.6171696693211 -106.875, 97.15104293823242 -106.875 M-97.15104293823242 -106.875 C-19.797036526958408 -106.875, 57.556969884315606 -106.875, 97.15104293823242 -106.875 M97.15104293823242 -106.875 C97.15104293823242 -49.53761971493969, 97.15104293823242 7.799760570120625, 97.15104293823242 106.875 M97.15104293823242 -106.875 C97.15104293823242 -32.516594099023294, 97.15104293823242 41.84181180195341, 97.15104293823242 106.875 M97.15104293823242 106.875 C35.387192003159264 106.875, -26.376658931913894 106.875, -97.15104293823242 106.875 M97.15104293823242 106.875 C56.749627008422344 106.875, 16.348211078612266 106.875, -97.15104293823242 106.875 M-97.15104293823242 106.875 C-97.15104293823242 31.783236546994075, -97.15104293823242 -43.30852690601185, -97.15104293823242 -106.875 M-97.15104293823242 106.875 C-97.15104293823242 46.34078438192075, -97.15104293823242 -14.193431236158503, -97.15104293823242 -106.875\" stroke=\"#9370DB\" stroke-width=\"1.3\" fill=\"none\" stroke-dasharray=\"0 0\">\u003C\u002Fpath>\u003C\u002Fg>\u003Cg style=\"\" class=\"row-rect-odd\">\u003Cpath d=\"M-97.15104293823242 -64.125 L97.15104293823242 -64.125 L97.15104293823242 -21.375 L-97.15104293823242 -21.375\" stroke=\"none\" stroke-width=\"0\" fill=\"hsl(240, 100%, 100%)\">\u003C\u002Fpath>\u003Cpath d=\"M-97.15104293823242 -64.125 C-29.126458965978955 -64.125, 38.89812500627451 -64.125, 97.15104293823242 -64.125 M-97.15104293823242 -64.125 C-48.401537347959 -64.125, 0.3479682423144226 -64.125, 97.15104293823242 -64.125 M97.15104293823242 -64.125 C97.15104293823242 -52.15747920072031, 97.15104293823242 -40.18995840144062, 97.15104293823242 -21.375 M97.15104293823242 -64.125 C97.15104293823242 -47.46269436254052, 97.15104293823242 -30.800388725081042, 97.15104293823242 -21.375 M97.15104293823242 -21.375 C20.990965899041512 -21.375, -55.1691111401494 -21.375, -97.15104293823242 -21.375 M97.15104293823242 -21.375 C56.575336704189866 -21.375, 15.99963047014731 -21.375, -97.15104293823242 -21.375 M-97.15104293823242 -21.375 C-97.15104293823242 -35.11701273250145, -97.15104293823242 -48.8590254650029, -97.15104293823242 -64.125 M-97.15104293823242 -21.375 C-97.15104293823242 -36.584167217358505, -97.15104293823242 -51.79333443471701, -97.15104293823242 -64.125\" stroke=\"#9370DB\" stroke-width=\"1.3\" fill=\"none\" stroke-dasharray=\"0 0\">\u003C\u002Fpath>\u003C\u002Fg>\u003Cg style=\"\" class=\"row-rect-even\">\u003Cpath d=\"M-97.15104293823242 -21.375 L97.15104293823242 -21.375 L97.15104293823242 21.375 L-97.15104293823242 21.375\" stroke=\"none\" stroke-width=\"0\" fill=\"hsl(240, 100%, 97.2745098039%)\">\u003C\u002Fpath>\u003Cpath d=\"M-97.15104293823242 -21.375 C-36.9046876438679 -21.375, 23.341667650496618 -21.375, 97.15104293823242 -21.375 M-97.15104293823242 -21.375 C-48.84087754080954 -21.375, -0.5307121433866513 -21.375, 97.15104293823242 -21.375 M97.15104293823242 -21.375 C97.15104293823242 -6.032169403239116, 97.15104293823242 9.310661193521767, 97.15104293823242 21.375 M97.15104293823242 -21.375 C97.15104293823242 -9.51495293750476, 97.15104293823242 2.3450941249904815, 97.15104293823242 21.375 M97.15104293823242 21.375 C32.9279458672345 21.375, -31.295151203763425 21.375, -97.15104293823242 21.375 M97.15104293823242 21.375 C19.715092180374995 21.375, -57.72085857748243 21.375, -97.15104293823242 21.375 M-97.15104293823242 21.375 C-97.15104293823242 5.5188070798082745, -97.15104293823242 -10.337385840383451, -97.15104293823242 -21.375 M-97.15104293823242 21.375 C-97.15104293823242 4.826881723028631, -97.15104293823242 -11.721236553942738, -97.15104293823242 -21.375\" stroke=\"#9370DB\" stroke-width=\"1.3\" fill=\"none\" stroke-dasharray=\"0 0\">\u003C\u002Fpath>\u003C\u002Fg>\u003Cg style=\"\" class=\"row-rect-odd\">\u003Cpath d=\"M-97.15104293823242 21.375 L97.15104293823242 21.375 L97.15104293823242 64.125 L-97.15104293823242 64.125\" stroke=\"none\" stroke-width=\"0\" fill=\"hsl(240, 100%, 100%)\">\u003C\u002Fpath>\u003Cpath d=\"M-97.15104293823242 21.375 C-42.261450624865226 21.375, 12.62814168850197 21.375, 97.15104293823242 21.375 M-97.15104293823242 21.375 C-35.83298581326207 21.375, 25.485071311708282 21.375, 97.15104293823242 21.375 M97.15104293823242 21.375 C97.15104293823242 37.085892162302606, 97.15104293823242 52.79678432460521, 97.15104293823242 64.125 M97.15104293823242 21.375 C97.15104293823242 38.352235510187555, 97.15104293823242 55.3294710203751, 97.15104293823242 64.125 M97.15104293823242 64.125 C34.98914444192276 64.125, -27.1727540543869 64.125, -97.15104293823242 64.125 M97.15104293823242 64.125 C32.723206010032655 64.125, -31.704630918167112 64.125, -97.15104293823242 64.125 M-97.15104293823242 64.125 C-97.15104293823242 53.904301583087765, -97.15104293823242 43.68360316617553, -97.15104293823242 21.375 M-97.15104293823242 64.125 C-97.15104293823242 47.1096226553535, -97.15104293823242 30.094245310706995, -97.15104293823242 21.375\" stroke=\"#9370DB\" stroke-width=\"1.3\" fill=\"none\" stroke-dasharray=\"0 0\">\u003C\u002Fpath>\u003C\u002Fg>\u003Cg style=\"\" class=\"row-rect-even\">\u003Cpath d=\"M-97.15104293823242 64.125 L97.15104293823242 64.125 L97.15104293823242 106.875 L-97.15104293823242 106.875\" stroke=\"none\" stroke-width=\"0\" fill=\"hsl(240, 100%, 97.2745098039%)\">\u003C\u002Fpath>\u003Cpath d=\"M-97.15104293823242 64.125 C-48.95992398259879 64.125, -0.7688050269651541 64.125, 97.15104293823242 64.125 M-97.15104293823242 64.125 C-52.620947145133385 64.125, -8.090851352034349 64.125, 97.15104293823242 64.125 M97.15104293823242 64.125 C97.15104293823242 80.27899731171651, 97.15104293823242 96.43299462343302, 97.15104293823242 106.875 M97.15104293823242 64.125 C97.15104293823242 73.03473988501588, 97.15104293823242 81.94447977003176, 97.15104293823242 106.875 M97.15104293823242 106.875 C54.49861125066701 106.875, 11.8461795631016 106.875, -97.15104293823242 106.875 M97.15104293823242 106.875 C37.682113401970774 106.875, -21.786816134290873 106.875, -97.15104293823242 106.875 M-97.15104293823242 106.875 C-97.15104293823242 96.17413851701589, -97.15104293823242 85.47327703403178, -97.15104293823242 64.125 M-97.15104293823242 106.875 C-97.15104293823242 94.68833368801604, -97.15104293823242 82.50166737603209, -97.15104293823242 64.125\" stroke=\"#9370DB\" stroke-width=\"1.3\" fill=\"none\" stroke-dasharray=\"0 0\">\u003C\u002Fpath>\u003C\u002Fg>\u003Cg class=\"label name\" transform=\"translate(-13.453125, -97.5)\" style=\"\">\u003CforeignObject width=\"26.90625\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 129px; text-align: start;\">\u003Cspan class=\"nodeLabel\">\u003Cp>KEY\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003Cg class=\"label attribute-type\" transform=\"translate(-84.65104293823242, -54.75)\" style=\"\">\u003CforeignObject width=\"40.375\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 144px; text-align: start;\">\u003Cspan class=\"nodeLabel\">\u003Cp>string\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003Cg class=\"label attribute-name\" transform=\"translate(-3.119792938232422, -54.75)\" style=\"\">\u003CforeignObject width=\"46.5625\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 149px; text-align: start;\">\u003Cspan class=\"nodeLabel\">\u003Cp>key_id\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003Cg class=\"label attribute-keys\" transform=\"translate(109.65104293823242, -54.75)\" style=\"\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 100px; text-align: start;\">\u003Cspan class=\"nodeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003Cg class=\"label attribute-comment\" transform=\"translate(109.65104293823242, -54.75)\" style=\"\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 100px; text-align: start;\">\u003Cspan class=\"nodeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003Cg class=\"label attribute-type\" transform=\"translate(-84.65104293823242, -12)\" style=\"\">\u003CforeignObject width=\"40.375\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 144px; text-align: start;\">\u003Cspan class=\"nodeLabel\">\u003Cp>string\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003Cg class=\"label attribute-name\" transform=\"translate(-3.119792938232422, -12)\" style=\"\">\u003CforeignObject width=\"65.65625\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 169px; text-align: start;\">\u003Cspan class=\"nodeLabel\">\u003Cp>key_alias\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003Cg class=\"label attribute-keys\" transform=\"translate(109.65104293823242, -12)\" style=\"\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 100px; text-align: start;\">\u003Cspan class=\"nodeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003Cg class=\"label attribute-comment\" transform=\"translate(109.65104293823242, -12)\" style=\"\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 100px; text-align: start;\">\u003Cspan class=\"nodeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003Cg class=\"label attribute-type\" transform=\"translate(-84.65104293823242, 30.75)\" style=\"\">\u003CforeignObject width=\"40.375\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 144px; text-align: start;\">\u003Cspan class=\"nodeLabel\">\u003Cp>string\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003Cg class=\"label attribute-name\" transform=\"translate(-3.119792938232422, 30.75)\" style=\"\">\u003CforeignObject width=\"81.22917175292969\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 187px; text-align: start;\">\u003Cspan class=\"nodeLabel\">\u003Cp>token_hash\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003Cg class=\"label attribute-keys\" transform=\"translate(109.65104293823242, 30.75)\" style=\"\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 100px; text-align: start;\">\u003Cspan class=\"nodeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003Cg class=\"label attribute-comment\" transform=\"translate(109.65104293823242, 30.75)\" style=\"\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 100px; text-align: start;\">\u003Cspan class=\"nodeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003Cg class=\"label attribute-type\" transform=\"translate(-84.65104293823242, 73.5)\" style=\"\">\u003CforeignObject width=\"56.53125\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 160px; text-align: start;\">\u003Cspan class=\"nodeLabel\">\u003Cp>decimal\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003Cg class=\"label attribute-name\" transform=\"translate(-3.119792938232422, 73.5)\" style=\"\">\u003CforeignObject width=\"87.77083587646484\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 195px; text-align: start;\">\u003Cspan class=\"nodeLabel\">\u003Cp>max_budget\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003Cg class=\"label attribute-keys\" transform=\"translate(109.65104293823242, 73.5)\" style=\"\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 100px; text-align: start;\">\u003Cspan class=\"nodeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003Cg class=\"label attribute-comment\" transform=\"translate(109.65104293823242, 73.5)\" style=\"\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 100px; text-align: start;\">\u003Cspan class=\"nodeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003Cg class=\"divider\">\u003Cpath d=\"M-97.15104293823242 -64.125 C-45.41493490000698 -64.125, 6.321173138218455 -64.125, 97.15104293823242 -64.125 M-97.15104293823242 -64.125 C-33.00249504719481 -64.125, 31.146052843842796 -64.125, 97.15104293823242 -64.125\" stroke=\"#9370DB\" stroke-width=\"1.3\" fill=\"none\" stroke-dasharray=\"0 0\">\u003C\u002Fpath>\u003C\u002Fg>\u003Cg class=\"divider\">\u003Cpath d=\"M-15.619792938232422 -64.125 C-15.619792938232422 -12.584788312827094, -15.619792938232422 38.95542337434581, -15.619792938232422 106.875 M-15.619792938232422 -64.125 C-15.619792938232422 -25.762008191002877, -15.619792938232422 12.600983617994245, -15.619792938232422 106.875\" stroke=\"#9370DB\" stroke-width=\"1.3\" fill=\"none\" stroke-dasharray=\"0 0\">\u003C\u002Fpath>\u003C\u002Fg>\u003Cg class=\"divider\">\u003Cpath d=\"M-97.15104293823242 -64.125 C-22.03524408331515 -64.125, 53.080554771602124 -64.125, 97.15104293823242 -64.125 M-97.15104293823242 -64.125 C-33.934023647101604 -64.125, 29.282995644029214 -64.125, 97.15104293823242 -64.125\" stroke=\"#9370DB\" stroke-width=\"1.3\" fill=\"none\" stroke-dasharray=\"0 0\">\u003C\u002Fpath>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"node default\" id=\"entity-TEAM-2\" transform=\"translate(483.2994804382324, 93.5)\">\u003Cg style=\"\">\u003Cpath d=\"M-97.15104293823242 -85.5 L97.15104293823242 -85.5 L97.15104293823242 85.5 L-97.15104293823242 85.5\" stroke=\"none\" stroke-width=\"0\" fill=\"#ECECFF\">\u003C\u002Fpath>\u003Cpath d=\"M-97.15104293823242 -85.5 C-37.720529491603635 -85.5, 21.70998395502515 -85.5, 97.15104293823242 -85.5 M-97.15104293823242 -85.5 C-29.588015889491473 -85.5, 37.975011159249476 -85.5, 97.15104293823242 -85.5 M97.15104293823242 -85.5 C97.15104293823242 -37.31673227994519, 97.15104293823242 10.866535440109615, 97.15104293823242 85.5 M97.15104293823242 -85.5 C97.15104293823242 -46.6977067867588, 97.15104293823242 -7.895413573517601, 97.15104293823242 85.5 M97.15104293823242 85.5 C21.063421634730815 85.5, -55.02419966877079 85.5, -97.15104293823242 85.5 M97.15104293823242 85.5 C53.19862574132579 85.5, 9.246208544419162 85.5, -97.15104293823242 85.5 M-97.15104293823242 85.5 C-97.15104293823242 40.868613705018795, -97.15104293823242 -3.7627725899624096, -97.15104293823242 -85.5 M-97.15104293823242 85.5 C-97.15104293823242 26.475113173249163, -97.15104293823242 -32.549773653501674, -97.15104293823242 -85.5\" stroke=\"#9370DB\" stroke-width=\"1.3\" fill=\"none\" stroke-dasharray=\"0 0\">\u003C\u002Fpath>\u003C\u002Fg>\u003Cg style=\"\" class=\"row-rect-odd\">\u003Cpath d=\"M-97.15104293823242 -42.75 L97.15104293823242 -42.75 L97.15104293823242 0 L-97.15104293823242 0\" stroke=\"none\" stroke-width=\"0\" fill=\"hsl(240, 100%, 100%)\">\u003C\u002Fpath>\u003Cpath d=\"M-97.15104293823242 -42.75 C-46.314476692361794 -42.75, 4.522089553508835 -42.75, 97.15104293823242 -42.75 M-97.15104293823242 -42.75 C-56.83541588364733 -42.75, -16.519788829062236 -42.75, 97.15104293823242 -42.75 M97.15104293823242 -42.75 C97.15104293823242 -29.099990620776303, 97.15104293823242 -15.449981241552607, 97.15104293823242 0 M97.15104293823242 -42.75 C97.15104293823242 -31.485912613948372, 97.15104293823242 -20.22182522789674, 97.15104293823242 0 M97.15104293823242 0 C43.16129099905468 0, -10.828460940123065 0, -97.15104293823242 0 M97.15104293823242 0 C38.267801874436785 0, -20.615439189358852 0, -97.15104293823242 0 M-97.15104293823242 0 C-97.15104293823242 -11.4415659514166, -97.15104293823242 -22.8831319028332, -97.15104293823242 -42.75 M-97.15104293823242 0 C-97.15104293823242 -9.273596755097188, -97.15104293823242 -18.547193510194376, -97.15104293823242 -42.75\" stroke=\"#9370DB\" stroke-width=\"1.3\" fill=\"none\" stroke-dasharray=\"0 0\">\u003C\u002Fpath>\u003C\u002Fg>\u003Cg style=\"\" class=\"row-rect-even\">\u003Cpath d=\"M-97.15104293823242 0 L97.15104293823242 0 L97.15104293823242 42.75 L-97.15104293823242 42.75\" stroke=\"none\" stroke-width=\"0\" fill=\"hsl(240, 100%, 97.2745098039%)\">\u003C\u002Fpath>\u003Cpath d=\"M-97.15104293823242 0 C-28.819795306944144 0, 39.511452324344134 0, 97.15104293823242 0 M-97.15104293823242 0 C-34.05219730419344 0, 29.04664832984554 0, 97.15104293823242 0 M97.15104293823242 0 C97.15104293823242 13.990868284928041, 97.15104293823242 27.981736569856082, 97.15104293823242 42.75 M97.15104293823242 0 C97.15104293823242 10.34638661516726, 97.15104293823242 20.69277323033452, 97.15104293823242 42.75 M97.15104293823242 42.75 C26.67373029279142 42.75, -43.803582352649585 42.75, -97.15104293823242 42.75 M97.15104293823242 42.75 C50.07909579745196 42.75, 3.0071486566715038 42.75, -97.15104293823242 42.75 M-97.15104293823242 42.75 C-97.15104293823242 30.468421910830045, -97.15104293823242 18.186843821660094, -97.15104293823242 0 M-97.15104293823242 42.75 C-97.15104293823242 27.216601650239078, -97.15104293823242 11.683203300478151, -97.15104293823242 0\" stroke=\"#9370DB\" stroke-width=\"1.3\" fill=\"none\" stroke-dasharray=\"0 0\">\u003C\u002Fpath>\u003C\u002Fg>\u003Cg style=\"\" class=\"row-rect-odd\">\u003Cpath d=\"M-97.15104293823242 42.75 L97.15104293823242 42.75 L97.15104293823242 85.5 L-97.15104293823242 85.5\" stroke=\"none\" stroke-width=\"0\" fill=\"hsl(240, 100%, 100%)\">\u003C\u002Fpath>\u003Cpath d=\"M-97.15104293823242 42.75 C-27.90335911837606 42.75, 41.3443247014803 42.75, 97.15104293823242 42.75 M-97.15104293823242 42.75 C-22.589720918550327 42.75, 51.97160110113177 42.75, 97.15104293823242 42.75 M97.15104293823242 42.75 C97.15104293823242 58.96331510511739, 97.15104293823242 75.17663021023478, 97.15104293823242 85.5 M97.15104293823242 42.75 C97.15104293823242 53.63533540113687, 97.15104293823242 64.52067080227374, 97.15104293823242 85.5 M97.15104293823242 85.5 C40.24595133967894 85.5, -16.659140258874544 85.5, -97.15104293823242 85.5 M97.15104293823242 85.5 C22.380331105275943 85.5, -52.39038072768054 85.5, -97.15104293823242 85.5 M-97.15104293823242 85.5 C-97.15104293823242 69.78963600451888, -97.15104293823242 54.07927200903775, -97.15104293823242 42.75 M-97.15104293823242 85.5 C-97.15104293823242 70.12570127058488, -97.15104293823242 54.75140254116975, -97.15104293823242 42.75\" stroke=\"#9370DB\" stroke-width=\"1.3\" fill=\"none\" stroke-dasharray=\"0 0\">\u003C\u002Fpath>\u003C\u002Fg>\u003Cg class=\"label name\" transform=\"translate(-19.328125, -76.125)\" style=\"\">\u003CforeignObject width=\"38.65625\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 145px; text-align: start;\">\u003Cspan class=\"nodeLabel\">\u003Cp>TEAM\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003Cg class=\"label attribute-type\" transform=\"translate(-84.65104293823242, -33.375)\" style=\"\">\u003CforeignObject width=\"40.375\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 144px; text-align: start;\">\u003Cspan class=\"nodeLabel\">\u003Cp>string\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003Cg class=\"label attribute-name\" transform=\"translate(-3.119792938232422, -33.375)\" style=\"\">\u003CforeignObject width=\"58.625\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 161px; text-align: start;\">\u003Cspan class=\"nodeLabel\">\u003Cp>team_id\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003Cg class=\"label attribute-keys\" transform=\"translate(109.65104293823242, -33.375)\" style=\"\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 100px; text-align: start;\">\u003Cspan class=\"nodeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003Cg class=\"label attribute-comment\" transform=\"translate(109.65104293823242, -33.375)\" style=\"\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 100px; text-align: start;\">\u003Cspan class=\"nodeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003Cg class=\"label attribute-type\" transform=\"translate(-84.65104293823242, 9.375)\" style=\"\">\u003CforeignObject width=\"40.375\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 144px; text-align: start;\">\u003Cspan class=\"nodeLabel\">\u003Cp>string\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003Cg class=\"label attribute-name\" transform=\"translate(-3.119792938232422, 9.375)\" style=\"\">\u003CforeignObject width=\"77.71875\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 182px; text-align: start;\">\u003Cspan class=\"nodeLabel\">\u003Cp>team_alias\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003Cg class=\"label attribute-keys\" transform=\"translate(109.65104293823242, 9.375)\" style=\"\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 100px; text-align: start;\">\u003Cspan class=\"nodeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003Cg class=\"label attribute-comment\" transform=\"translate(109.65104293823242, 9.375)\" style=\"\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 100px; text-align: start;\">\u003Cspan class=\"nodeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003Cg class=\"label attribute-type\" transform=\"translate(-84.65104293823242, 52.125)\" style=\"\">\u003CforeignObject width=\"56.53125\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 160px; text-align: start;\">\u003Cspan class=\"nodeLabel\">\u003Cp>decimal\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003Cg class=\"label attribute-name\" transform=\"translate(-3.119792938232422, 52.125)\" style=\"\">\u003CforeignObject width=\"87.77083587646484\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 195px; text-align: start;\">\u003Cspan class=\"nodeLabel\">\u003Cp>max_budget\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003Cg class=\"label attribute-keys\" transform=\"translate(109.65104293823242, 52.125)\" style=\"\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 100px; text-align: start;\">\u003Cspan class=\"nodeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003Cg class=\"label attribute-comment\" transform=\"translate(109.65104293823242, 52.125)\" style=\"\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 100px; text-align: start;\">\u003Cspan class=\"nodeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003Cg class=\"divider\">\u003Cpath d=\"M-97.15104293823242 -42.75 C-46.97593994439751 -42.75, 3.199163049437402 -42.75, 97.15104293823242 -42.75 M-97.15104293823242 -42.75 C-45.51414372035858 -42.75, 6.122755497515257 -42.75, 97.15104293823242 -42.75\" stroke=\"#9370DB\" stroke-width=\"1.3\" fill=\"none\" stroke-dasharray=\"0 0\">\u003C\u002Fpath>\u003C\u002Fg>\u003Cg class=\"divider\">\u003Cpath d=\"M-15.619792938232422 -42.75 C-15.619792938232422 2.3705657626019416, -15.619792938232422 47.49113152520388, -15.619792938232422 85.5 M-15.619792938232422 -42.75 C-15.619792938232422 -17.06925917261879, -15.619792938232422 8.611481654762422, -15.619792938232422 85.5\" stroke=\"#9370DB\" stroke-width=\"1.3\" fill=\"none\" stroke-dasharray=\"0 0\">\u003C\u002Fpath>\u003C\u002Fg>\u003Cg class=\"divider\">\u003Cpath d=\"M-97.15104293823242 -42.75 C-21.201651001391667 -42.75, 54.74774093544909 -42.75, 97.15104293823242 -42.75 M-97.15104293823242 -42.75 C-44.7749405277495 -42.75, 7.601161882733422 -42.75, 97.15104293823242 -42.75\" stroke=\"#9370DB\" stroke-width=\"1.3\" fill=\"none\" stroke-dasharray=\"0 0\">\u003C\u002Fpath>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"node default\" id=\"entity-MODEL_ACCESS-3\" transform=\"translate(381.484375, 365.5)\">\u003Cg style=\"\">\u003Cpath d=\"M-91.078125 -64.125 L91.078125 -64.125 L91.078125 64.125 L-91.078125 64.125\" stroke=\"none\" stroke-width=\"0\" fill=\"#ECECFF\">\u003C\u002Fpath>\u003Cpath d=\"M-91.078125 -64.125 C-22.612398798319234 -64.125, 45.85332740336153 -64.125, 91.078125 -64.125 M-91.078125 -64.125 C-51.3083082274034 -64.125, -11.538491454806802 -64.125, 91.078125 -64.125 M91.078125 -64.125 C91.078125 -13.476197569936474, 91.078125 37.17260486012705, 91.078125 64.125 M91.078125 -64.125 C91.078125 -22.39090176902787, 91.078125 19.34319646194426, 91.078125 64.125 M91.078125 64.125 C39.98242032498718 64.125, -11.113284350025637 64.125, -91.078125 64.125 M91.078125 64.125 C29.16325199553058 64.125, -32.75162100893884 64.125, -91.078125 64.125 M-91.078125 64.125 C-91.078125 29.136022972919264, -91.078125 -5.852954054161472, -91.078125 -64.125 M-91.078125 64.125 C-91.078125 19.708710903210495, -91.078125 -24.70757819357901, -91.078125 -64.125\" stroke=\"#9370DB\" stroke-width=\"1.3\" fill=\"none\" stroke-dasharray=\"0 0\">\u003C\u002Fpath>\u003C\u002Fg>\u003Cg style=\"\" class=\"row-rect-odd\">\u003Cpath d=\"M-91.078125 -21.375 L91.078125 -21.375 L91.078125 21.375 L-91.078125 21.375\" stroke=\"none\" stroke-width=\"0\" fill=\"hsl(240, 100%, 100%)\">\u003C\u002Fpath>\u003Cpath d=\"M-91.078125 -21.375 C-18.675488338537434 -21.375, 53.72714832292513 -21.375, 91.078125 -21.375 M-91.078125 -21.375 C-29.768886890376244 -21.375, 31.540351219247512 -21.375, 91.078125 -21.375 M91.078125 -21.375 C91.078125 -5.506298293279311, 91.078125 10.362403413441378, 91.078125 21.375 M91.078125 -21.375 C91.078125 -9.352532382608121, 91.078125 2.6699352347837575, 91.078125 21.375 M91.078125 21.375 C30.930319932100197 21.375, -29.217485135799606 21.375, -91.078125 21.375 M91.078125 21.375 C39.47522223461577 21.375, -12.127680530768458 21.375, -91.078125 21.375 M-91.078125 21.375 C-91.078125 5.614212811186681, -91.078125 -10.146574377626639, -91.078125 -21.375 M-91.078125 21.375 C-91.078125 9.128155227937214, -91.078125 -3.118689544125573, -91.078125 -21.375\" stroke=\"#9370DB\" stroke-width=\"1.3\" fill=\"none\" stroke-dasharray=\"0 0\">\u003C\u002Fpath>\u003C\u002Fg>\u003Cg style=\"\" class=\"row-rect-even\">\u003Cpath d=\"M-91.078125 21.375 L91.078125 21.375 L91.078125 64.125 L-91.078125 64.125\" stroke=\"none\" stroke-width=\"0\" fill=\"hsl(240, 100%, 97.2745098039%)\">\u003C\u002Fpath>\u003Cpath d=\"M-91.078125 21.375 C-29.12785909758604 21.375, 32.82240680482792 21.375, 91.078125 21.375 M-91.078125 21.375 C-21.087631775820896 21.375, 48.90286144835821 21.375, 91.078125 21.375 M91.078125 21.375 C91.078125 36.55416953369237, 91.078125 51.73333906738473, 91.078125 64.125 M91.078125 21.375 C91.078125 31.184740429712697, 91.078125 40.994480859425394, 91.078125 64.125 M91.078125 64.125 C40.99087061815304 64.125, -9.096383763693922 64.125, -91.078125 64.125 M91.078125 64.125 C40.84013594664729 64.125, -9.397853106705426 64.125, -91.078125 64.125 M-91.078125 64.125 C-91.078125 50.951954800967414, -91.078125 37.77890960193483, -91.078125 21.375 M-91.078125 64.125 C-91.078125 54.59186728081294, -91.078125 45.05873456162588, -91.078125 21.375\" stroke=\"#9370DB\" stroke-width=\"1.3\" fill=\"none\" stroke-dasharray=\"0 0\">\u003C\u002Fpath>\u003C\u002Fg>\u003Cg class=\"label name\" transform=\"translate(-54.77604293823242, -54.75)\" style=\"\">\u003CforeignObject width=\"109.55208587646484\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 224px; text-align: start;\">\u003Cspan class=\"nodeLabel\">\u003Cp>MODEL_ACCESS\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003Cg class=\"label attribute-type\" transform=\"translate(-78.578125, -12)\" style=\"\">\u003CforeignObject width=\"40.375\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 144px; text-align: start;\">\u003Cspan class=\"nodeLabel\">\u003Cp>string\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003Cg class=\"label attribute-name\" transform=\"translate(-13.203125, -12)\" style=\"\">\u003CforeignObject width=\"58.625\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 161px; text-align: start;\">\u003Cspan class=\"nodeLabel\">\u003Cp>team_id\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003Cg class=\"label attribute-keys\" transform=\"translate(103.578125, -12)\" style=\"\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 100px; text-align: start;\">\u003Cspan class=\"nodeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003Cg class=\"label attribute-comment\" transform=\"translate(103.578125, -12)\" style=\"\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 100px; text-align: start;\">\u003Cspan class=\"nodeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003Cg class=\"label attribute-type\" transform=\"translate(-78.578125, 30.75)\" style=\"\">\u003CforeignObject width=\"40.375\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 144px; text-align: start;\">\u003Cspan class=\"nodeLabel\">\u003Cp>string\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003Cg class=\"label attribute-name\" transform=\"translate(-13.203125, 30.75)\" style=\"\">\u003CforeignObject width=\"91.78125\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 199px; text-align: start;\">\u003Cspan class=\"nodeLabel\">\u003Cp>model_name\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003Cg class=\"label attribute-keys\" transform=\"translate(103.578125, 30.75)\" style=\"\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 100px; text-align: start;\">\u003Cspan class=\"nodeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003Cg class=\"label attribute-comment\" transform=\"translate(103.578125, 30.75)\" style=\"\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 100px; text-align: start;\">\u003Cspan class=\"nodeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003Cg class=\"divider\">\u003Cpath d=\"M-91.078125 -21.375 C-37.58988714361652 -21.375, 15.898350712766955 -21.375, 91.078125 -21.375 M-91.078125 -21.375 C-44.53699083747129 -21.375, 2.004143325057413 -21.375, 91.078125 -21.375\" stroke=\"#9370DB\" stroke-width=\"1.3\" fill=\"none\" stroke-dasharray=\"0 0\">\u003C\u002Fpath>\u003C\u002Fg>\u003Cg class=\"divider\">\u003Cpath d=\"M-25.703125 -21.375 C-25.703125 8.885969024416799, -25.703125 39.1469380488336, -25.703125 64.125 M-25.703125 -21.375 C-25.703125 -3.657958589883556, -25.703125 14.059082820232888, -25.703125 64.125\" stroke=\"#9370DB\" stroke-width=\"1.3\" fill=\"none\" stroke-dasharray=\"0 0\">\u003C\u002Fpath>\u003C\u002Fg>\u003Cg class=\"divider\">\u003Cpath d=\"M-91.078125 -21.375 C-37.17472741895142 -21.375, 16.72867016209716 -21.375, 91.078125 -21.375 M-91.078125 -21.375 C-37.528067921570646 -21.375, 16.02198915685871 -21.375, 91.078125 -21.375\" stroke=\"#9370DB\" stroke-width=\"1.3\" fill=\"none\" stroke-dasharray=\"0 0\">\u003C\u002Fpath>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"node default\" id=\"entity-SPEND_LOG-4\" transform=\"translate(725.8567771911621, 1016.375)\">\u003Cg style=\"\">\u003Cpath d=\"M-125.515625 -149.625 L125.515625 -149.625 L125.515625 149.625 L-125.515625 149.625\" stroke=\"none\" stroke-width=\"0\" fill=\"#ECECFF\">\u003C\u002Fpath>\u003Cpath d=\"M-125.515625 -149.625 C-34.647368999179875 -149.625, 56.22088700164025 -149.625, 125.515625 -149.625 M-125.515625 -149.625 C-66.83990049040112 -149.625, -8.164175980802241 -149.625, 125.515625 -149.625 M125.515625 -149.625 C125.515625 -31.71350652815471, 125.515625 86.19798694369058, 125.515625 149.625 M125.515625 -149.625 C125.515625 -61.47552708331675, 125.515625 26.673945833366503, 125.515625 149.625 M125.515625 149.625 C43.92425512526134 149.625, -37.66711474947732 149.625, -125.515625 149.625 M125.515625 149.625 C64.04776299867021 149.625, 2.5799009973404026 149.625, -125.515625 149.625 M-125.515625 149.625 C-125.515625 37.10442353796003, -125.515625 -75.41615292407994, -125.515625 -149.625 M-125.515625 149.625 C-125.515625 49.78105653171714, -125.515625 -50.06288693656572, -125.515625 -149.625\" stroke=\"#9370DB\" stroke-width=\"1.3\" fill=\"none\" stroke-dasharray=\"0 0\">\u003C\u002Fpath>\u003C\u002Fg>\u003Cg style=\"\" class=\"row-rect-odd\">\u003Cpath d=\"M-125.515625 -106.875 L125.515625 -106.875 L125.515625 -64.125 L-125.515625 -64.125\" stroke=\"none\" stroke-width=\"0\" fill=\"hsl(240, 100%, 100%)\">\u003C\u002Fpath>\u003Cpath d=\"M-125.515625 -106.875 C-53.92674909616834 -106.875, 17.662126807663327 -106.875, 125.515625 -106.875 M-125.515625 -106.875 C-44.28460157644213 -106.875, 36.946421847115744 -106.875, 125.515625 -106.875 M125.515625 -106.875 C125.515625 -96.79018493811601, 125.515625 -86.70536987623204, 125.515625 -64.125 M125.515625 -106.875 C125.515625 -95.20014835061326, 125.515625 -83.52529670122652, 125.515625 -64.125 M125.515625 -64.125 C53.436045099959074 -64.125, -18.643534800081852 -64.125, -125.515625 -64.125 M125.515625 -64.125 C25.885948820214608 -64.125, -73.74372735957078 -64.125, -125.515625 -64.125 M-125.515625 -64.125 C-125.515625 -79.02066841062805, -125.515625 -93.9163368212561, -125.515625 -106.875 M-125.515625 -64.125 C-125.515625 -81.07104846400772, -125.515625 -98.01709692801543, -125.515625 -106.875\" stroke=\"#9370DB\" stroke-width=\"1.3\" fill=\"none\" stroke-dasharray=\"0 0\">\u003C\u002Fpath>\u003C\u002Fg>\u003Cg style=\"\" class=\"row-rect-even\">\u003Cpath d=\"M-125.515625 -64.125 L125.515625 -64.125 L125.515625 -21.375 L-125.515625 -21.375\" stroke=\"none\" stroke-width=\"0\" fill=\"hsl(240, 100%, 97.2745098039%)\">\u003C\u002Fpath>\u003Cpath d=\"M-125.515625 -64.125 C-32.58192150065659 -64.125, 60.35178199868682 -64.125, 125.515625 -64.125 M-125.515625 -64.125 C-50.55422144550556 -64.125, 24.407182108988877 -64.125, 125.515625 -64.125 M125.515625 -64.125 C125.515625 -50.98139600360843, 125.515625 -37.83779200721686, 125.515625 -21.375 M125.515625 -64.125 C125.515625 -47.612762529149904, 125.515625 -31.10052505829981, 125.515625 -21.375 M125.515625 -21.375 C53.490182249520416 -21.375, -18.53526050095917 -21.375, -125.515625 -21.375 M125.515625 -21.375 C49.833021603411396 -21.375, -25.849581793177208 -21.375, -125.515625 -21.375 M-125.515625 -21.375 C-125.515625 -36.31271454939996, -125.515625 -51.25042909879993, -125.515625 -64.125 M-125.515625 -21.375 C-125.515625 -36.11762229871093, -125.515625 -50.860244597421854, -125.515625 -64.125\" stroke=\"#9370DB\" stroke-width=\"1.3\" fill=\"none\" stroke-dasharray=\"0 0\">\u003C\u002Fpath>\u003C\u002Fg>\u003Cg style=\"\" class=\"row-rect-odd\">\u003Cpath d=\"M-125.515625 -21.375 L125.515625 -21.375 L125.515625 21.375 L-125.515625 21.375\" stroke=\"none\" stroke-width=\"0\" fill=\"hsl(240, 100%, 100%)\">\u003C\u002Fpath>\u003Cpath d=\"M-125.515625 -21.375 C-67.86472425280232 -21.375, -10.213823505604623 -21.375, 125.515625 -21.375 M-125.515625 -21.375 C-48.935965579829 -21.375, 27.643693840341996 -21.375, 125.515625 -21.375 M125.515625 -21.375 C125.515625 -7.069766792282188, 125.515625 7.235466415435624, 125.515625 21.375 M125.515625 -21.375 C125.515625 -11.903238406215605, 125.515625 -2.4314768124312103, 125.515625 21.375 M125.515625 21.375 C32.6017489312175 21.375, -60.312127137565 21.375, -125.515625 21.375 M125.515625 21.375 C52.55444437970324 21.375, -20.406736240593517 21.375, -125.515625 21.375 M-125.515625 21.375 C-125.515625 12.167576671397102, -125.515625 2.9601533427942037, -125.515625 -21.375 M-125.515625 21.375 C-125.515625 4.6464073300211055, -125.515625 -12.082185339957789, -125.515625 -21.375\" stroke=\"#9370DB\" stroke-width=\"1.3\" fill=\"none\" stroke-dasharray=\"0 0\">\u003C\u002Fpath>\u003C\u002Fg>\u003Cg style=\"\" class=\"row-rect-even\">\u003Cpath d=\"M-125.515625 21.375 L125.515625 21.375 L125.515625 64.125 L-125.515625 64.125\" stroke=\"none\" stroke-width=\"0\" fill=\"hsl(240, 100%, 97.2745098039%)\">\u003C\u002Fpath>\u003Cpath d=\"M-125.515625 21.375 C-27.106482050363297 21.375, 71.3026608992734 21.375, 125.515625 21.375 M-125.515625 21.375 C-30.16325474294976 21.375, 65.18911551410048 21.375, 125.515625 21.375 M125.515625 21.375 C125.515625 37.333886449020866, 125.515625 53.29277289804173, 125.515625 64.125 M125.515625 21.375 C125.515625 33.325763533132694, 125.515625 45.27652706626539, 125.515625 64.125 M125.515625 64.125 C32.82264485744979 64.125, -59.870335285100424 64.125, -125.515625 64.125 M125.515625 64.125 C62.043402067707135 64.125, -1.428820864585731 64.125, -125.515625 64.125 M-125.515625 64.125 C-125.515625 48.11240226182464, -125.515625 32.099804523649276, -125.515625 21.375 M-125.515625 64.125 C-125.515625 54.70401819247576, -125.515625 45.283036384951515, -125.515625 21.375\" stroke=\"#9370DB\" stroke-width=\"1.3\" fill=\"none\" stroke-dasharray=\"0 0\">\u003C\u002Fpath>\u003C\u002Fg>\u003Cg style=\"\" class=\"row-rect-odd\">\u003Cpath d=\"M-125.515625 64.125 L125.515625 64.125 L125.515625 106.875 L-125.515625 106.875\" stroke=\"none\" stroke-width=\"0\" fill=\"hsl(240, 100%, 100%)\">\u003C\u002Fpath>\u003Cpath d=\"M-125.515625 64.125 C-39.49667654345228 64.125, 46.52227191309544 64.125, 125.515625 64.125 M-125.515625 64.125 C-56.61522644885413 64.125, 12.285172102291739 64.125, 125.515625 64.125 M125.515625 64.125 C125.515625 78.33726591290542, 125.515625 92.54953182581085, 125.515625 106.875 M125.515625 64.125 C125.515625 79.9775744664322, 125.515625 95.8301489328644, 125.515625 106.875 M125.515625 106.875 C45.32701366926432 106.875, -34.861597661471365 106.875, -125.515625 106.875 M125.515625 106.875 C28.619733790161575 106.875, -68.27615741967685 106.875, -125.515625 106.875 M-125.515625 106.875 C-125.515625 91.32617494582875, -125.515625 75.77734989165751, -125.515625 64.125 M-125.515625 106.875 C-125.515625 92.70995181041233, -125.515625 78.54490362082466, -125.515625 64.125\" stroke=\"#9370DB\" stroke-width=\"1.3\" fill=\"none\" stroke-dasharray=\"0 0\">\u003C\u002Fpath>\u003C\u002Fg>\u003Cg style=\"\" class=\"row-rect-even\">\u003Cpath d=\"M-125.515625 106.875 L125.515625 106.875 L125.515625 149.625 L-125.515625 149.625\" stroke=\"none\" stroke-width=\"0\" fill=\"hsl(240, 100%, 97.2745098039%)\">\u003C\u002Fpath>\u003Cpath d=\"M-125.515625 106.875 C-69.5559909629213 106.875, -13.596356925842613 106.875, 125.515625 106.875 M-125.515625 106.875 C-70.24133220596372 106.875, -14.96703941192743 106.875, 125.515625 106.875 M125.515625 106.875 C125.515625 121.65229729986602, 125.515625 136.42959459973204, 125.515625 149.625 M125.515625 106.875 C125.515625 120.2258673993795, 125.515625 133.576734798759, 125.515625 149.625 M125.515625 149.625 C42.56856340905091 149.625, -40.37849818189818 149.625, -125.515625 149.625 M125.515625 149.625 C28.55368834562948 149.625, -68.40824830874104 149.625, -125.515625 149.625 M-125.515625 149.625 C-125.515625 141.0385928030046, -125.515625 132.4521856060092, -125.515625 106.875 M-125.515625 149.625 C-125.515625 136.87852360309626, -125.515625 124.13204720619252, -125.515625 106.875\" stroke=\"#9370DB\" stroke-width=\"1.3\" fill=\"none\" stroke-dasharray=\"0 0\">\u003C\u002Fpath>\u003C\u002Fg>\u003Cg class=\"label name\" transform=\"translate(-41.65625, -140.25)\" style=\"\">\u003CforeignObject width=\"83.3125\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 193px; text-align: start;\">\u003Cspan class=\"nodeLabel\">\u003Cp>SPEND_LOG\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003Cg class=\"label attribute-type\" transform=\"translate(-113.015625, -97.5)\" style=\"\">\u003CforeignObject width=\"40.375\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 144px; text-align: start;\">\u003Cspan class=\"nodeLabel\">\u003Cp>string\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003Cg class=\"label attribute-name\" transform=\"translate(-22.703125, -97.5)\" style=\"\">\u003CforeignObject width=\"76.02083587646484\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 180px; text-align: start;\">\u003Cspan class=\"nodeLabel\">\u003Cp>request_id\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003Cg class=\"label attribute-keys\" transform=\"translate(138.015625, -97.5)\" style=\"\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 100px; text-align: start;\">\u003Cspan class=\"nodeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003Cg class=\"label attribute-comment\" transform=\"translate(138.015625, -97.5)\" style=\"\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 100px; text-align: start;\">\u003Cspan class=\"nodeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003Cg class=\"label attribute-type\" transform=\"translate(-113.015625, -54.75)\" style=\"\">\u003CforeignObject width=\"40.375\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 144px; text-align: start;\">\u003Cspan class=\"nodeLabel\">\u003Cp>string\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003Cg class=\"label attribute-name\" transform=\"translate(-22.703125, -54.75)\" style=\"\">\u003CforeignObject width=\"44.22916793823242\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 149px; text-align: start;\">\u003Cspan class=\"nodeLabel\">\u003Cp>model\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003Cg class=\"label attribute-keys\" transform=\"translate(138.015625, -54.75)\" style=\"\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 100px; text-align: start;\">\u003Cspan class=\"nodeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003Cg class=\"label attribute-comment\" transform=\"translate(138.015625, -54.75)\" style=\"\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 100px; text-align: start;\">\u003Cspan class=\"nodeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003Cg class=\"label attribute-type\" transform=\"translate(-113.015625, -12)\" style=\"\">\u003CforeignObject width=\"19.65625\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 120px; text-align: start;\">\u003Cspan class=\"nodeLabel\">\u003Cp>int\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003Cg class=\"label attribute-name\" transform=\"translate(-22.703125, -12)\" style=\"\">\u003CforeignObject width=\"107.59375\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 215px; text-align: start;\">\u003Cspan class=\"nodeLabel\">\u003Cp>prompt_tokens\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003Cg class=\"label attribute-keys\" transform=\"translate(138.015625, -12)\" style=\"\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 100px; text-align: start;\">\u003Cspan class=\"nodeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003Cg class=\"label attribute-comment\" transform=\"translate(138.015625, -12)\" style=\"\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 100px; text-align: start;\">\u003Cspan class=\"nodeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003Cg class=\"label attribute-type\" transform=\"translate(-113.015625, 30.75)\" style=\"\">\u003CforeignObject width=\"19.65625\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 120px; text-align: start;\">\u003Cspan class=\"nodeLabel\">\u003Cp>int\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003Cg class=\"label attribute-name\" transform=\"translate(-22.703125, 30.75)\" style=\"\">\u003CforeignObject width=\"135.71875\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 245px; text-align: start;\">\u003Cspan class=\"nodeLabel\">\u003Cp>completion_tokens\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003Cg class=\"label attribute-keys\" transform=\"translate(138.015625, 30.75)\" style=\"\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 100px; text-align: start;\">\u003Cspan class=\"nodeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003Cg class=\"label attribute-comment\" transform=\"translate(138.015625, 30.75)\" style=\"\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 100px; text-align: start;\">\u003Cspan class=\"nodeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003Cg class=\"label attribute-type\" transform=\"translate(-113.015625, 73.5)\" style=\"\">\u003CforeignObject width=\"56.53125\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 160px; text-align: start;\">\u003Cspan class=\"nodeLabel\">\u003Cp>decimal\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003Cg class=\"label attribute-name\" transform=\"translate(-22.703125, 73.5)\" style=\"\">\u003CforeignObject width=\"41.78125\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 147px; text-align: start;\">\u003Cspan class=\"nodeLabel\">\u003Cp>spend\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003Cg class=\"label attribute-keys\" transform=\"translate(138.015625, 73.5)\" style=\"\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 100px; text-align: start;\">\u003Cspan class=\"nodeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003Cg class=\"label attribute-comment\" transform=\"translate(138.015625, 73.5)\" style=\"\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 100px; text-align: start;\">\u003Cspan class=\"nodeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003Cg class=\"label attribute-type\" transform=\"translate(-113.015625, 116.25)\" style=\"\">\u003CforeignObject width=\"65.3125\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 168px; text-align: start;\">\u003Cspan class=\"nodeLabel\">\u003Cp>datetime\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003Cg class=\"label attribute-name\" transform=\"translate(-22.703125, 116.25)\" style=\"\">\u003CforeignObject width=\"75.09375\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 177px; text-align: start;\">\u003Cspan class=\"nodeLabel\">\u003Cp>start_time\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003Cg class=\"label attribute-keys\" transform=\"translate(138.015625, 116.25)\" style=\"\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 100px; text-align: start;\">\u003Cspan class=\"nodeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003Cg class=\"label attribute-comment\" transform=\"translate(138.015625, 116.25)\" style=\"\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 100px; text-align: start;\">\u003Cspan class=\"nodeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003Cg class=\"divider\">\u003Cpath d=\"M-125.515625 -106.875 C-56.226186622081244 -106.875, 13.063251755837513 -106.875, 125.515625 -106.875 M-125.515625 -106.875 C-47.239087654543226 -106.875, 31.037449690913547 -106.875, 125.515625 -106.875\" stroke=\"#9370DB\" stroke-width=\"1.3\" fill=\"none\" stroke-dasharray=\"0 0\">\u003C\u002Fpath>\u003C\u002Fg>\u003Cg class=\"divider\">\u003Cpath d=\"M-35.203125 -106.875 C-35.203125 -33.146191581494705, -35.203125 40.58261683701059, -35.203125 149.625 M-35.203125 -106.875 C-35.203125 -49.897340033254366, -35.203125 7.080319933491268, -35.203125 149.625\" stroke=\"#9370DB\" stroke-width=\"1.3\" fill=\"none\" stroke-dasharray=\"0 0\">\u003C\u002Fpath>\u003C\u002Fg>\u003Cg class=\"divider\">\u003Cpath d=\"M-125.515625 -106.875 C-26.170499709954285 -106.875, 73.17462558009143 -106.875, 125.515625 -106.875 M-125.515625 -106.875 C-35.86518257783031 -106.875, 53.78525984433938 -106.875, 125.515625 -106.875\" stroke=\"#9370DB\" stroke-width=\"1.3\" fill=\"none\" stroke-dasharray=\"0 0\">\u003C\u002Fpath>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"node default\" id=\"entity-MODEL-5\" transform=\"translate(923.0182361602783, 658.875)\">\u003Cg style=\"\">\u003Cpath d=\"M-91.078125 -85.5 L91.078125 -85.5 L91.078125 85.5 L-91.078125 85.5\" stroke=\"none\" stroke-width=\"0\" fill=\"#ECECFF\">\u003C\u002Fpath>\u003Cpath d=\"M-91.078125 -85.5 C-23.48789557698555 -85.5, 44.1023338460289 -85.5, 91.078125 -85.5 M-91.078125 -85.5 C-21.000597454829617 -85.5, 49.07693009034077 -85.5, 91.078125 -85.5 M91.078125 -85.5 C91.078125 -23.148900973564317, 91.078125 39.20219805287137, 91.078125 85.5 M91.078125 -85.5 C91.078125 -50.013135000320126, 91.078125 -14.526270000640253, 91.078125 85.5 M91.078125 85.5 C30.349104682060656 85.5, -30.37991563587869 85.5, -91.078125 85.5 M91.078125 85.5 C41.00437041707119 85.5, -9.069384165857613 85.5, -91.078125 85.5 M-91.078125 85.5 C-91.078125 26.739096349123415, -91.078125 -32.02180730175317, -91.078125 -85.5 M-91.078125 85.5 C-91.078125 32.69589375130499, -91.078125 -20.108212497390014, -91.078125 -85.5\" stroke=\"#9370DB\" stroke-width=\"1.3\" fill=\"none\" stroke-dasharray=\"0 0\">\u003C\u002Fpath>\u003C\u002Fg>\u003Cg style=\"\" class=\"row-rect-odd\">\u003Cpath d=\"M-91.078125 -42.75 L91.078125 -42.75 L91.078125 0 L-91.078125 0\" stroke=\"none\" stroke-width=\"0\" fill=\"hsl(240, 100%, 100%)\">\u003C\u002Fpath>\u003Cpath d=\"M-91.078125 -42.75 C-46.26289038338341 -42.75, -1.4476557667668146 -42.75, 91.078125 -42.75 M-91.078125 -42.75 C-33.48153049230471 -42.75, 24.115064015390587 -42.75, 91.078125 -42.75 M91.078125 -42.75 C91.078125 -28.417192891167147, 91.078125 -14.084385782334298, 91.078125 0 M91.078125 -42.75 C91.078125 -26.651922190543488, 91.078125 -10.553844381086975, 91.078125 0 M91.078125 0 C34.30397596736719 0, -22.470173065265627 0, -91.078125 0 M91.078125 0 C44.985667554034244 0, -1.1067898919315127 0, -91.078125 0 M-91.078125 0 C-91.078125 -16.452086916316436, -91.078125 -32.90417383263287, -91.078125 -42.75 M-91.078125 0 C-91.078125 -9.438490733879489, -91.078125 -18.876981467758977, -91.078125 -42.75\" stroke=\"#9370DB\" stroke-width=\"1.3\" fill=\"none\" stroke-dasharray=\"0 0\">\u003C\u002Fpath>\u003C\u002Fg>\u003Cg style=\"\" class=\"row-rect-even\">\u003Cpath d=\"M-91.078125 0 L91.078125 0 L91.078125 42.75 L-91.078125 42.75\" stroke=\"none\" stroke-width=\"0\" fill=\"hsl(240, 100%, 97.2745098039%)\">\u003C\u002Fpath>\u003Cpath d=\"M-91.078125 0 C-34.72904983698742 0, 21.620025326025157 0, 91.078125 0 M-91.078125 0 C-18.219808428245543 0, 54.638508143508915 0, 91.078125 0 M91.078125 0 C91.078125 11.255939546715783, 91.078125 22.511879093431567, 91.078125 42.75 M91.078125 0 C91.078125 10.51646864845924, 91.078125 21.03293729691848, 91.078125 42.75 M91.078125 42.75 C24.49919555142816 42.75, -42.07973389714368 42.75, -91.078125 42.75 M91.078125 42.75 C39.39744311655815 42.75, -12.283238766883699 42.75, -91.078125 42.75 M-91.078125 42.75 C-91.078125 32.05511659181179, -91.078125 21.36023318362358, -91.078125 0 M-91.078125 42.75 C-91.078125 30.19897721665621, -91.078125 17.647954433312425, -91.078125 0\" stroke=\"#9370DB\" stroke-width=\"1.3\" fill=\"none\" stroke-dasharray=\"0 0\">\u003C\u002Fpath>\u003C\u002Fg>\u003Cg style=\"\" class=\"row-rect-odd\">\u003Cpath d=\"M-91.078125 42.75 L91.078125 42.75 L91.078125 85.5 L-91.078125 85.5\" stroke=\"none\" stroke-width=\"0\" fill=\"hsl(240, 100%, 100%)\">\u003C\u002Fpath>\u003Cpath d=\"M-91.078125 42.75 C-29.835894828073343 42.75, 31.406335343853314 42.75, 91.078125 42.75 M-91.078125 42.75 C-31.438324603709006 42.75, 28.201475792581988 42.75, 91.078125 42.75 M91.078125 42.75 C91.078125 55.013636659444636, 91.078125 67.27727331888927, 91.078125 85.5 M91.078125 42.75 C91.078125 52.02061085903018, 91.078125 61.291221718060356, 91.078125 85.5 M91.078125 85.5 C31.826756978554492 85.5, -27.424611042891016 85.5, -91.078125 85.5 M91.078125 85.5 C23.038704784549964 85.5, -45.00071543090007 85.5, -91.078125 85.5 M-91.078125 85.5 C-91.078125 76.55181771663199, -91.078125 67.60363543326397, -91.078125 42.75 M-91.078125 85.5 C-91.078125 74.85059525779288, -91.078125 64.20119051558575, -91.078125 42.75\" stroke=\"#9370DB\" stroke-width=\"1.3\" fill=\"none\" stroke-dasharray=\"0 0\">\u003C\u002Fpath>\u003C\u002Fg>\u003Cg class=\"label name\" transform=\"translate(-24.3125, -76.125)\" style=\"\">\u003CforeignObject width=\"48.625\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 158px; text-align: start;\">\u003Cspan class=\"nodeLabel\">\u003Cp>MODEL\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003Cg class=\"label attribute-type\" transform=\"translate(-78.578125, -33.375)\" style=\"\">\u003CforeignObject width=\"40.375\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 144px; text-align: start;\">\u003Cspan class=\"nodeLabel\">\u003Cp>string\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003Cg class=\"label attribute-name\" transform=\"translate(-13.203125, -33.375)\" style=\"\">\u003CforeignObject width=\"66.09375\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 171px; text-align: start;\">\u003Cspan class=\"nodeLabel\">\u003Cp>model_id\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003Cg class=\"label attribute-keys\" transform=\"translate(103.578125, -33.375)\" style=\"\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 100px; text-align: start;\">\u003Cspan class=\"nodeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003Cg class=\"label attribute-comment\" transform=\"translate(103.578125, -33.375)\" style=\"\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 100px; text-align: start;\">\u003Cspan class=\"nodeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003Cg class=\"label attribute-type\" transform=\"translate(-78.578125, 9.375)\" style=\"\">\u003CforeignObject width=\"40.375\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 144px; text-align: start;\">\u003Cspan class=\"nodeLabel\">\u003Cp>string\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003Cg class=\"label attribute-name\" transform=\"translate(-13.203125, 9.375)\" style=\"\">\u003CforeignObject width=\"91.78125\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 199px; text-align: start;\">\u003Cspan class=\"nodeLabel\">\u003Cp>model_name\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003Cg class=\"label attribute-keys\" transform=\"translate(103.578125, 9.375)\" style=\"\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 100px; text-align: start;\">\u003Cspan class=\"nodeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003Cg class=\"label attribute-comment\" transform=\"translate(103.578125, 9.375)\" style=\"\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 100px; text-align: start;\">\u003Cspan class=\"nodeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003Cg class=\"label attribute-type\" transform=\"translate(-78.578125, 52.125)\" style=\"\">\u003CforeignObject width=\"40.375\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 144px; text-align: start;\">\u003Cspan class=\"nodeLabel\">\u003Cp>string\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003Cg class=\"label attribute-name\" transform=\"translate(-13.203125, 52.125)\" style=\"\">\u003CforeignObject width=\"59.97916793823242\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 165px; text-align: start;\">\u003Cspan class=\"nodeLabel\">\u003Cp>provider\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003Cg class=\"label attribute-keys\" transform=\"translate(103.578125, 52.125)\" style=\"\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 100px; text-align: start;\">\u003Cspan class=\"nodeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003Cg class=\"label attribute-comment\" transform=\"translate(103.578125, 52.125)\" style=\"\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 100px; text-align: start;\">\u003Cspan class=\"nodeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003Cg class=\"divider\">\u003Cpath d=\"M-91.078125 -42.75 C-44.319966475462294 -42.75, 2.438192049075411 -42.75, 91.078125 -42.75 M-91.078125 -42.75 C-28.590224807988328 -42.75, 33.897675384023344 -42.75, 91.078125 -42.75\" stroke=\"#9370DB\" stroke-width=\"1.3\" fill=\"none\" stroke-dasharray=\"0 0\">\u003C\u002Fpath>\u003C\u002Fg>\u003Cg class=\"divider\">\u003Cpath d=\"M-25.703125 -42.75 C-25.703125 -4.8948761021710325, -25.703125 32.960247795657935, -25.703125 85.5 M-25.703125 -42.75 C-25.703125 4.798716227015497, -25.703125 52.347432454030994, -25.703125 85.5\" stroke=\"#9370DB\" stroke-width=\"1.3\" fill=\"none\" stroke-dasharray=\"0 0\">\u003C\u002Fpath>\u003C\u002Fg>\u003Cg class=\"divider\">\u003Cpath d=\"M-91.078125 -42.75 C-47.23623196198048 -42.75, -3.3943389239609587 -42.75, 91.078125 -42.75 M-91.078125 -42.75 C-49.95349044972986 -42.75, -8.828855899459725 -42.75, 91.078125 -42.75\" stroke=\"#9370DB\" stroke-width=\"1.3\" fill=\"none\" stroke-dasharray=\"0 0\">\u003C\u002Fpath>\u003C\u002Fg>\u003C\u002Fg>\u003C\u002Fg>\u003C\u002Fg>\u003C\u002Fg>\u003C\u002Fsvg>\u003Cdiv class=\"md-editor-mermaid-action\">\u003Cspan class=\"md-editor-mermaid-copy\">\u003Csvg xmlns=\"http:\u002F\u002Fwww.w3.org\u002F2000\u002Fsvg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"lucide lucide-copy md-editor-icon\">\u003Crect width=\"14\" height=\"14\" x=\"8\" y=\"8\" rx=\"2\" ry=\"2\">\u003C\u002Frect>\u003Cpath d=\"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2\">\u003C\u002Fpath>\u003C\u002Fsvg>\u003C\u002Fspan>\u003Cspan class=\"md-editor-mermaid-zoom\">\u003Csvg xmlns=\"http:\u002F\u002Fwww.w3.org\u002F2000\u002Fsvg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"lucide lucide-pin-off md-editor-icon\">\u003Cpath d=\"M12 17v5\">\u003C\u002Fpath>\u003Cpath d=\"M15 9.34V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H7.89\">\u003C\u002Fpath>\u003Cpath d=\"m2 2 20 20\">\u003C\u002Fpath>\u003Cpath d=\"M9 9v1.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h11\">\u003C\u002Fpath>\u003C\u002Fsvg>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002Fp>\u003Cp data-line=\"609\">该图是概念关系图，不是对某一版本完整 Prisma \u002F SQL Schema 的逐字段复刻。实际字段、外键和表名请以目标 Tag 的数据库 Schema 与 Migration 为准。\u003C\u002Fp>\n\u003Ch3 data-line=\"611\" id=\"8.4 异步账务写入\">8.4 异步账务写入\u003C\u002Fh3>\n\u003Cp data-line=\"613\" class=\"md-editor-mermaid\" data-mermaid-theme=\"light\" data-closed=\"true\" data-processed=\"\" data-content=\"flowchart LR\n    RESP[&quot;模型响应完成&quot;]\n    COST[&quot;成本计算 \u002F Usage 解析&quot;]\n    EVENT[&quot;Spend Event&quot;]\n    BUFFER[&quot;内存 \u002F Redis Buffer&quot;]\n    BATCH[&quot;批量聚合 \u002F 定时 Flush&quot;]\n    DB[&quot;PostgreSQL Spend Logs \u002F Rollups&quot;]\n    RESP --&gt; COST --&gt; EVENT --&gt; BUFFER --&gt; BATCH --&gt; DB\">\u003Csvg id=\"mx9uhx86aqunnr62rgi\" width=\"100%\" xmlns=\"http:\u002F\u002Fwww.w3.org\u002F2000\u002Fsvg\" xmlns:xlink=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxlink\" class=\"flowchart\" style=\"max-width: 1463.6146240234375px;\" viewBox=\"0 0 1463.6146240234375 94\" role=\"graphics-document document\" aria-roledescription=\"flowchart-v2\">\u003Cstyle>#mx9uhx86aqunnr62rgi{font-family:\"trebuchet ms\",verdana,arial,sans-serif;font-size:16px;fill:#333;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#mx9uhx86aqunnr62rgi .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#mx9uhx86aqunnr62rgi .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#mx9uhx86aqunnr62rgi .error-icon{fill:#552222;}#mx9uhx86aqunnr62rgi .error-text{fill:#552222;stroke:#552222;}#mx9uhx86aqunnr62rgi .edge-thickness-normal{stroke-width:1px;}#mx9uhx86aqunnr62rgi .edge-thickness-thick{stroke-width:3.5px;}#mx9uhx86aqunnr62rgi .edge-pattern-solid{stroke-dasharray:0;}#mx9uhx86aqunnr62rgi .edge-thickness-invisible{stroke-width:0;fill:none;}#mx9uhx86aqunnr62rgi .edge-pattern-dashed{stroke-dasharray:3;}#mx9uhx86aqunnr62rgi .edge-pattern-dotted{stroke-dasharray:2;}#mx9uhx86aqunnr62rgi .marker{fill:#333333;stroke:#333333;}#mx9uhx86aqunnr62rgi .marker.cross{stroke:#333333;}#mx9uhx86aqunnr62rgi svg{font-family:\"trebuchet ms\",verdana,arial,sans-serif;font-size:16px;}#mx9uhx86aqunnr62rgi p{margin:0;}#mx9uhx86aqunnr62rgi .label{font-family:\"trebuchet ms\",verdana,arial,sans-serif;color:#333;}#mx9uhx86aqunnr62rgi .cluster-label text{fill:#333;}#mx9uhx86aqunnr62rgi .cluster-label span{color:#333;}#mx9uhx86aqunnr62rgi .cluster-label span p{background-color:transparent;}#mx9uhx86aqunnr62rgi .label text,#mx9uhx86aqunnr62rgi span{fill:#333;color:#333;}#mx9uhx86aqunnr62rgi .node rect,#mx9uhx86aqunnr62rgi .node circle,#mx9uhx86aqunnr62rgi .node ellipse,#mx9uhx86aqunnr62rgi .node polygon,#mx9uhx86aqunnr62rgi .node path{fill:#ECECFF;stroke:#9370DB;stroke-width:1px;}#mx9uhx86aqunnr62rgi .rough-node .label text,#mx9uhx86aqunnr62rgi .node .label text,#mx9uhx86aqunnr62rgi .image-shape .label,#mx9uhx86aqunnr62rgi .icon-shape .label{text-anchor:middle;}#mx9uhx86aqunnr62rgi .node .katex path{fill:#000;stroke:#000;stroke-width:1px;}#mx9uhx86aqunnr62rgi .rough-node .label,#mx9uhx86aqunnr62rgi .node .label,#mx9uhx86aqunnr62rgi .image-shape .label,#mx9uhx86aqunnr62rgi .icon-shape .label{text-align:center;}#mx9uhx86aqunnr62rgi .node.clickable{cursor:pointer;}#mx9uhx86aqunnr62rgi .root .anchor path{fill:#333333!important;stroke-width:0;stroke:#333333;}#mx9uhx86aqunnr62rgi .arrowheadPath{fill:#333333;}#mx9uhx86aqunnr62rgi .edgePath .path{stroke:#333333;stroke-width:2.0px;}#mx9uhx86aqunnr62rgi .flowchart-link{stroke:#333333;fill:none;}#mx9uhx86aqunnr62rgi .edgeLabel{background-color:rgba(232,232,232, 0.8);text-align:center;}#mx9uhx86aqunnr62rgi .edgeLabel p{background-color:rgba(232,232,232, 0.8);}#mx9uhx86aqunnr62rgi .edgeLabel rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mx9uhx86aqunnr62rgi .labelBkg{background-color:rgba(232, 232, 232, 0.5);}#mx9uhx86aqunnr62rgi .cluster rect{fill:#ffffde;stroke:#aaaa33;stroke-width:1px;}#mx9uhx86aqunnr62rgi .cluster text{fill:#333;}#mx9uhx86aqunnr62rgi .cluster span{color:#333;}#mx9uhx86aqunnr62rgi div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:\"trebuchet ms\",verdana,arial,sans-serif;font-size:12px;background:hsl(80, 100%, 96.2745098039%);border:1px solid #aaaa33;border-radius:2px;pointer-events:none;z-index:100;}#mx9uhx86aqunnr62rgi .flowchartTitleText{text-anchor:middle;font-size:18px;fill:#333;}#mx9uhx86aqunnr62rgi rect.text{fill:none;stroke-width:0;}#mx9uhx86aqunnr62rgi .icon-shape,#mx9uhx86aqunnr62rgi .image-shape{background-color:rgba(232,232,232, 0.8);text-align:center;}#mx9uhx86aqunnr62rgi .icon-shape p,#mx9uhx86aqunnr62rgi .image-shape p{background-color:rgba(232,232,232, 0.8);padding:2px;}#mx9uhx86aqunnr62rgi .icon-shape rect,#mx9uhx86aqunnr62rgi .image-shape rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mx9uhx86aqunnr62rgi .label-icon{display:inline-block;height:1em;overflow:visible;vertical-align:-0.125em;}#mx9uhx86aqunnr62rgi .node .label-icon path{fill:currentColor;stroke:revert;stroke-width:revert;}#mx9uhx86aqunnr62rgi :root{--mermaid-font-family:\"trebuchet ms\",verdana,arial,sans-serif;}\u003C\u002Fstyle>\u003Cg>\u003Cmarker id=\"mx9uhx86aqunnr62rgi_flowchart-v2-pointEnd\" class=\"marker flowchart-v2\" viewBox=\"0 0 10 10\" refX=\"5\" refY=\"5\" markerUnits=\"userSpaceOnUse\" markerWidth=\"8\" markerHeight=\"8\" orient=\"auto\">\u003Cpath d=\"M 0 0 L 10 5 L 0 10 z\" class=\"arrowMarkerPath\" style=\"stroke-width: 1; stroke-dasharray: 1, 0;\">\u003C\u002Fpath>\u003C\u002Fmarker>\u003Cmarker id=\"mx9uhx86aqunnr62rgi_flowchart-v2-pointStart\" class=\"marker flowchart-v2\" viewBox=\"0 0 10 10\" refX=\"4.5\" refY=\"5\" markerUnits=\"userSpaceOnUse\" markerWidth=\"8\" markerHeight=\"8\" orient=\"auto\">\u003Cpath d=\"M 0 5 L 10 10 L 10 0 z\" class=\"arrowMarkerPath\" style=\"stroke-width: 1; stroke-dasharray: 1, 0;\">\u003C\u002Fpath>\u003C\u002Fmarker>\u003Cmarker id=\"mx9uhx86aqunnr62rgi_flowchart-v2-circleEnd\" class=\"marker flowchart-v2\" viewBox=\"0 0 10 10\" refX=\"11\" refY=\"5\" markerUnits=\"userSpaceOnUse\" markerWidth=\"11\" markerHeight=\"11\" orient=\"auto\">\u003Ccircle cx=\"5\" cy=\"5\" r=\"5\" class=\"arrowMarkerPath\" style=\"stroke-width: 1; stroke-dasharray: 1, 0;\">\u003C\u002Fcircle>\u003C\u002Fmarker>\u003Cmarker id=\"mx9uhx86aqunnr62rgi_flowchart-v2-circleStart\" class=\"marker flowchart-v2\" viewBox=\"0 0 10 10\" refX=\"-1\" refY=\"5\" markerUnits=\"userSpaceOnUse\" markerWidth=\"11\" markerHeight=\"11\" orient=\"auto\">\u003Ccircle cx=\"5\" cy=\"5\" r=\"5\" class=\"arrowMarkerPath\" style=\"stroke-width: 1; stroke-dasharray: 1, 0;\">\u003C\u002Fcircle>\u003C\u002Fmarker>\u003Cmarker id=\"mx9uhx86aqunnr62rgi_flowchart-v2-crossEnd\" class=\"marker cross flowchart-v2\" viewBox=\"0 0 11 11\" refX=\"12\" refY=\"5.2\" markerUnits=\"userSpaceOnUse\" markerWidth=\"11\" markerHeight=\"11\" orient=\"auto\">\u003Cpath d=\"M 1,1 l 9,9 M 10,1 l -9,9\" class=\"arrowMarkerPath\" style=\"stroke-width: 2; stroke-dasharray: 1, 0;\">\u003C\u002Fpath>\u003C\u002Fmarker>\u003Cmarker id=\"mx9uhx86aqunnr62rgi_flowchart-v2-crossStart\" class=\"marker cross flowchart-v2\" viewBox=\"0 0 11 11\" refX=\"-1\" refY=\"5.2\" markerUnits=\"userSpaceOnUse\" markerWidth=\"11\" markerHeight=\"11\" orient=\"auto\">\u003Cpath d=\"M 1,1 l 9,9 M 10,1 l -9,9\" class=\"arrowMarkerPath\" style=\"stroke-width: 2; stroke-dasharray: 1, 0;\">\u003C\u002Fpath>\u003C\u002Fmarker>\u003Cg class=\"root\">\u003Cg class=\"clusters\">\u003C\u002Fg>\u003Cg class=\"edgePaths\">\u003Cpath d=\"M164,47L168.167,47C172.333,47,180.667,47,188.333,47C196,47,203,47,206.5,47L210,47\" id=\"L_RESP_COST_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_RESP_COST_0\" data-points=\"W3sieCI6MTY0LCJ5Ijo0N30seyJ4IjoxODksInkiOjQ3fSx7IngiOjIxNCwieSI6NDd9XQ==\" marker-end=\"url(#mx9uhx86aqunnr62rgi_flowchart-v2-pointEnd)\">\u003C\u002Fpath>\u003Cpath d=\"M434.875,47L439.042,47C443.208,47,451.542,47,459.208,47C466.875,47,473.875,47,477.375,47L480.875,47\" id=\"L_COST_EVENT_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_COST_EVENT_0\" data-points=\"W3sieCI6NDM0Ljg3NSwieSI6NDd9LHsieCI6NDU5Ljg3NSwieSI6NDd9LHsieCI6NDg0Ljg3NSwieSI6NDd9XQ==\" marker-end=\"url(#mx9uhx86aqunnr62rgi_flowchart-v2-pointEnd)\">\u003C\u002Fpath>\u003Cpath d=\"M632.906,47L637.073,47C641.24,47,649.573,47,657.24,47C664.906,47,671.906,47,675.406,47L678.906,47\" id=\"L_EVENT_BUFFER_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_EVENT_BUFFER_0\" data-points=\"W3sieCI6NjMyLjkwNjI1LCJ5Ijo0N30seyJ4Ijo2NTcuOTA2MjUsInkiOjQ3fSx7IngiOjY4Mi45MDYyNSwieSI6NDd9XQ==\" marker-end=\"url(#mx9uhx86aqunnr62rgi_flowchart-v2-pointEnd)\">\u003C\u002Fpath>\u003Cpath d=\"M879.677,47L883.844,47C888.01,47,896.344,47,904.01,47C911.677,47,918.677,47,922.177,47L925.677,47\" id=\"L_BUFFER_BATCH_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_BUFFER_BATCH_0\" data-points=\"W3sieCI6ODc5LjY3NzA3ODI0NzA3MDMsInkiOjQ3fSx7IngiOjkwNC42NzcwNzgyNDcwNzAzLCJ5Ijo0N30seyJ4Ijo5MjkuNjc3MDc4MjQ3MDcwMywieSI6NDd9XQ==\" marker-end=\"url(#mx9uhx86aqunnr62rgi_flowchart-v2-pointEnd)\">\u003C\u002Fpath>\u003Cpath d=\"M1145.615,47L1149.781,47C1153.948,47,1162.281,47,1169.948,47C1177.615,47,1184.615,47,1188.115,47L1191.615,47\" id=\"L_BATCH_DB_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_BATCH_DB_0\" data-points=\"W3sieCI6MTE0NS42MTQ1NzgyNDcwNzAzLCJ5Ijo0N30seyJ4IjoxMTcwLjYxNDU3ODI0NzA3MDMsInkiOjQ3fSx7IngiOjExOTUuNjE0NTc4MjQ3MDcwMywieSI6NDd9XQ==\" marker-end=\"url(#mx9uhx86aqunnr62rgi_flowchart-v2-pointEnd)\">\u003C\u002Fpath>\u003C\u002Fg>\u003Cg class=\"edgeLabels\">\u003Cg class=\"edgeLabel\">\u003Cg class=\"label\" data-id=\"L_RESP_COST_0\" transform=\"translate(0, 0)\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"edgeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"edgeLabel\">\u003Cg class=\"label\" data-id=\"L_COST_EVENT_0\" transform=\"translate(0, 0)\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"edgeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"edgeLabel\">\u003Cg class=\"label\" data-id=\"L_EVENT_BUFFER_0\" transform=\"translate(0, 0)\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"edgeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"edgeLabel\">\u003Cg class=\"label\" data-id=\"L_BUFFER_BATCH_0\" transform=\"translate(0, 0)\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"edgeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"edgeLabel\">\u003Cg class=\"label\" data-id=\"L_BATCH_DB_0\" transform=\"translate(0, 0)\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"edgeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"nodes\">\u003Cg class=\"node default\" id=\"flowchart-RESP-0\" transform=\"translate(86, 47)\">\u003Crect class=\"basic label-container\" style=\"\" x=\"-78\" y=\"-27\" width=\"156\" height=\"54\">\u003C\u002Frect>\u003Cg class=\"label\" style=\"\" transform=\"translate(-48, -12)\">\u003Crect>\u003C\u002Frect>\u003CforeignObject width=\"96\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"nodeLabel\">\u003Cp>模型响应完成\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"node default\" id=\"flowchart-COST-1\" transform=\"translate(324.4375, 47)\">\u003Crect class=\"basic label-container\" style=\"\" x=\"-110.4375\" y=\"-27\" width=\"220.875\" height=\"54\">\u003C\u002Frect>\u003Cg class=\"label\" style=\"\" transform=\"translate(-80.4375, -12)\">\u003Crect>\u003C\u002Frect>\u003CforeignObject width=\"160.875\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"nodeLabel\">\u003Cp>成本计算 \u002F Usage 解析\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"node default\" id=\"flowchart-EVENT-2\" transform=\"translate(558.890625, 47)\">\u003Crect class=\"basic label-container\" style=\"\" x=\"-74.015625\" y=\"-27\" width=\"148.03125\" height=\"54\">\u003C\u002Frect>\u003Cg class=\"label\" style=\"\" transform=\"translate(-44.015625, -12)\">\u003Crect>\u003C\u002Frect>\u003CforeignObject width=\"88.03125\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"nodeLabel\">\u003Cp>Spend Event\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"node default\" id=\"flowchart-BUFFER-3\" transform=\"translate(781.2916641235352, 47)\">\u003Crect class=\"basic label-container\" style=\"\" x=\"-98.38542175292969\" y=\"-27\" width=\"196.77084350585938\" height=\"54\">\u003C\u002Frect>\u003Cg class=\"label\" style=\"\" transform=\"translate(-68.38542175292969, -12)\">\u003Crect>\u003C\u002Frect>\u003CforeignObject width=\"136.77084350585938\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"nodeLabel\">\u003Cp>内存 \u002F Redis Buffer\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"node default\" id=\"flowchart-BATCH-4\" transform=\"translate(1037.6458282470703, 47)\">\u003Crect class=\"basic label-container\" style=\"\" x=\"-107.96875\" y=\"-27\" width=\"215.9375\" height=\"54\">\u003C\u002Frect>\u003Cg class=\"label\" style=\"\" transform=\"translate(-77.96875, -12)\">\u003Crect>\u003C\u002Frect>\u003CforeignObject width=\"155.9375\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"nodeLabel\">\u003Cp>批量聚合 \u002F 定时 Flush\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"node default\" id=\"flowchart-DB-5\" transform=\"translate(1325.6145782470703, 47)\">\u003Crect class=\"basic label-container\" style=\"\" x=\"-130\" y=\"-39\" width=\"260\" height=\"78\">\u003C\u002Frect>\u003Cg class=\"label\" style=\"\" transform=\"translate(-100, -24)\">\u003Crect>\u003C\u002Frect>\u003CforeignObject width=\"200\" height=\"48\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table; white-space: break-spaces; line-height: 1.5; max-width: 200px; text-align: center; width: 200px;\">\u003Cspan class=\"nodeLabel\">\u003Cp>PostgreSQL Spend Logs \u002F Rollups\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003C\u002Fg>\u003C\u002Fg>\u003C\u002Fg>\u003C\u002Fsvg>\u003Cdiv class=\"md-editor-mermaid-action\">\u003Cspan class=\"md-editor-mermaid-copy\">\u003Csvg xmlns=\"http:\u002F\u002Fwww.w3.org\u002F2000\u002Fsvg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"lucide lucide-copy md-editor-icon\">\u003Crect width=\"14\" height=\"14\" x=\"8\" y=\"8\" rx=\"2\" ry=\"2\">\u003C\u002Frect>\u003Cpath d=\"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2\">\u003C\u002Fpath>\u003C\u002Fsvg>\u003C\u002Fspan>\u003Cspan class=\"md-editor-mermaid-zoom\">\u003Csvg xmlns=\"http:\u002F\u002Fwww.w3.org\u002F2000\u002Fsvg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"lucide lucide-pin-off md-editor-icon\">\u003Cpath d=\"M12 17v5\">\u003C\u002Fpath>\u003Cpath d=\"M15 9.34V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H7.89\">\u003C\u002Fpath>\u003Cpath d=\"m2 2 20 20\">\u003C\u002Fpath>\u003Cpath d=\"M9 9v1.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h11\">\u003C\u002Fpath>\u003C\u002Fsvg>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002Fp>\u003Cp data-line=\"624\">架构优点：\u003C\u002Fp>\n\u003Cul data-line=\"626\">\n\u003Cli data-line=\"626\">降低请求主链路数据库写压力。\u003C\u002Fli>\n\u003Cli data-line=\"627\">减少小事务数量。\u003C\u002Fli>\n\u003Cli data-line=\"628\">支持批量更新用量和统计。\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Cp data-line=\"630\">架构风险：\u003C\u002Fp>\n\u003Cul data-line=\"632\">\n\u003Cli data-line=\"632\">异步队列和缓冲必须有持久化、重试和补偿设计。\u003C\u002Fli>\n\u003Cli data-line=\"633\">统计数据可能存在短暂延迟。\u003C\u002Fli>\n\u003Cli data-line=\"634\">多实例写入要处理并发、去重、重复事件和锁。\u003C\u002Fli>\n\u003Cli data-line=\"635\">需要区分“实时限额计数”与“最终账务记录”，两者不应简单混为一谈。\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Chr data-line=\"637\">\n\u003Ch2 data-line=\"639\" id=\"9. 管理控制面：Admin UI、Management API 和配置源\">9. 管理控制面：Admin UI、Management API 和配置源\u003C\u002Fh2>\n\u003Ch3 data-line=\"641\" id=\"9.1 管理界面并不直接管理 Provider\">9.1 管理界面并不直接管理 Provider\u003C\u002Fh3>\n\u003Cp data-line=\"643\">管理界面的核心流程是调用 LiteLLM Management API，由后端完成权限校验、参数校验和数据库操作，再刷新运行时模型\u002F配置状态。\u003C\u002Fp>\n\u003Cp data-line=\"645\" class=\"md-editor-mermaid\" data-mermaid-theme=\"light\" data-closed=\"true\" data-processed=\"\" data-content=\"sequenceDiagram\n    participant ADMIN as 管理员\n    participant UI as Admin UI\n    participant API as Management API\n    participant AUTH as Admin Auth \u002F RBAC\n    participant DB as PostgreSQL\n    participant RUNTIME as Router \u002F Model Registry\n\n    ADMIN-&gt;&gt;UI: 添加 Provider \u002F Model\n    UI-&gt;&gt;API: POST 管理请求\n    API-&gt;&gt;AUTH: 校验 Admin 权限\n    AUTH--&gt;&gt;API: 授权通过\n    API-&gt;&gt;DB: 保存模型和凭证配置\n    DB--&gt;&gt;API: 保存成功\n    API-&gt;&gt;RUNTIME: 刷新配置 \u002F 更新注册表\n    RUNTIME--&gt;&gt;API: 更新成功\n    API--&gt;&gt;UI: 返回结果\n    UI--&gt;&gt;ADMIN: 展示模型并允许测试\">\u003Csvg id=\"mx9uhx86h9oxldr1d9n\" width=\"100%\" xmlns=\"http:\u002F\u002Fwww.w3.org\u002F2000\u002Fsvg\" xmlns:xlink=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxlink\" style=\"max-width: 1364px;\" viewBox=\"-50 -10 1364 691\" role=\"graphics-document document\" aria-roledescription=\"sequence\">\u003Cg>\u003Crect x=\"1060\" y=\"605\" fill=\"#eaeaea\" stroke=\"#666\" width=\"204\" height=\"65\" name=\"RUNTIME\" rx=\"3\" ry=\"3\" class=\"actor actor-bottom\">\u003C\u002Frect>\u003Ctext x=\"1162\" y=\"637.5\" dominant-baseline=\"central\" alignment-baseline=\"central\" class=\"actor actor-box\" style=\"text-anchor: middle; font-size: 16px; font-weight: 400;\">\u003Ctspan x=\"1162\" dy=\"0\">Router \u002F Model Registry\u003C\u002Ftspan>\u003C\u002Ftext>\u003C\u002Fg>\u003Cg>\u003Crect x=\"860\" y=\"605\" fill=\"#eaeaea\" stroke=\"#666\" width=\"150\" height=\"65\" name=\"DB\" rx=\"3\" ry=\"3\" class=\"actor actor-bottom\">\u003C\u002Frect>\u003Ctext x=\"935\" y=\"637.5\" dominant-baseline=\"central\" alignment-baseline=\"central\" class=\"actor actor-box\" style=\"text-anchor: middle; font-size: 16px; font-weight: 400;\">\u003Ctspan x=\"935\" dy=\"0\">PostgreSQL\u003C\u002Ftspan>\u003C\u002Ftext>\u003C\u002Fg>\u003Cg>\u003Crect x=\"639\" y=\"605\" fill=\"#eaeaea\" stroke=\"#666\" width=\"171\" height=\"65\" name=\"AUTH\" rx=\"3\" ry=\"3\" class=\"actor actor-bottom\">\u003C\u002Frect>\u003Ctext x=\"724.5\" y=\"637.5\" dominant-baseline=\"central\" alignment-baseline=\"central\" class=\"actor actor-box\" style=\"text-anchor: middle; font-size: 16px; font-weight: 400;\">\u003Ctspan x=\"724.5\" dy=\"0\">Admin Auth \u002F RBAC\u003C\u002Ftspan>\u003C\u002Ftext>\u003C\u002Fg>\u003Cg>\u003Crect x=\"436\" y=\"605\" fill=\"#eaeaea\" stroke=\"#666\" width=\"153\" height=\"65\" name=\"API\" rx=\"3\" ry=\"3\" class=\"actor actor-bottom\">\u003C\u002Frect>\u003Ctext x=\"512.5\" y=\"637.5\" dominant-baseline=\"central\" alignment-baseline=\"central\" class=\"actor actor-box\" style=\"text-anchor: middle; font-size: 16px; font-weight: 400;\">\u003Ctspan x=\"512.5\" dy=\"0\">Management API\u003C\u002Ftspan>\u003C\u002Ftext>\u003C\u002Fg>\u003Cg>\u003Crect x=\"236\" y=\"605\" fill=\"#eaeaea\" stroke=\"#666\" width=\"150\" height=\"65\" name=\"UI\" rx=\"3\" ry=\"3\" class=\"actor actor-bottom\">\u003C\u002Frect>\u003Ctext x=\"311\" y=\"637.5\" dominant-baseline=\"central\" alignment-baseline=\"central\" class=\"actor actor-box\" style=\"text-anchor: middle; font-size: 16px; font-weight: 400;\">\u003Ctspan x=\"311\" dy=\"0\">Admin UI\u003C\u002Ftspan>\u003C\u002Ftext>\u003C\u002Fg>\u003Cg>\u003Crect x=\"0\" y=\"605\" fill=\"#eaeaea\" stroke=\"#666\" width=\"150\" height=\"65\" name=\"ADMIN\" rx=\"3\" ry=\"3\" class=\"actor actor-bottom\">\u003C\u002Frect>\u003Ctext x=\"75\" y=\"637.5\" dominant-baseline=\"central\" alignment-baseline=\"central\" class=\"actor actor-box\" style=\"text-anchor: middle; font-size: 16px; font-weight: 400;\">\u003Ctspan x=\"75\" dy=\"0\">管理员\u003C\u002Ftspan>\u003C\u002Ftext>\u003C\u002Fg>\u003Cg>\u003Cline id=\"actor37\" x1=\"1162\" y1=\"65\" x2=\"1162\" y2=\"605\" class=\"actor-line 200\" stroke-width=\"0.5px\" stroke=\"#999\" name=\"RUNTIME\">\u003C\u002Fline>\u003Cg id=\"root-37\">\u003Crect x=\"1060\" y=\"0\" fill=\"#eaeaea\" stroke=\"#666\" width=\"204\" height=\"65\" name=\"RUNTIME\" rx=\"3\" ry=\"3\" class=\"actor actor-top\">\u003C\u002Frect>\u003Ctext x=\"1162\" y=\"32.5\" dominant-baseline=\"central\" alignment-baseline=\"central\" class=\"actor actor-box\" style=\"text-anchor: middle; font-size: 16px; font-weight: 400;\">\u003Ctspan x=\"1162\" dy=\"0\">Router \u002F Model Registry\u003C\u002Ftspan>\u003C\u002Ftext>\u003C\u002Fg>\u003C\u002Fg>\u003Cg>\u003Cline id=\"actor36\" x1=\"935\" y1=\"65\" x2=\"935\" y2=\"605\" class=\"actor-line 200\" stroke-width=\"0.5px\" stroke=\"#999\" name=\"DB\">\u003C\u002Fline>\u003Cg id=\"root-36\">\u003Crect x=\"860\" y=\"0\" fill=\"#eaeaea\" stroke=\"#666\" width=\"150\" height=\"65\" name=\"DB\" rx=\"3\" ry=\"3\" class=\"actor actor-top\">\u003C\u002Frect>\u003Ctext x=\"935\" y=\"32.5\" dominant-baseline=\"central\" alignment-baseline=\"central\" class=\"actor actor-box\" style=\"text-anchor: middle; font-size: 16px; font-weight: 400;\">\u003Ctspan x=\"935\" dy=\"0\">PostgreSQL\u003C\u002Ftspan>\u003C\u002Ftext>\u003C\u002Fg>\u003C\u002Fg>\u003Cg>\u003Cline id=\"actor35\" x1=\"724.5\" y1=\"65\" x2=\"724.5\" y2=\"605\" class=\"actor-line 200\" stroke-width=\"0.5px\" stroke=\"#999\" name=\"AUTH\">\u003C\u002Fline>\u003Cg id=\"root-35\">\u003Crect x=\"639\" y=\"0\" fill=\"#eaeaea\" stroke=\"#666\" width=\"171\" height=\"65\" name=\"AUTH\" rx=\"3\" ry=\"3\" class=\"actor actor-top\">\u003C\u002Frect>\u003Ctext x=\"724.5\" y=\"32.5\" dominant-baseline=\"central\" alignment-baseline=\"central\" class=\"actor actor-box\" style=\"text-anchor: middle; font-size: 16px; font-weight: 400;\">\u003Ctspan x=\"724.5\" dy=\"0\">Admin Auth \u002F RBAC\u003C\u002Ftspan>\u003C\u002Ftext>\u003C\u002Fg>\u003C\u002Fg>\u003Cg>\u003Cline id=\"actor34\" x1=\"512.5\" y1=\"65\" x2=\"512.5\" y2=\"605\" class=\"actor-line 200\" stroke-width=\"0.5px\" stroke=\"#999\" name=\"API\">\u003C\u002Fline>\u003Cg id=\"root-34\">\u003Crect x=\"436\" y=\"0\" fill=\"#eaeaea\" stroke=\"#666\" width=\"153\" height=\"65\" name=\"API\" rx=\"3\" ry=\"3\" class=\"actor actor-top\">\u003C\u002Frect>\u003Ctext x=\"512.5\" y=\"32.5\" dominant-baseline=\"central\" alignment-baseline=\"central\" class=\"actor actor-box\" style=\"text-anchor: middle; font-size: 16px; font-weight: 400;\">\u003Ctspan x=\"512.5\" dy=\"0\">Management API\u003C\u002Ftspan>\u003C\u002Ftext>\u003C\u002Fg>\u003C\u002Fg>\u003Cg>\u003Cline id=\"actor33\" x1=\"311\" y1=\"65\" x2=\"311\" y2=\"605\" class=\"actor-line 200\" stroke-width=\"0.5px\" stroke=\"#999\" name=\"UI\">\u003C\u002Fline>\u003Cg id=\"root-33\">\u003Crect x=\"236\" y=\"0\" fill=\"#eaeaea\" stroke=\"#666\" width=\"150\" height=\"65\" name=\"UI\" rx=\"3\" ry=\"3\" class=\"actor actor-top\">\u003C\u002Frect>\u003Ctext x=\"311\" y=\"32.5\" dominant-baseline=\"central\" alignment-baseline=\"central\" class=\"actor actor-box\" style=\"text-anchor: middle; font-size: 16px; font-weight: 400;\">\u003Ctspan x=\"311\" dy=\"0\">Admin UI\u003C\u002Ftspan>\u003C\u002Ftext>\u003C\u002Fg>\u003C\u002Fg>\u003Cg>\u003Cline id=\"actor32\" x1=\"75\" y1=\"65\" x2=\"75\" y2=\"605\" class=\"actor-line 200\" stroke-width=\"0.5px\" stroke=\"#999\" name=\"ADMIN\">\u003C\u002Fline>\u003Cg id=\"root-32\">\u003Crect x=\"0\" y=\"0\" fill=\"#eaeaea\" stroke=\"#666\" width=\"150\" height=\"65\" name=\"ADMIN\" rx=\"3\" ry=\"3\" class=\"actor actor-top\">\u003C\u002Frect>\u003Ctext x=\"75\" y=\"32.5\" dominant-baseline=\"central\" alignment-baseline=\"central\" class=\"actor actor-box\" style=\"text-anchor: middle; font-size: 16px; font-weight: 400;\">\u003Ctspan x=\"75\" dy=\"0\">管理员\u003C\u002Ftspan>\u003C\u002Ftext>\u003C\u002Fg>\u003C\u002Fg>\u003Cstyle>#mx9uhx86h9oxldr1d9n{font-family:\"trebuchet ms\",verdana,arial,sans-serif;font-size:16px;fill:#333;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#mx9uhx86h9oxldr1d9n .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#mx9uhx86h9oxldr1d9n .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#mx9uhx86h9oxldr1d9n .error-icon{fill:#552222;}#mx9uhx86h9oxldr1d9n .error-text{fill:#552222;stroke:#552222;}#mx9uhx86h9oxldr1d9n .edge-thickness-normal{stroke-width:1px;}#mx9uhx86h9oxldr1d9n .edge-thickness-thick{stroke-width:3.5px;}#mx9uhx86h9oxldr1d9n .edge-pattern-solid{stroke-dasharray:0;}#mx9uhx86h9oxldr1d9n .edge-thickness-invisible{stroke-width:0;fill:none;}#mx9uhx86h9oxldr1d9n .edge-pattern-dashed{stroke-dasharray:3;}#mx9uhx86h9oxldr1d9n .edge-pattern-dotted{stroke-dasharray:2;}#mx9uhx86h9oxldr1d9n .marker{fill:#333333;stroke:#333333;}#mx9uhx86h9oxldr1d9n .marker.cross{stroke:#333333;}#mx9uhx86h9oxldr1d9n svg{font-family:\"trebuchet ms\",verdana,arial,sans-serif;font-size:16px;}#mx9uhx86h9oxldr1d9n p{margin:0;}#mx9uhx86h9oxldr1d9n .actor{stroke:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);fill:#ECECFF;}#mx9uhx86h9oxldr1d9n text.actor&gt;tspan{fill:black;stroke:none;}#mx9uhx86h9oxldr1d9n .actor-line{stroke:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);}#mx9uhx86h9oxldr1d9n .innerArc{stroke-width:1.5;stroke-dasharray:none;}#mx9uhx86h9oxldr1d9n .messageLine0{stroke-width:1.5;stroke-dasharray:none;stroke:#333;}#mx9uhx86h9oxldr1d9n .messageLine1{stroke-width:1.5;stroke-dasharray:2,2;stroke:#333;}#mx9uhx86h9oxldr1d9n #arrowhead path{fill:#333;stroke:#333;}#mx9uhx86h9oxldr1d9n .sequenceNumber{fill:white;}#mx9uhx86h9oxldr1d9n #sequencenumber{fill:#333;}#mx9uhx86h9oxldr1d9n #crosshead path{fill:#333;stroke:#333;}#mx9uhx86h9oxldr1d9n .messageText{fill:#333;stroke:none;}#mx9uhx86h9oxldr1d9n .labelBox{stroke:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);fill:#ECECFF;}#mx9uhx86h9oxldr1d9n .labelText,#mx9uhx86h9oxldr1d9n .labelText&gt;tspan{fill:black;stroke:none;}#mx9uhx86h9oxldr1d9n .loopText,#mx9uhx86h9oxldr1d9n .loopText&gt;tspan{fill:black;stroke:none;}#mx9uhx86h9oxldr1d9n .loopLine{stroke-width:2px;stroke-dasharray:2,2;stroke:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);fill:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);}#mx9uhx86h9oxldr1d9n .note{stroke:#aaaa33;fill:#fff5ad;}#mx9uhx86h9oxldr1d9n .noteText,#mx9uhx86h9oxldr1d9n .noteText&gt;tspan{fill:black;stroke:none;}#mx9uhx86h9oxldr1d9n .activation0{fill:#f4f4f4;stroke:#666;}#mx9uhx86h9oxldr1d9n .activation1{fill:#f4f4f4;stroke:#666;}#mx9uhx86h9oxldr1d9n .activation2{fill:#f4f4f4;stroke:#666;}#mx9uhx86h9oxldr1d9n .actorPopupMenu{position:absolute;}#mx9uhx86h9oxldr1d9n .actorPopupMenuPanel{position:absolute;fill:#ECECFF;box-shadow:0px 8px 16px 0px rgba(0,0,0,0.2);filter:drop-shadow(3px 5px 2px rgb(0 0 0 \u002F 0.4));}#mx9uhx86h9oxldr1d9n .actor-man line{stroke:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);fill:#ECECFF;}#mx9uhx86h9oxldr1d9n .actor-man circle,#mx9uhx86h9oxldr1d9n line{stroke:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);fill:#ECECFF;stroke-width:2px;}#mx9uhx86h9oxldr1d9n :root{--mermaid-font-family:\"trebuchet ms\",verdana,arial,sans-serif;}\u003C\u002Fstyle>\u003Cg>\u003C\u002Fg>\u003Cdefs>\u003Csymbol id=\"computer\" width=\"24\" height=\"24\">\u003Cpath transform=\"scale(.5)\" d=\"M2 2v13h20v-13h-20zm18 11h-16v-9h16v9zm-10.228 6l.466-1h3.524l.467 1h-4.457zm14.228 3h-24l2-6h2.104l-1.33 4h18.45l-1.297-4h2.073l2 6zm-5-10h-14v-7h14v7z\">\u003C\u002Fpath>\u003C\u002Fsymbol>\u003C\u002Fdefs>\u003Cdefs>\u003Csymbol id=\"database\" fill-rule=\"evenodd\" clip-rule=\"evenodd\">\u003Cpath transform=\"scale(.5)\" d=\"M12.258.001l.256.004.255.005.253.008.251.01.249.012.247.015.246.016.242.019.241.02.239.023.236.024.233.027.231.028.229.031.225.032.223.034.22.036.217.038.214.04.211.041.208.043.205.045.201.046.198.048.194.05.191.051.187.053.183.054.18.056.175.057.172.059.168.06.163.061.16.063.155.064.15.066.074.033.073.033.071.034.07.034.069.035.068.035.067.035.066.035.064.036.064.036.062.036.06.036.06.037.058.037.058.037.055.038.055.038.053.038.052.038.051.039.05.039.048.039.047.039.045.04.044.04.043.04.041.04.04.041.039.041.037.041.036.041.034.041.033.042.032.042.03.042.029.042.027.042.026.043.024.043.023.043.021.043.02.043.018.044.017.043.015.044.013.044.012.044.011.045.009.044.007.045.006.045.004.045.002.045.001.045v17l-.001.045-.002.045-.004.045-.006.045-.007.045-.009.044-.011.045-.012.044-.013.044-.015.044-.017.043-.018.044-.02.043-.021.043-.023.043-.024.043-.026.043-.027.042-.029.042-.03.042-.032.042-.033.042-.034.041-.036.041-.037.041-.039.041-.04.041-.041.04-.043.04-.044.04-.045.04-.047.039-.048.039-.05.039-.051.039-.052.038-.053.038-.055.038-.055.038-.058.037-.058.037-.06.037-.06.036-.062.036-.064.036-.064.036-.066.035-.067.035-.068.035-.069.035-.07.034-.071.034-.073.033-.074.033-.15.066-.155.064-.16.063-.163.061-.168.06-.172.059-.175.057-.18.056-.183.054-.187.053-.191.051-.194.05-.198.048-.201.046-.205.045-.208.043-.211.041-.214.04-.217.038-.22.036-.223.034-.225.032-.229.031-.231.028-.233.027-.236.024-.239.023-.241.02-.242.019-.246.016-.247.015-.249.012-.251.01-.253.008-.255.005-.256.004-.258.001-.258-.001-.256-.004-.255-.005-.253-.008-.251-.01-.249-.012-.247-.015-.245-.016-.243-.019-.241-.02-.238-.023-.236-.024-.234-.027-.231-.028-.228-.031-.226-.032-.223-.034-.22-.036-.217-.038-.214-.04-.211-.041-.208-.043-.204-.045-.201-.046-.198-.048-.195-.05-.19-.051-.187-.053-.184-.054-.179-.056-.176-.057-.172-.059-.167-.06-.164-.061-.159-.063-.155-.064-.151-.066-.074-.033-.072-.033-.072-.034-.07-.034-.069-.035-.068-.035-.067-.035-.066-.035-.064-.036-.063-.036-.062-.036-.061-.036-.06-.037-.058-.037-.057-.037-.056-.038-.055-.038-.053-.038-.052-.038-.051-.039-.049-.039-.049-.039-.046-.039-.046-.04-.044-.04-.043-.04-.041-.04-.04-.041-.039-.041-.037-.041-.036-.041-.034-.041-.033-.042-.032-.042-.03-.042-.029-.042-.027-.042-.026-.043-.024-.043-.023-.043-.021-.043-.02-.043-.018-.044-.017-.043-.015-.044-.013-.044-.012-.044-.011-.045-.009-.044-.007-.045-.006-.045-.004-.045-.002-.045-.001-.045v-17l.001-.045.002-.045.004-.045.006-.045.007-.045.009-.044.011-.045.012-.044.013-.044.015-.044.017-.043.018-.044.02-.043.021-.043.023-.043.024-.043.026-.043.027-.042.029-.042.03-.042.032-.042.033-.042.034-.041.036-.041.037-.041.039-.041.04-.041.041-.04.043-.04.044-.04.046-.04.046-.039.049-.039.049-.039.051-.039.052-.038.053-.038.055-.038.056-.038.057-.037.058-.037.06-.037.061-.036.062-.036.063-.036.064-.036.066-.035.067-.035.068-.035.069-.035.07-.034.072-.034.072-.033.074-.033.151-.066.155-.064.159-.063.164-.061.167-.06.172-.059.176-.057.179-.056.184-.054.187-.053.19-.051.195-.05.198-.048.201-.046.204-.045.208-.043.211-.041.214-.04.217-.038.22-.036.223-.034.226-.032.228-.031.231-.028.234-.027.236-.024.238-.023.241-.02.243-.019.245-.016.247-.015.249-.012.251-.01.253-.008.255-.005.256-.004.258-.001.258.001zm-9.258 20.499v.01l.001.021.003.021.004.022.005.021.006.022.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.023.018.024.019.024.021.024.022.025.023.024.024.025.052.049.056.05.061.051.066.051.07.051.075.051.079.052.084.052.088.052.092.052.097.052.102.051.105.052.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.048.144.049.147.047.152.047.155.047.16.045.163.045.167.043.171.043.176.041.178.041.183.039.187.039.19.037.194.035.197.035.202.033.204.031.209.03.212.029.216.027.219.025.222.024.226.021.23.02.233.018.236.016.24.015.243.012.246.01.249.008.253.005.256.004.259.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.021.224-.024.22-.026.216-.027.212-.028.21-.031.205-.031.202-.034.198-.034.194-.036.191-.037.187-.039.183-.04.179-.04.175-.042.172-.043.168-.044.163-.045.16-.046.155-.046.152-.047.148-.048.143-.049.139-.049.136-.05.131-.05.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.053.083-.051.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.05.023-.024.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.023.01-.022.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.127l-.077.055-.08.053-.083.054-.085.053-.087.052-.09.052-.093.051-.095.05-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.045-.118.044-.12.043-.122.042-.124.042-.126.041-.128.04-.13.04-.132.038-.134.038-.135.037-.138.037-.139.035-.142.035-.143.034-.144.033-.147.032-.148.031-.15.03-.151.03-.153.029-.154.027-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.01-.179.008-.179.008-.181.006-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.006-.179-.008-.179-.008-.178-.01-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.027-.153-.029-.151-.03-.15-.03-.148-.031-.146-.032-.145-.033-.143-.034-.141-.035-.14-.035-.137-.037-.136-.037-.134-.038-.132-.038-.13-.04-.128-.04-.126-.041-.124-.042-.122-.042-.12-.044-.117-.043-.116-.045-.113-.045-.112-.046-.109-.047-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.05-.093-.052-.09-.051-.087-.052-.085-.053-.083-.054-.08-.054-.077-.054v4.127zm0-5.654v.011l.001.021.003.021.004.021.005.022.006.022.007.022.009.022.01.022.011.023.012.023.013.023.015.024.016.023.017.024.018.024.019.024.021.024.022.024.023.025.024.024.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.052.11.051.114.051.119.052.123.05.127.051.131.05.135.049.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.044.171.042.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.022.23.02.233.018.236.016.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.012.241-.015.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.048.139-.05.136-.049.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.051.051-.049.023-.025.023-.024.021-.025.02-.024.019-.024.018-.024.017-.024.015-.023.014-.023.013-.024.012-.022.01-.023.01-.023.008-.022.006-.022.006-.022.004-.021.004-.022.001-.021.001-.021v-4.139l-.077.054-.08.054-.083.054-.085.052-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.044-.118.044-.12.044-.122.042-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.035-.143.033-.144.033-.147.033-.148.031-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.009-.179.009-.179.007-.181.007-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.007-.179-.007-.179-.009-.178-.009-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.031-.146-.033-.145-.033-.143-.033-.141-.035-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.04-.126-.041-.124-.042-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.051-.093-.051-.09-.051-.087-.053-.085-.052-.083-.054-.08-.054-.077-.054v4.139zm0-5.666v.011l.001.02.003.022.004.021.005.022.006.021.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.024.018.023.019.024.021.025.022.024.023.024.024.025.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.051.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.043.171.043.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.021.23.02.233.018.236.017.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.013.241-.014.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.049.139-.049.136-.049.131-.051.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.049.023-.025.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.022.01-.023.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.153l-.077.054-.08.054-.083.053-.085.053-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.048-.105.048-.106.048-.109.046-.111.046-.114.046-.115.044-.118.044-.12.043-.122.043-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.034-.143.034-.144.033-.147.032-.148.032-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.024-.161.024-.162.023-.163.023-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.01-.178.01-.179.009-.179.007-.181.006-.182.006-.182.004-.184.003-.184.001-.185.001-.185-.001-.184-.001-.184-.003-.182-.004-.182-.006-.181-.006-.179-.007-.179-.009-.178-.01-.176-.01-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.023-.162-.023-.161-.024-.159-.024-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.032-.146-.032-.145-.033-.143-.034-.141-.034-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.041-.126-.041-.124-.041-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.048-.105-.048-.102-.048-.1-.05-.097-.049-.095-.051-.093-.051-.09-.052-.087-.052-.085-.053-.083-.053-.08-.054-.077-.054v4.153zm8.74-8.179l-.257.004-.254.005-.25.008-.247.011-.244.012-.241.014-.237.016-.233.018-.231.021-.226.022-.224.023-.22.026-.216.027-.212.028-.21.031-.205.032-.202.033-.198.034-.194.036-.191.038-.187.038-.183.04-.179.041-.175.042-.172.043-.168.043-.163.045-.16.046-.155.046-.152.048-.148.048-.143.048-.139.049-.136.05-.131.05-.126.051-.123.051-.118.051-.114.052-.11.052-.106.052-.101.052-.096.052-.092.052-.088.052-.083.052-.079.052-.074.051-.07.052-.065.051-.06.05-.056.05-.051.05-.023.025-.023.024-.021.024-.02.025-.019.024-.018.024-.017.023-.015.024-.014.023-.013.023-.012.023-.01.023-.01.022-.008.022-.006.023-.006.021-.004.022-.004.021-.001.021-.001.021.001.021.001.021.004.021.004.022.006.021.006.023.008.022.01.022.01.023.012.023.013.023.014.023.015.024.017.023.018.024.019.024.02.025.021.024.023.024.023.025.051.05.056.05.06.05.065.051.07.052.074.051.079.052.083.052.088.052.092.052.096.052.101.052.106.052.11.052.114.052.118.051.123.051.126.051.131.05.136.05.139.049.143.048.148.048.152.048.155.046.16.046.163.045.168.043.172.043.175.042.179.041.183.04.187.038.191.038.194.036.198.034.202.033.205.032.21.031.212.028.216.027.22.026.224.023.226.022.231.021.233.018.237.016.241.014.244.012.247.011.25.008.254.005.257.004.26.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.022.224-.023.22-.026.216-.027.212-.028.21-.031.205-.032.202-.033.198-.034.194-.036.191-.038.187-.038.183-.04.179-.041.175-.042.172-.043.168-.043.163-.045.16-.046.155-.046.152-.048.148-.048.143-.048.139-.049.136-.05.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.05.051-.05.023-.025.023-.024.021-.024.02-.025.019-.024.018-.024.017-.023.015-.024.014-.023.013-.023.012-.023.01-.023.01-.022.008-.022.006-.023.006-.021.004-.022.004-.021.001-.021.001-.021-.001-.021-.001-.021-.004-.021-.004-.022-.006-.021-.006-.023-.008-.022-.01-.022-.01-.023-.012-.023-.013-.023-.014-.023-.015-.024-.017-.023-.018-.024-.019-.024-.02-.025-.021-.024-.023-.024-.023-.025-.051-.05-.056-.05-.06-.05-.065-.051-.07-.052-.074-.051-.079-.052-.083-.052-.088-.052-.092-.052-.096-.052-.101-.052-.106-.052-.11-.052-.114-.052-.118-.051-.123-.051-.126-.051-.131-.05-.136-.05-.139-.049-.143-.048-.148-.048-.152-.048-.155-.046-.16-.046-.163-.045-.168-.043-.172-.043-.175-.042-.179-.041-.183-.04-.187-.038-.191-.038-.194-.036-.198-.034-.202-.033-.205-.032-.21-.031-.212-.028-.216-.027-.22-.026-.224-.023-.226-.022-.231-.021-.233-.018-.237-.016-.241-.014-.244-.012-.247-.011-.25-.008-.254-.005-.257-.004-.26-.001-.26.001z\">\u003C\u002Fpath>\u003C\u002Fsymbol>\u003C\u002Fdefs>\u003Cdefs>\u003Csymbol id=\"clock\" width=\"24\" height=\"24\">\u003Cpath transform=\"scale(.5)\" d=\"M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm5.848 12.459c.202.038.202.333.001.372-1.907.361-6.045 1.111-6.547 1.111-.719 0-1.301-.582-1.301-1.301 0-.512.77-5.447 1.125-7.445.034-.192.312-.181.343.014l.985 6.238 5.394 1.011z\">\u003C\u002Fpath>\u003C\u002Fsymbol>\u003C\u002Fdefs>\u003Cdefs>\u003Cmarker id=\"arrowhead\" refX=\"7.9\" refY=\"5\" markerUnits=\"userSpaceOnUse\" markerWidth=\"12\" markerHeight=\"12\" orient=\"auto-start-reverse\">\u003Cpath d=\"M -1 0 L 10 5 L 0 10 z\">\u003C\u002Fpath>\u003C\u002Fmarker>\u003C\u002Fdefs>\u003Cdefs>\u003Cmarker id=\"crosshead\" markerWidth=\"15\" markerHeight=\"8\" orient=\"auto\" refX=\"4\" refY=\"4.5\">\u003Cpath fill=\"none\" stroke=\"#000000\" stroke-width=\"1pt\" d=\"M 1,2 L 6,7 M 6,2 L 1,7\" style=\"stroke-dasharray: 0, 0;\">\u003C\u002Fpath>\u003C\u002Fmarker>\u003C\u002Fdefs>\u003Cdefs>\u003Cmarker id=\"filled-head\" refX=\"15.5\" refY=\"7\" markerWidth=\"20\" markerHeight=\"28\" orient=\"auto\">\u003Cpath d=\"M 18,7 L9,13 L14,7 L9,1 Z\">\u003C\u002Fpath>\u003C\u002Fmarker>\u003C\u002Fdefs>\u003Cdefs>\u003Cmarker id=\"sequencenumber\" refX=\"15\" refY=\"15\" markerWidth=\"60\" markerHeight=\"40\" orient=\"auto\">\u003Ccircle cx=\"15\" cy=\"15\" r=\"6\">\u003C\u002Fcircle>\u003C\u002Fmarker>\u003C\u002Fdefs>\u003Ctext x=\"192\" y=\"80\" text-anchor=\"middle\" dominant-baseline=\"middle\" alignment-baseline=\"middle\" class=\"messageText\" dy=\"1em\" style=\"font-size: 16px; font-weight: 400;\">添加 Provider \u002F Model\u003C\u002Ftext>\u003Cline x1=\"76\" y1=\"117\" x2=\"307\" y2=\"117\" class=\"messageLine0\" stroke-width=\"2\" stroke=\"none\" marker-end=\"url(#arrowhead)\" style=\"fill: none;\">\u003C\u002Fline>\u003Ctext x=\"410\" y=\"132\" text-anchor=\"middle\" dominant-baseline=\"middle\" alignment-baseline=\"middle\" class=\"messageText\" dy=\"1em\" style=\"font-size: 16px; font-weight: 400;\">POST 管理请求\u003C\u002Ftext>\u003Cline x1=\"312\" y1=\"169\" x2=\"508.5\" y2=\"169\" class=\"messageLine0\" stroke-width=\"2\" stroke=\"none\" marker-end=\"url(#arrowhead)\" style=\"fill: none;\">\u003C\u002Fline>\u003Ctext x=\"617\" y=\"184\" text-anchor=\"middle\" dominant-baseline=\"middle\" alignment-baseline=\"middle\" class=\"messageText\" dy=\"1em\" style=\"font-size: 16px; font-weight: 400;\">校验 Admin 权限\u003C\u002Ftext>\u003Cline x1=\"513.5\" y1=\"221\" x2=\"720.5\" y2=\"221\" class=\"messageLine0\" stroke-width=\"2\" stroke=\"none\" marker-end=\"url(#arrowhead)\" style=\"fill: none;\">\u003C\u002Fline>\u003Ctext x=\"620\" y=\"236\" text-anchor=\"middle\" dominant-baseline=\"middle\" alignment-baseline=\"middle\" class=\"messageText\" dy=\"1em\" style=\"font-size: 16px; font-weight: 400;\">授权通过\u003C\u002Ftext>\u003Cline x1=\"723.5\" y1=\"273\" x2=\"516.5\" y2=\"273\" class=\"messageLine1\" stroke-width=\"2\" stroke=\"none\" marker-end=\"url(#arrowhead)\" style=\"stroke-dasharray: 3, 3; fill: none;\">\u003C\u002Fline>\u003Ctext x=\"722\" y=\"288\" text-anchor=\"middle\" dominant-baseline=\"middle\" alignment-baseline=\"middle\" class=\"messageText\" dy=\"1em\" style=\"font-size: 16px; font-weight: 400;\">保存模型和凭证配置\u003C\u002Ftext>\u003Cline x1=\"513.5\" y1=\"325\" x2=\"931\" y2=\"325\" class=\"messageLine0\" stroke-width=\"2\" stroke=\"none\" marker-end=\"url(#arrowhead)\" style=\"fill: none;\">\u003C\u002Fline>\u003Ctext x=\"725\" y=\"340\" text-anchor=\"middle\" dominant-baseline=\"middle\" alignment-baseline=\"middle\" class=\"messageText\" dy=\"1em\" style=\"font-size: 16px; font-weight: 400;\">保存成功\u003C\u002Ftext>\u003Cline x1=\"934\" y1=\"377\" x2=\"516.5\" y2=\"377\" class=\"messageLine1\" stroke-width=\"2\" stroke=\"none\" marker-end=\"url(#arrowhead)\" style=\"stroke-dasharray: 3, 3; fill: none;\">\u003C\u002Fline>\u003Ctext x=\"836\" y=\"392\" text-anchor=\"middle\" dominant-baseline=\"middle\" alignment-baseline=\"middle\" class=\"messageText\" dy=\"1em\" style=\"font-size: 16px; font-weight: 400;\">刷新配置 \u002F 更新注册表\u003C\u002Ftext>\u003Cline x1=\"513.5\" y1=\"429\" x2=\"1158\" y2=\"429\" class=\"messageLine0\" stroke-width=\"2\" stroke=\"none\" marker-end=\"url(#arrowhead)\" style=\"fill: none;\">\u003C\u002Fline>\u003Ctext x=\"839\" y=\"444\" text-anchor=\"middle\" dominant-baseline=\"middle\" alignment-baseline=\"middle\" class=\"messageText\" dy=\"1em\" style=\"font-size: 16px; font-weight: 400;\">更新成功\u003C\u002Ftext>\u003Cline x1=\"1161\" y1=\"481\" x2=\"516.5\" y2=\"481\" class=\"messageLine1\" stroke-width=\"2\" stroke=\"none\" marker-end=\"url(#arrowhead)\" style=\"stroke-dasharray: 3, 3; fill: none;\">\u003C\u002Fline>\u003Ctext x=\"413\" y=\"496\" text-anchor=\"middle\" dominant-baseline=\"middle\" alignment-baseline=\"middle\" class=\"messageText\" dy=\"1em\" style=\"font-size: 16px; font-weight: 400;\">返回结果\u003C\u002Ftext>\u003Cline x1=\"511.5\" y1=\"533\" x2=\"315\" y2=\"533\" class=\"messageLine1\" stroke-width=\"2\" stroke=\"none\" marker-end=\"url(#arrowhead)\" style=\"stroke-dasharray: 3, 3; fill: none;\">\u003C\u002Fline>\u003Ctext x=\"195\" y=\"548\" text-anchor=\"middle\" dominant-baseline=\"middle\" alignment-baseline=\"middle\" class=\"messageText\" dy=\"1em\" style=\"font-size: 16px; font-weight: 400;\">展示模型并允许测试\u003C\u002Ftext>\u003Cline x1=\"310\" y1=\"585\" x2=\"79\" y2=\"585\" class=\"messageLine1\" stroke-width=\"2\" stroke=\"none\" marker-end=\"url(#arrowhead)\" style=\"stroke-dasharray: 3, 3; fill: none;\">\u003C\u002Fline>\u003C\u002Fsvg>\u003Cdiv class=\"md-editor-mermaid-action\">\u003Cspan class=\"md-editor-mermaid-copy\">\u003Csvg xmlns=\"http:\u002F\u002Fwww.w3.org\u002F2000\u002Fsvg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"lucide lucide-copy md-editor-icon\">\u003Crect width=\"14\" height=\"14\" x=\"8\" y=\"8\" rx=\"2\" ry=\"2\">\u003C\u002Frect>\u003Cpath d=\"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2\">\u003C\u002Fpath>\u003C\u002Fsvg>\u003C\u002Fspan>\u003Cspan class=\"md-editor-mermaid-zoom\">\u003Csvg xmlns=\"http:\u002F\u002Fwww.w3.org\u002F2000\u002Fsvg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"lucide lucide-pin-off md-editor-icon\">\u003Cpath d=\"M12 17v5\">\u003C\u002Fpath>\u003Cpath d=\"M15 9.34V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H7.89\">\u003C\u002Fpath>\u003Cpath d=\"m2 2 20 20\">\u003C\u002Fpath>\u003Cpath d=\"M9 9v1.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h11\">\u003C\u002Fpath>\u003C\u002Fsvg>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002Fp>\u003Ch3 data-line=\"666\" id=\"9.2 配置来源：YAML、UI、Management API、Terraform\">9.2 配置来源：YAML、UI、Management API、Terraform\u003C\u002Fh3>\n\u003Cp data-line=\"668\">LiteLLM 支持多种配置入口：\u003C\u002Fp>\n\u003Ctable data-line=\"670\">\n\u003Cthead data-line=\"670\">\n\u003Ctr data-line=\"670\">\n\u003Cth>方式\u003C\u002Fth>\n\u003Cth>适合场景\u003C\u002Fth>\n\u003Cth>优势\u003C\u002Fth>\n\u003C\u002Ftr>\n\u003C\u002Fthead>\n\u003Ctbody data-line=\"672\">\n\u003Ctr data-line=\"672\">\n\u003Ctd>YAML\u003C\u002Ftd>\n\u003Ctd>网关固定参数、部署配置、GitOps\u003C\u002Ftd>\n\u003Ctd>可审查、可版本控制\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr data-line=\"673\">\n\u003Ctd>Admin UI\u003C\u002Ftd>\n\u003Ctd>运维人员日常管理模型和 Key\u003C\u002Ftd>\n\u003Ctd>操作直观\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr data-line=\"674\">\n\u003Ctd>Management API\u003C\u002Ftd>\n\u003Ctd>企业平台自动化管理\u003C\u002Ftd>\n\u003Ctd>可与 SEABRID 后端集成\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr data-line=\"675\">\n\u003Ctd>Terraform\u003C\u002Ftd>\n\u003Ctd>基础设施即代码\u003C\u002Ftd>\n\u003Ctd>变更计划和可重复部署\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003C\u002Ftbody>\n\u003C\u002Ftable>\n\u003Cp data-line=\"677\">重要版本规则：官方文档说明，自 v1.103.0 起，YAML 中声明的部分设置优先于数据库值；模型则可同时由 YAML 和数据库提供。相同模型名的数据库模型可能增加 Deployment，而不是覆盖 YAML 中的模型。需要避免同一配置项由多个来源同时维护。\u003C\u002Fp>\n\u003Cp data-line=\"679\">\u003Cstrong>建议原则：一个资源只设一个主要事实来源（Single Source of Truth）。\u003C\u002Fstrong>\u003C\u002Fp>\n\u003Cp data-line=\"681\">对 SEABRID 的建议：\u003C\u002Fp>\n\u003Cul data-line=\"683\">\n\u003Cli data-line=\"683\">Docker \u002F 网络 \u002F 数据库 \u002F Master Key \u002F 安全设置：由部署配置管理。\u003C\u002Fli>\n\u003Cli data-line=\"684\">Provider 模型、API 凭证、模型路由：由 LiteLLM UI 或 Management API 管理，二者择一作为日常主入口。\u003C\u002Fli>\n\u003Cli data-line=\"685\">企业用户、部门、项目：由 SEABRID 主业务系统管理。\u003C\u002Fli>\n\u003Cli data-line=\"686\">Virtual Key：由 SEABRID 后端通过 Management API 自动创建和回收。\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Ch3 data-line=\"688\" id=\"9.3 UI 与 API 的安全边界\">9.3 UI 与 API 的安全边界\u003C\u002Fh3>\n\u003Cp data-line=\"690\">不要让浏览器直接持有 \u003Ccode>LITELLM_MASTER_KEY\u003C\u002Fcode>。\u003C\u002Fp>\n\u003Cp data-line=\"692\">推荐：\u003C\u002Fp>\n\u003Cp data-line=\"694\" class=\"md-editor-mermaid\" data-mermaid-theme=\"light\" data-closed=\"true\" data-processed=\"\" data-content=\"flowchart LR\n    B[&quot;Vue3 Admin UI&quot;]\n    S[&quot;SEABRID LLM Admin Service&quot;]\n    IAM[&quot;SEABRID IAM \u002F JWT&quot;]\n    L[&quot;LiteLLM Management API&quot;]\n    DB[(&quot;LiteLLM PostgreSQL&quot;)]\n\n    B --&gt;|&quot;JWT&quot;| S\n    S &lt;--&gt; IAM\n    S --&gt;|&quot;Master Key \u002F Service Credential&quot;| L\n    L --&gt; DB\">\u003Csvg id=\"mx9uneyreqvvgwm3au\" width=\"100%\" xmlns=\"http:\u002F\u002Fwww.w3.org\u002F2000\u002Fsvg\" xmlns:xlink=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxlink\" class=\"flowchart\" style=\"max-width: 1207.3021240234375px;\" viewBox=\"0 0 1207.3021240234375 187.21585083007812\" role=\"graphics-document document\" aria-roledescription=\"flowchart-v2\">\u003Cstyle>#mx9uneyreqvvgwm3au{font-family:\"trebuchet ms\",verdana,arial,sans-serif;font-size:16px;fill:#333;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#mx9uneyreqvvgwm3au .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#mx9uneyreqvvgwm3au .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#mx9uneyreqvvgwm3au .error-icon{fill:#552222;}#mx9uneyreqvvgwm3au .error-text{fill:#552222;stroke:#552222;}#mx9uneyreqvvgwm3au .edge-thickness-normal{stroke-width:1px;}#mx9uneyreqvvgwm3au .edge-thickness-thick{stroke-width:3.5px;}#mx9uneyreqvvgwm3au .edge-pattern-solid{stroke-dasharray:0;}#mx9uneyreqvvgwm3au .edge-thickness-invisible{stroke-width:0;fill:none;}#mx9uneyreqvvgwm3au .edge-pattern-dashed{stroke-dasharray:3;}#mx9uneyreqvvgwm3au .edge-pattern-dotted{stroke-dasharray:2;}#mx9uneyreqvvgwm3au .marker{fill:#333333;stroke:#333333;}#mx9uneyreqvvgwm3au .marker.cross{stroke:#333333;}#mx9uneyreqvvgwm3au svg{font-family:\"trebuchet ms\",verdana,arial,sans-serif;font-size:16px;}#mx9uneyreqvvgwm3au p{margin:0;}#mx9uneyreqvvgwm3au .label{font-family:\"trebuchet ms\",verdana,arial,sans-serif;color:#333;}#mx9uneyreqvvgwm3au .cluster-label text{fill:#333;}#mx9uneyreqvvgwm3au .cluster-label span{color:#333;}#mx9uneyreqvvgwm3au .cluster-label span p{background-color:transparent;}#mx9uneyreqvvgwm3au .label text,#mx9uneyreqvvgwm3au span{fill:#333;color:#333;}#mx9uneyreqvvgwm3au .node rect,#mx9uneyreqvvgwm3au .node circle,#mx9uneyreqvvgwm3au .node ellipse,#mx9uneyreqvvgwm3au .node polygon,#mx9uneyreqvvgwm3au .node path{fill:#ECECFF;stroke:#9370DB;stroke-width:1px;}#mx9uneyreqvvgwm3au .rough-node .label text,#mx9uneyreqvvgwm3au .node .label text,#mx9uneyreqvvgwm3au .image-shape .label,#mx9uneyreqvvgwm3au .icon-shape .label{text-anchor:middle;}#mx9uneyreqvvgwm3au .node .katex path{fill:#000;stroke:#000;stroke-width:1px;}#mx9uneyreqvvgwm3au .rough-node .label,#mx9uneyreqvvgwm3au .node .label,#mx9uneyreqvvgwm3au .image-shape .label,#mx9uneyreqvvgwm3au .icon-shape .label{text-align:center;}#mx9uneyreqvvgwm3au .node.clickable{cursor:pointer;}#mx9uneyreqvvgwm3au .root .anchor path{fill:#333333!important;stroke-width:0;stroke:#333333;}#mx9uneyreqvvgwm3au .arrowheadPath{fill:#333333;}#mx9uneyreqvvgwm3au .edgePath .path{stroke:#333333;stroke-width:2.0px;}#mx9uneyreqvvgwm3au .flowchart-link{stroke:#333333;fill:none;}#mx9uneyreqvvgwm3au .edgeLabel{background-color:rgba(232,232,232, 0.8);text-align:center;}#mx9uneyreqvvgwm3au .edgeLabel p{background-color:rgba(232,232,232, 0.8);}#mx9uneyreqvvgwm3au .edgeLabel rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mx9uneyreqvvgwm3au .labelBkg{background-color:rgba(232, 232, 232, 0.5);}#mx9uneyreqvvgwm3au .cluster rect{fill:#ffffde;stroke:#aaaa33;stroke-width:1px;}#mx9uneyreqvvgwm3au .cluster text{fill:#333;}#mx9uneyreqvvgwm3au .cluster span{color:#333;}#mx9uneyreqvvgwm3au div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:\"trebuchet ms\",verdana,arial,sans-serif;font-size:12px;background:hsl(80, 100%, 96.2745098039%);border:1px solid #aaaa33;border-radius:2px;pointer-events:none;z-index:100;}#mx9uneyreqvvgwm3au .flowchartTitleText{text-anchor:middle;font-size:18px;fill:#333;}#mx9uneyreqvvgwm3au rect.text{fill:none;stroke-width:0;}#mx9uneyreqvvgwm3au .icon-shape,#mx9uneyreqvvgwm3au .image-shape{background-color:rgba(232,232,232, 0.8);text-align:center;}#mx9uneyreqvvgwm3au .icon-shape p,#mx9uneyreqvvgwm3au .image-shape p{background-color:rgba(232,232,232, 0.8);padding:2px;}#mx9uneyreqvvgwm3au .icon-shape rect,#mx9uneyreqvvgwm3au .image-shape rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mx9uneyreqvvgwm3au .label-icon{display:inline-block;height:1em;overflow:visible;vertical-align:-0.125em;}#mx9uneyreqvvgwm3au .node .label-icon path{fill:currentColor;stroke:revert;stroke-width:revert;}#mx9uneyreqvvgwm3au :root{--mermaid-font-family:\"trebuchet ms\",verdana,arial,sans-serif;}\u003C\u002Fstyle>\u003Cg>\u003Cmarker id=\"mx9uneyreqvvgwm3au_flowchart-v2-pointEnd\" class=\"marker flowchart-v2\" viewBox=\"0 0 10 10\" refX=\"5\" refY=\"5\" markerUnits=\"userSpaceOnUse\" markerWidth=\"8\" markerHeight=\"8\" orient=\"auto\">\u003Cpath d=\"M 0 0 L 10 5 L 0 10 z\" class=\"arrowMarkerPath\" style=\"stroke-width: 1; stroke-dasharray: 1, 0;\">\u003C\u002Fpath>\u003C\u002Fmarker>\u003Cmarker id=\"mx9uneyreqvvgwm3au_flowchart-v2-pointStart\" class=\"marker flowchart-v2\" viewBox=\"0 0 10 10\" refX=\"4.5\" refY=\"5\" markerUnits=\"userSpaceOnUse\" markerWidth=\"8\" markerHeight=\"8\" orient=\"auto\">\u003Cpath d=\"M 0 5 L 10 10 L 10 0 z\" class=\"arrowMarkerPath\" style=\"stroke-width: 1; stroke-dasharray: 1, 0;\">\u003C\u002Fpath>\u003C\u002Fmarker>\u003Cmarker id=\"mx9uneyreqvvgwm3au_flowchart-v2-circleEnd\" class=\"marker flowchart-v2\" viewBox=\"0 0 10 10\" refX=\"11\" refY=\"5\" markerUnits=\"userSpaceOnUse\" markerWidth=\"11\" markerHeight=\"11\" orient=\"auto\">\u003Ccircle cx=\"5\" cy=\"5\" r=\"5\" class=\"arrowMarkerPath\" style=\"stroke-width: 1; stroke-dasharray: 1, 0;\">\u003C\u002Fcircle>\u003C\u002Fmarker>\u003Cmarker id=\"mx9uneyreqvvgwm3au_flowchart-v2-circleStart\" class=\"marker flowchart-v2\" viewBox=\"0 0 10 10\" refX=\"-1\" refY=\"5\" markerUnits=\"userSpaceOnUse\" markerWidth=\"11\" markerHeight=\"11\" orient=\"auto\">\u003Ccircle cx=\"5\" cy=\"5\" r=\"5\" class=\"arrowMarkerPath\" style=\"stroke-width: 1; stroke-dasharray: 1, 0;\">\u003C\u002Fcircle>\u003C\u002Fmarker>\u003Cmarker id=\"mx9uneyreqvvgwm3au_flowchart-v2-crossEnd\" class=\"marker cross flowchart-v2\" viewBox=\"0 0 11 11\" refX=\"12\" refY=\"5.2\" markerUnits=\"userSpaceOnUse\" markerWidth=\"11\" markerHeight=\"11\" orient=\"auto\">\u003Cpath d=\"M 1,1 l 9,9 M 10,1 l -9,9\" class=\"arrowMarkerPath\" style=\"stroke-width: 2; stroke-dasharray: 1, 0;\">\u003C\u002Fpath>\u003C\u002Fmarker>\u003Cmarker id=\"mx9uneyreqvvgwm3au_flowchart-v2-crossStart\" class=\"marker cross flowchart-v2\" viewBox=\"0 0 11 11\" refX=\"-1\" refY=\"5.2\" markerUnits=\"userSpaceOnUse\" markerWidth=\"11\" markerHeight=\"11\" orient=\"auto\">\u003Cpath d=\"M 1,1 l 9,9 M 10,1 l -9,9\" class=\"arrowMarkerPath\" style=\"stroke-width: 2; stroke-dasharray: 1, 0;\">\u003C\u002Fpath>\u003C\u002Fmarker>\u003Cg class=\"root\">\u003Cg class=\"clusters\">\u003C\u002Fg>\u003Cg class=\"edgePaths\">\u003Cpath d=\"M170.75,87L177.463,87C184.175,87,197.601,87,210.359,87C223.118,87,235.21,87,241.256,87L247.302,87\" id=\"L_B_S_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_B_S_0\" data-points=\"W3sieCI6MTcwLjc1LCJ5Ijo4N30seyJ4IjoyMTEuMDI2MDQxOTg0NTU4MSwieSI6ODd9LHsieCI6MjUxLjMwMjA4Mzk2OTExNjIsInkiOjg3fV0=\" marker-end=\"url(#mx9uneyreqvvgwm3au_flowchart-v2-pointEnd)\">\u003C\u002Fpath>\u003Cpath d=\"M511.314,59.882L531.494,55.735C551.675,51.588,592.035,43.294,635.769,39.147C679.503,35,726.611,35,750.165,35L773.719,35\" id=\"L_S_IAM_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_S_IAM_0\" data-points=\"W3sieCI6NTA3LjM5NTgzMzk2OTExNjIsInkiOjYwLjY4Njk0MDQxMzcwNzkzfSx7IngiOjYzMi4zOTU4MzM5NjkxMTYyLCJ5IjozNX0seyJ4Ijo3NzcuNzE4NzQ4MDkyNjUxNCwieSI6MzV9XQ==\" marker-start=\"url(#mx9uneyreqvvgwm3au_flowchart-v2-pointStart)\" marker-end=\"url(#mx9uneyreqvvgwm3au_flowchart-v2-pointEnd)\">\u003C\u002Fpath>\u003Cpath d=\"M507.396,113.313L528.229,117.594C549.063,121.875,590.729,130.438,631.729,134.719C672.729,139,713.063,139,733.229,139L753.396,139\" id=\"L_S_L_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_S_L_0\" data-points=\"W3sieCI6NTA3LjM5NTgzMzk2OTExNjIsInkiOjExMy4zMTMwNTk1ODYyOTIwN30seyJ4Ijo2MzIuMzk1ODMzOTY5MTE2MiwieSI6MTM5fSx7IngiOjc1Ny4zOTU4MzM5NjkxMTYyLCJ5IjoxMzl9XQ==\" marker-end=\"url(#mx9uneyreqvvgwm3au_flowchart-v2-pointEnd)\">\u003C\u002Fpath>\u003Cpath d=\"M995.021,139L999.188,139C1003.354,139,1011.688,139,1019.354,139C1027.021,139,1034.021,139,1037.521,139L1041.021,139\" id=\"L_L_DB_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_L_DB_0\" data-points=\"W3sieCI6OTk1LjAyMDgzMzk2OTExNjIsInkiOjEzOX0seyJ4IjoxMDIwLjAyMDgzMzk2OTExNjIsInkiOjEzOX0seyJ4IjoxMDQ1LjAyMDgzMzk2OTExNjIsInkiOjEzOX1d\" marker-end=\"url(#mx9uneyreqvvgwm3au_flowchart-v2-pointEnd)\">\u003C\u002Fpath>\u003C\u002Fg>\u003Cg class=\"edgeLabels\">\u003Cg class=\"edgeLabel\" transform=\"translate(211.0260419845581, 87)\">\u003Cg class=\"label\" data-id=\"L_B_S_0\" transform=\"translate(-15.276041984558105, -12)\">\u003CforeignObject width=\"30.55208396911621\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"edgeLabel\">\u003Cp>JWT\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"edgeLabel\">\u003Cg class=\"label\" data-id=\"L_S_IAM_0\" transform=\"translate(0, 0)\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"edgeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"edgeLabel\" transform=\"translate(632.3958339691162, 139)\">\u003Cg class=\"label\" data-id=\"L_S_L_0\" transform=\"translate(-100, -24)\">\u003CforeignObject width=\"200\" height=\"48\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" class=\"labelBkg\" style=\"display: table; white-space: break-spaces; line-height: 1.5; max-width: 200px; text-align: center; width: 200px;\">\u003Cspan class=\"edgeLabel\">\u003Cp>Master Key \u002F Service Credential\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"edgeLabel\">\u003Cg class=\"label\" data-id=\"L_L_DB_0\" transform=\"translate(0, 0)\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"edgeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"nodes\">\u003Cg class=\"node default\" id=\"flowchart-B-0\" transform=\"translate(89.375, 87)\">\u003Crect class=\"basic label-container\" style=\"\" x=\"-81.375\" y=\"-27\" width=\"162.75\" height=\"54\">\u003C\u002Frect>\u003Cg class=\"label\" style=\"\" transform=\"translate(-51.375, -12)\">\u003Crect>\u003C\u002Frect>\u003CforeignObject width=\"102.75\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"nodeLabel\">\u003Cp>Vue3 Admin UI\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"node default\" id=\"flowchart-S-1\" transform=\"translate(379.3489589691162, 87)\">\u003Crect class=\"basic label-container\" style=\"\" x=\"-128.046875\" y=\"-27\" width=\"256.09375\" height=\"54\">\u003C\u002Frect>\u003Cg class=\"label\" style=\"\" transform=\"translate(-98.046875, -12)\">\u003Crect>\u003C\u002Frect>\u003CforeignObject width=\"196.09375\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"nodeLabel\">\u003Cp>SEABRID LLM Admin Service\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"node default\" id=\"flowchart-IAM-2\" transform=\"translate(876.2083339691162, 35)\">\u003Crect class=\"basic label-container\" style=\"\" x=\"-98.48958587646484\" y=\"-27\" width=\"196.9791717529297\" height=\"54\">\u003C\u002Frect>\u003Cg class=\"label\" style=\"\" transform=\"translate(-68.48958587646484, -12)\">\u003Crect>\u003C\u002Frect>\u003CforeignObject width=\"136.9791717529297\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"nodeLabel\">\u003Cp>SEABRID IAM \u002F JWT\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"node default\" id=\"flowchart-L-3\" transform=\"translate(876.2083339691162, 139)\">\u003Crect class=\"basic label-container\" style=\"\" x=\"-118.8125\" y=\"-27\" width=\"237.625\" height=\"54\">\u003C\u002Frect>\u003Cg class=\"label\" style=\"\" transform=\"translate(-88.8125, -12)\">\u003Crect>\u003C\u002Frect>\u003CforeignObject width=\"177.625\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"nodeLabel\">\u003Cp>LiteLLM Management API\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"node default\" id=\"flowchart-DB-4\" transform=\"translate(1122.1614589691162, 139)\">\u003Cpath d=\"M0,13.810562828689717 a77.140625,13.810562828689717 0,0,0 154.28125,0 a77.140625,13.810562828689717 0,0,0 -154.28125,0 l0,52.81056282868972 a77.140625,13.810562828689717 0,0,0 154.28125,0 l0,-52.81056282868972\" class=\"basic label-container\" style=\"\" transform=\"translate(-77.140625, -40.215844243034574)\">\u003C\u002Fpath>\u003Cg class=\"label\" style=\"\" transform=\"translate(-69.640625, -2)\">\u003Crect>\u003C\u002Frect>\u003CforeignObject width=\"139.28125\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"nodeLabel\">\u003Cp>LiteLLM PostgreSQL\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003C\u002Fg>\u003C\u002Fg>\u003C\u002Fg>\u003C\u002Fsvg>\u003Cdiv class=\"md-editor-mermaid-action\">\u003Cspan class=\"md-editor-mermaid-copy\">\u003Csvg xmlns=\"http:\u002F\u002Fwww.w3.org\u002F2000\u002Fsvg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"lucide lucide-copy md-editor-icon\">\u003Crect width=\"14\" height=\"14\" x=\"8\" y=\"8\" rx=\"2\" ry=\"2\">\u003C\u002Frect>\u003Cpath d=\"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2\">\u003C\u002Fpath>\u003C\u002Fsvg>\u003C\u002Fspan>\u003Cspan class=\"md-editor-mermaid-zoom\">\u003Csvg xmlns=\"http:\u002F\u002Fwww.w3.org\u002F2000\u002Fsvg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"lucide lucide-pin-off md-editor-icon\">\u003Cpath d=\"M12 17v5\">\u003C\u002Fpath>\u003Cpath d=\"M15 9.34V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H7.89\">\u003C\u002Fpath>\u003Cpath d=\"m2 2 20 20\">\u003C\u002Fpath>\u003Cpath d=\"M9 9v1.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h11\">\u003C\u002Fpath>\u003C\u002Fsvg>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002Fp>\u003Cp data-line=\"708\">后端代理层负责：\u003C\u002Fp>\n\u003Cul data-line=\"710\">\n\u003Cli data-line=\"710\">SEABRID 用户身份和角色校验。\u003C\u002Fli>\n\u003Cli data-line=\"711\">将企业 Tenant \u002F Project \u002F Agent 映射到 LiteLLM 资源。\u003C\u002Fli>\n\u003Cli data-line=\"712\">对管理 API 做白名单代理，禁止任意 URL 转发。\u003C\u002Fli>\n\u003Cli data-line=\"713\">对供应商 API Key 做脱敏和权限控制。\u003C\u002Fli>\n\u003Cli data-line=\"714\">记录企业侧管理审计。\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Chr data-line=\"716\">\n\u003Ch2 data-line=\"718\" id=\"10. Rust 迁移：架构演进而非简单语言替换\">10. Rust 迁移：架构演进而非简单语言替换\u003C\u002Fh2>\n\u003Ch3 data-line=\"720\" id=\"10.1 为什么迁移\">10.1 为什么迁移\u003C\u002Fh3>\n\u003Cp data-line=\"722\">网关是高频请求路径，认证、路由、请求处理和流式转发会持续消耗 CPU 与内存。Rust 可降低高并发执行成本，但 Provider 生态和管理功能仍有大量 Python 代码。\u003C\u002Fp>\n\u003Ch3 data-line=\"724\" id=\"10.2 Rust \u002F Python 双路径\">10.2 Rust \u002F Python 双路径\u003C\u002Fh3>\n\u003Cp data-line=\"726\" class=\"md-editor-mermaid\" data-mermaid-theme=\"light\" data-closed=\"true\" data-processed=\"\" data-content=\"flowchart TD\n    CLIENT[&quot;Client Request&quot;]\n    GATEWAY[&quot;Rust-first Gateway \u002F Dispatch&quot;]\n    CHECK{&quot;该路由、模型、配置和功能是否已被 Rust 路径支持？&quot;}\n    RUST[&quot;Rust Gateway \u002F Router \u002F Translation&quot;]\n    PY[&quot;Python Proxy \u002F SDK Path&quot;]\n    PROVIDER[&quot;Provider API&quot;]\n    RESP[&quot;Response&quot;]\n\n    CLIENT --&gt; GATEWAY --&gt; CHECK\n    CHECK --&gt;|Supported| RUST\n    CHECK --&gt;|Unsupported \u002F Compatibility| PY\n    RUST --&gt; PROVIDER\n    PY --&gt; PROVIDER\n    PROVIDER --&gt; RESP\">\u003Csvg id=\"mx9uhx8606wksx2odhkr\" width=\"100%\" xmlns=\"http:\u002F\u002Fwww.w3.org\u002F2000\u002Fsvg\" xmlns:xlink=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxlink\" class=\"flowchart\" style=\"max-width: 560.1666870117188px;\" viewBox=\"0 0 560.1666870117188 910\" role=\"graphics-document document\" aria-roledescription=\"flowchart-v2\">\u003Cstyle>#mx9uhx8606wksx2odhkr{font-family:\"trebuchet ms\",verdana,arial,sans-serif;font-size:16px;fill:#333;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#mx9uhx8606wksx2odhkr .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#mx9uhx8606wksx2odhkr .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#mx9uhx8606wksx2odhkr .error-icon{fill:#552222;}#mx9uhx8606wksx2odhkr .error-text{fill:#552222;stroke:#552222;}#mx9uhx8606wksx2odhkr .edge-thickness-normal{stroke-width:1px;}#mx9uhx8606wksx2odhkr .edge-thickness-thick{stroke-width:3.5px;}#mx9uhx8606wksx2odhkr .edge-pattern-solid{stroke-dasharray:0;}#mx9uhx8606wksx2odhkr .edge-thickness-invisible{stroke-width:0;fill:none;}#mx9uhx8606wksx2odhkr .edge-pattern-dashed{stroke-dasharray:3;}#mx9uhx8606wksx2odhkr .edge-pattern-dotted{stroke-dasharray:2;}#mx9uhx8606wksx2odhkr .marker{fill:#333333;stroke:#333333;}#mx9uhx8606wksx2odhkr .marker.cross{stroke:#333333;}#mx9uhx8606wksx2odhkr svg{font-family:\"trebuchet ms\",verdana,arial,sans-serif;font-size:16px;}#mx9uhx8606wksx2odhkr p{margin:0;}#mx9uhx8606wksx2odhkr .label{font-family:\"trebuchet ms\",verdana,arial,sans-serif;color:#333;}#mx9uhx8606wksx2odhkr .cluster-label text{fill:#333;}#mx9uhx8606wksx2odhkr .cluster-label span{color:#333;}#mx9uhx8606wksx2odhkr .cluster-label span p{background-color:transparent;}#mx9uhx8606wksx2odhkr .label text,#mx9uhx8606wksx2odhkr span{fill:#333;color:#333;}#mx9uhx8606wksx2odhkr .node rect,#mx9uhx8606wksx2odhkr .node circle,#mx9uhx8606wksx2odhkr .node ellipse,#mx9uhx8606wksx2odhkr .node polygon,#mx9uhx8606wksx2odhkr .node path{fill:#ECECFF;stroke:#9370DB;stroke-width:1px;}#mx9uhx8606wksx2odhkr .rough-node .label text,#mx9uhx8606wksx2odhkr .node .label text,#mx9uhx8606wksx2odhkr .image-shape .label,#mx9uhx8606wksx2odhkr .icon-shape .label{text-anchor:middle;}#mx9uhx8606wksx2odhkr .node .katex path{fill:#000;stroke:#000;stroke-width:1px;}#mx9uhx8606wksx2odhkr .rough-node .label,#mx9uhx8606wksx2odhkr .node .label,#mx9uhx8606wksx2odhkr .image-shape .label,#mx9uhx8606wksx2odhkr .icon-shape .label{text-align:center;}#mx9uhx8606wksx2odhkr .node.clickable{cursor:pointer;}#mx9uhx8606wksx2odhkr .root .anchor path{fill:#333333!important;stroke-width:0;stroke:#333333;}#mx9uhx8606wksx2odhkr .arrowheadPath{fill:#333333;}#mx9uhx8606wksx2odhkr .edgePath .path{stroke:#333333;stroke-width:2.0px;}#mx9uhx8606wksx2odhkr .flowchart-link{stroke:#333333;fill:none;}#mx9uhx8606wksx2odhkr .edgeLabel{background-color:rgba(232,232,232, 0.8);text-align:center;}#mx9uhx8606wksx2odhkr .edgeLabel p{background-color:rgba(232,232,232, 0.8);}#mx9uhx8606wksx2odhkr .edgeLabel rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mx9uhx8606wksx2odhkr .labelBkg{background-color:rgba(232, 232, 232, 0.5);}#mx9uhx8606wksx2odhkr .cluster rect{fill:#ffffde;stroke:#aaaa33;stroke-width:1px;}#mx9uhx8606wksx2odhkr .cluster text{fill:#333;}#mx9uhx8606wksx2odhkr .cluster span{color:#333;}#mx9uhx8606wksx2odhkr div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:\"trebuchet ms\",verdana,arial,sans-serif;font-size:12px;background:hsl(80, 100%, 96.2745098039%);border:1px solid #aaaa33;border-radius:2px;pointer-events:none;z-index:100;}#mx9uhx8606wksx2odhkr .flowchartTitleText{text-anchor:middle;font-size:18px;fill:#333;}#mx9uhx8606wksx2odhkr rect.text{fill:none;stroke-width:0;}#mx9uhx8606wksx2odhkr .icon-shape,#mx9uhx8606wksx2odhkr .image-shape{background-color:rgba(232,232,232, 0.8);text-align:center;}#mx9uhx8606wksx2odhkr .icon-shape p,#mx9uhx8606wksx2odhkr .image-shape p{background-color:rgba(232,232,232, 0.8);padding:2px;}#mx9uhx8606wksx2odhkr .icon-shape rect,#mx9uhx8606wksx2odhkr .image-shape rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mx9uhx8606wksx2odhkr .label-icon{display:inline-block;height:1em;overflow:visible;vertical-align:-0.125em;}#mx9uhx8606wksx2odhkr .node .label-icon path{fill:currentColor;stroke:revert;stroke-width:revert;}#mx9uhx8606wksx2odhkr :root{--mermaid-font-family:\"trebuchet ms\",verdana,arial,sans-serif;}\u003C\u002Fstyle>\u003Cg>\u003Cmarker id=\"mx9uhx8606wksx2odhkr_flowchart-v2-pointEnd\" class=\"marker flowchart-v2\" viewBox=\"0 0 10 10\" refX=\"5\" refY=\"5\" markerUnits=\"userSpaceOnUse\" markerWidth=\"8\" markerHeight=\"8\" orient=\"auto\">\u003Cpath d=\"M 0 0 L 10 5 L 0 10 z\" class=\"arrowMarkerPath\" style=\"stroke-width: 1; stroke-dasharray: 1, 0;\">\u003C\u002Fpath>\u003C\u002Fmarker>\u003Cmarker id=\"mx9uhx8606wksx2odhkr_flowchart-v2-pointStart\" class=\"marker flowchart-v2\" viewBox=\"0 0 10 10\" refX=\"4.5\" refY=\"5\" markerUnits=\"userSpaceOnUse\" markerWidth=\"8\" markerHeight=\"8\" orient=\"auto\">\u003Cpath d=\"M 0 5 L 10 10 L 10 0 z\" class=\"arrowMarkerPath\" style=\"stroke-width: 1; stroke-dasharray: 1, 0;\">\u003C\u002Fpath>\u003C\u002Fmarker>\u003Cmarker id=\"mx9uhx8606wksx2odhkr_flowchart-v2-circleEnd\" class=\"marker flowchart-v2\" viewBox=\"0 0 10 10\" refX=\"11\" refY=\"5\" markerUnits=\"userSpaceOnUse\" markerWidth=\"11\" markerHeight=\"11\" orient=\"auto\">\u003Ccircle cx=\"5\" cy=\"5\" r=\"5\" class=\"arrowMarkerPath\" style=\"stroke-width: 1; stroke-dasharray: 1, 0;\">\u003C\u002Fcircle>\u003C\u002Fmarker>\u003Cmarker id=\"mx9uhx8606wksx2odhkr_flowchart-v2-circleStart\" class=\"marker flowchart-v2\" viewBox=\"0 0 10 10\" refX=\"-1\" refY=\"5\" markerUnits=\"userSpaceOnUse\" markerWidth=\"11\" markerHeight=\"11\" orient=\"auto\">\u003Ccircle cx=\"5\" cy=\"5\" r=\"5\" class=\"arrowMarkerPath\" style=\"stroke-width: 1; stroke-dasharray: 1, 0;\">\u003C\u002Fcircle>\u003C\u002Fmarker>\u003Cmarker id=\"mx9uhx8606wksx2odhkr_flowchart-v2-crossEnd\" class=\"marker cross flowchart-v2\" viewBox=\"0 0 11 11\" refX=\"12\" refY=\"5.2\" markerUnits=\"userSpaceOnUse\" markerWidth=\"11\" markerHeight=\"11\" orient=\"auto\">\u003Cpath d=\"M 1,1 l 9,9 M 10,1 l -9,9\" class=\"arrowMarkerPath\" style=\"stroke-width: 2; stroke-dasharray: 1, 0;\">\u003C\u002Fpath>\u003C\u002Fmarker>\u003Cmarker id=\"mx9uhx8606wksx2odhkr_flowchart-v2-crossStart\" class=\"marker cross flowchart-v2\" viewBox=\"0 0 11 11\" refX=\"-1\" refY=\"5.2\" markerUnits=\"userSpaceOnUse\" markerWidth=\"11\" markerHeight=\"11\" orient=\"auto\">\u003Cpath d=\"M 1,1 l 9,9 M 10,1 l -9,9\" class=\"arrowMarkerPath\" style=\"stroke-width: 2; stroke-dasharray: 1, 0;\">\u003C\u002Fpath>\u003C\u002Fmarker>\u003Cg class=\"root\">\u003Cg class=\"clusters\">\u003C\u002Fg>\u003Cg class=\"edgePaths\">\u003Cpath d=\"M286.542,62L286.542,66.167C286.542,70.333,286.542,78.667,286.542,86.333C286.542,94,286.542,101,286.542,104.5L286.542,108\" id=\"L_CLIENT_GATEWAY_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_CLIENT_GATEWAY_0\" data-points=\"W3sieCI6Mjg2LjU0MTY2NzkzODIzMjQsInkiOjYyfSx7IngiOjI4Ni41NDE2Njc5MzgyMzI0LCJ5Ijo4N30seyJ4IjoyODYuNTQxNjY3OTM4MjMyNCwieSI6MTEyfV0=\" marker-end=\"url(#mx9uhx8606wksx2odhkr_flowchart-v2-pointEnd)\">\u003C\u002Fpath>\u003Cpath d=\"M286.542,190L286.542,194.167C286.542,198.333,286.542,206.667,286.542,214.333C286.542,222,286.542,229,286.542,232.5L286.542,236\" id=\"L_GATEWAY_CHECK_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_GATEWAY_CHECK_0\" data-points=\"W3sieCI6Mjg2LjU0MTY2NzkzODIzMjQsInkiOjE5MH0seyJ4IjoyODYuNTQxNjY3OTM4MjMyNCwieSI6MjE1fSx7IngiOjI4Ni41NDE2Njc5MzgyMzI0LCJ5IjoyNDB9XQ==\" marker-end=\"url(#mx9uhx8606wksx2odhkr_flowchart-v2-pointEnd)\">\u003C\u002Fpath>\u003Cpath d=\"M225.19,456.649L210.659,475.041C196.127,493.432,167.063,530.216,152.532,556.108C138,582,138,597,138,604.5L138,612\" id=\"L_CHECK_RUST_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_CHECK_RUST_0\" data-points=\"W3sieCI6MjI1LjE5MDI5OTU2MjY0MTQ2LCJ5Ijo0NTYuNjQ4NjMxNjI0NDA5MDZ9LHsieCI6MTM4LCJ5Ijo1Njd9LHsieCI6MTM4LCJ5Ijo2MTZ9XQ==\" marker-end=\"url(#mx9uhx8606wksx2odhkr_flowchart-v2-pointEnd)\">\u003C\u002Fpath>\u003Cpath d=\"M347.893,456.649L362.425,475.041C376.956,493.432,406.02,530.216,420.552,558.108C435.083,586,435.083,605,435.083,614.5L435.083,624\" id=\"L_CHECK_PY_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_CHECK_PY_0\" data-points=\"W3sieCI6MzQ3Ljg5MzAzNjMxMzgyMzM2LCJ5Ijo0NTYuNjQ4NjMxNjI0NDA5MDZ9LHsieCI6NDM1LjA4MzMzNTg3NjQ2NDg0LCJ5Ijo1Njd9LHsieCI6NDM1LjA4MzMzNTg3NjQ2NDg0LCJ5Ijo2Mjh9XQ==\" marker-end=\"url(#mx9uhx8606wksx2odhkr_flowchart-v2-pointEnd)\">\u003C\u002Fpath>\u003Cpath d=\"M138,694L138,698.167C138,702.333,138,710.667,149.962,719.021C161.924,727.375,185.848,735.75,197.81,739.938L209.772,744.125\" id=\"L_RUST_PROVIDER_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_RUST_PROVIDER_0\" data-points=\"W3sieCI6MTM4LCJ5Ijo2OTR9LHsieCI6MTM4LCJ5Ijo3MTl9LHsieCI6MjEzLjU0Njg3ODgxNDY5NzI3LCJ5Ijo3NDUuNDQ2NzA1MTc2MzQwMn1d\" marker-end=\"url(#mx9uhx8606wksx2odhkr_flowchart-v2-pointEnd)\">\u003C\u002Fpath>\u003Cpath d=\"M435.083,682L435.083,688.167C435.083,694.333,435.083,706.667,423.121,717.021C411.159,727.375,387.236,735.75,375.274,739.938L363.312,744.125\" id=\"L_PY_PROVIDER_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_PY_PROVIDER_0\" data-points=\"W3sieCI6NDM1LjA4MzMzNTg3NjQ2NDg0LCJ5Ijo2ODJ9LHsieCI6NDM1LjA4MzMzNTg3NjQ2NDg0LCJ5Ijo3MTl9LHsieCI6MzU5LjUzNjQ1NzA2MTc2NzYsInkiOjc0NS40NDY3MDUxNzYzNDAyfV0=\" marker-end=\"url(#mx9uhx8606wksx2odhkr_flowchart-v2-pointEnd)\">\u003C\u002Fpath>\u003Cpath d=\"M286.542,798L286.542,802.167C286.542,806.333,286.542,814.667,286.542,822.333C286.542,830,286.542,837,286.542,840.5L286.542,844\" id=\"L_PROVIDER_RESP_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_PROVIDER_RESP_0\" data-points=\"W3sieCI6Mjg2LjU0MTY2NzkzODIzMjQsInkiOjc5OH0seyJ4IjoyODYuNTQxNjY3OTM4MjMyNCwieSI6ODIzfSx7IngiOjI4Ni41NDE2Njc5MzgyMzI0LCJ5Ijo4NDh9XQ==\" marker-end=\"url(#mx9uhx8606wksx2odhkr_flowchart-v2-pointEnd)\">\u003C\u002Fpath>\u003C\u002Fg>\u003Cg class=\"edgeLabels\">\u003Cg class=\"edgeLabel\">\u003Cg class=\"label\" data-id=\"L_CLIENT_GATEWAY_0\" transform=\"translate(0, 0)\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"edgeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"edgeLabel\">\u003Cg class=\"label\" data-id=\"L_GATEWAY_CHECK_0\" transform=\"translate(0, 0)\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"edgeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"edgeLabel\" transform=\"translate(138, 567)\">\u003Cg class=\"label\" data-id=\"L_CHECK_RUST_0\" transform=\"translate(-36.53125, -12)\">\u003CforeignObject width=\"73.0625\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"edgeLabel\">\u003Cp>Supported\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"edgeLabel\" transform=\"translate(435.08333587646484, 567)\">\u003Cg class=\"label\" data-id=\"L_CHECK_PY_0\" transform=\"translate(-100, -24)\">\u003CforeignObject width=\"200\" height=\"48\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" class=\"labelBkg\" style=\"display: table; white-space: break-spaces; line-height: 1.5; max-width: 200px; text-align: center; width: 200px;\">\u003Cspan class=\"edgeLabel\">\u003Cp>Unsupported \u002F Compatibility\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"edgeLabel\">\u003Cg class=\"label\" data-id=\"L_RUST_PROVIDER_0\" transform=\"translate(0, 0)\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"edgeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"edgeLabel\">\u003Cg class=\"label\" data-id=\"L_PY_PROVIDER_0\" transform=\"translate(0, 0)\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"edgeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"edgeLabel\">\u003Cg class=\"label\" data-id=\"L_PROVIDER_RESP_0\" transform=\"translate(0, 0)\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"edgeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"nodes\">\u003Cg class=\"node default\" id=\"flowchart-CLIENT-0\" transform=\"translate(286.5416679382324, 35)\">\u003Crect class=\"basic label-container\" style=\"\" x=\"-82.04166793823242\" y=\"-27\" width=\"164.08333587646484\" height=\"54\">\u003C\u002Frect>\u003Cg class=\"label\" style=\"\" transform=\"translate(-52.04166793823242, -12)\">\u003Crect>\u003C\u002Frect>\u003CforeignObject width=\"104.08333587646484\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"nodeLabel\">\u003Cp>Client Request\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"node default\" id=\"flowchart-GATEWAY-1\" transform=\"translate(286.5416679382324, 151)\">\u003Crect class=\"basic label-container\" style=\"\" x=\"-130\" y=\"-39\" width=\"260\" height=\"78\">\u003C\u002Frect>\u003Cg class=\"label\" style=\"\" transform=\"translate(-100, -24)\">\u003Crect>\u003C\u002Frect>\u003CforeignObject width=\"200\" height=\"48\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table; white-space: break-spaces; line-height: 1.5; max-width: 200px; text-align: center; width: 200px;\">\u003Cspan class=\"nodeLabel\">\u003Cp>Rust-first Gateway \u002F Dispatch\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"node default\" id=\"flowchart-CHECK-2\" transform=\"translate(286.5416679382324, 379)\">\u003Cpolygon points=\"139,0 278,-139 139,-278 0,-139\" class=\"label-container\" transform=\"translate(-138.5, 139)\">\u003C\u002Fpolygon>\u003Cg class=\"label\" style=\"\" transform=\"translate(-100, -24)\">\u003Crect>\u003C\u002Frect>\u003CforeignObject width=\"200\" height=\"48\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table; white-space: break-spaces; line-height: 1.5; max-width: 200px; text-align: center; width: 200px;\">\u003Cspan class=\"nodeLabel\">\u003Cp>该路由、模型、配置和功能是否已被 Rust 路径支持？\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"node default\" id=\"flowchart-RUST-3\" transform=\"translate(138, 655)\">\u003Crect class=\"basic label-container\" style=\"\" x=\"-130\" y=\"-39\" width=\"260\" height=\"78\">\u003C\u002Frect>\u003Cg class=\"label\" style=\"\" transform=\"translate(-100, -24)\">\u003Crect>\u003C\u002Frect>\u003CforeignObject width=\"200\" height=\"48\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table; white-space: break-spaces; line-height: 1.5; max-width: 200px; text-align: center; width: 200px;\">\u003Cspan class=\"nodeLabel\">\u003Cp>Rust Gateway \u002F Router \u002F Translation\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"node default\" id=\"flowchart-PY-4\" transform=\"translate(435.08333587646484, 655)\">\u003Crect class=\"basic label-container\" style=\"\" x=\"-117.08333587646484\" y=\"-27\" width=\"234.1666717529297\" height=\"54\">\u003C\u002Frect>\u003Cg class=\"label\" style=\"\" transform=\"translate(-87.08333587646484, -12)\">\u003Crect>\u003C\u002Frect>\u003CforeignObject width=\"174.1666717529297\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"nodeLabel\">\u003Cp>Python Proxy \u002F SDK Path\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"node default\" id=\"flowchart-PROVIDER-5\" transform=\"translate(286.5416679382324, 771)\">\u003Crect class=\"basic label-container\" style=\"\" x=\"-72.99479293823242\" y=\"-27\" width=\"145.98958587646484\" height=\"54\">\u003C\u002Frect>\u003Cg class=\"label\" style=\"\" transform=\"translate(-42.99479293823242, -12)\">\u003Crect>\u003C\u002Frect>\u003CforeignObject width=\"85.98958587646484\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"nodeLabel\">\u003Cp>Provider API\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"node default\" id=\"flowchart-RESP-6\" transform=\"translate(286.5416679382324, 875)\">\u003Crect class=\"basic label-container\" style=\"\" x=\"-62.65625\" y=\"-27\" width=\"125.3125\" height=\"54\">\u003C\u002Frect>\u003Cg class=\"label\" style=\"\" transform=\"translate(-32.65625, -12)\">\u003Crect>\u003C\u002Frect>\u003CforeignObject width=\"65.3125\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"nodeLabel\">\u003Cp>Response\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003C\u002Fg>\u003C\u002Fg>\u003C\u002Fg>\u003C\u002Fsvg>\u003Cdiv class=\"md-editor-mermaid-action\">\u003Cspan class=\"md-editor-mermaid-copy\">\u003Csvg xmlns=\"http:\u002F\u002Fwww.w3.org\u002F2000\u002Fsvg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"lucide lucide-copy md-editor-icon\">\u003Crect width=\"14\" height=\"14\" x=\"8\" y=\"8\" rx=\"2\" ry=\"2\">\u003C\u002Frect>\u003Cpath d=\"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2\">\u003C\u002Fpath>\u003C\u002Fsvg>\u003C\u002Fspan>\u003Cspan class=\"md-editor-mermaid-zoom\">\u003Csvg xmlns=\"http:\u002F\u002Fwww.w3.org\u002F2000\u002Fsvg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"lucide lucide-pin-off md-editor-icon\">\u003Cpath d=\"M12 17v5\">\u003C\u002Fpath>\u003Cpath d=\"M15 9.34V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H7.89\">\u003C\u002Fpath>\u003Cpath d=\"m2 2 20 20\">\u003C\u002Fpath>\u003Cpath d=\"M9 9v1.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h11\">\u003C\u002Fpath>\u003C\u002Fsvg>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002Fp>\u003Cp data-line=\"744\">启用 Rust-first 的具体环境变量、支持矩阵和行为应以目标发布版本的 Rust Migration 文档为准。官方迁移说明指出，Rust 路径只处理已支持的请求；其他请求会转给 Python 路径，并可通过响应 Header 识别执行路径。\u003C\u002Fp>\n\u003Ch3 data-line=\"746\" id=\"10.3 阅读 Rust 源码的关键位置\">10.3 阅读 Rust 源码的关键位置\u003C\u002Fh3>\n\u003Cul data-line=\"748\">\n\u003Cli data-line=\"748\">\u003Ccode>litellm\u002Frust\u002F\u003C\u002Fcode>：Rust workspace。\u003C\u002Fli>\n\u003Cli data-line=\"749\">\u003Ccode>litellm\u002Frust\u002Fcrates\u002Frouter-core\u002F\u003C\u002Fcode>：Router Core 的边界和设计。\u003C\u002Fli>\n\u003Cli data-line=\"750\">\u003Ccode>litellm\u002Frouter_core.py\u003C\u002Fcode>：Python 与 Router Core 的接入边界。\u003C\u002Fli>\n\u003Cli data-line=\"751\">\u003Ccode>litellm\u002Frouter_host.py\u003C\u002Fcode> \u002F \u003Ccode>litellm\u002Frouter_python_host.py\u003C\u002Fcode>：Host 抽象和 Python Host。\u003C\u002Fli>\n\u003Cli data-line=\"752\">\u003Ccode>litellm\u002Fruntime\u002Fgateway\u002F\u003C\u002Fcode>：Gateway Runtime。\u003C\u002Fli>\n\u003Cli data-line=\"753\">\u003Ccode>litellm\u002Frust_bridge\u002F\u003C\u002Fcode>：Python 与 Rust 间的桥接和分发。\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Ch3 data-line=\"755\" id=\"10.4 迁移风险与判断\">10.4 迁移风险与判断\u003C\u002Fh3>\n\u003Ctable data-line=\"757\">\n\u003Cthead data-line=\"757\">\n\u003Ctr data-line=\"757\">\n\u003Cth>方面\u003C\u002Fth>\n\u003Cth>收益\u003C\u002Fth>\n\u003Cth>风险\u002F约束\u003C\u002Fth>\n\u003C\u002Ftr>\n\u003C\u002Fthead>\n\u003Ctbody data-line=\"759\">\n\u003Ctr data-line=\"759\">\n\u003Ctd>性能\u003C\u002Ftd>\n\u003Ctd>降低网关执行开销\u003C\u002Ftd>\n\u003Ctd>不能只看微基准，必须测完整业务链路\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr data-line=\"760\">\n\u003Ctd>内存\u003C\u002Ftd>\n\u003Ctd>可能降低常驻内存\u003C\u002Ftd>\n\u003Ctd>Python 依赖仍需保留\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr data-line=\"761\">\n\u003Ctd>兼容性\u003C\u002Ftd>\n\u003Ctd>逐步迁移，保留 Python 回退\u003C\u002Ftd>\n\u003Ctd>配置可能使请求回退到 Python\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr data-line=\"762\">\n\u003Ctd>可维护性\u003C\u002Ftd>\n\u003Ctd>核心契约更明确\u003C\u002Ftd>\n\u003Ctd>双语言调试和构建复杂度上升\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr data-line=\"763\">\n\u003Ctd>扩展性\u003C\u002Ftd>\n\u003Ctd>Host \u002F Core 边界可扩展\u003C\u002Ftd>\n\u003Ctd>自定义 Python Hook 需要桥接契约\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003C\u002Ftbody>\n\u003C\u002Ftable>\n\u003Cp data-line=\"765\">\u003Cstrong>技术分享时要强调：Rust Migration 是渐进式迁移，不能说“LiteLLM 已经完全由 Rust 实现”。\u003C\u002Fstrong>\u003C\u002Fp>\n\u003Chr data-line=\"767\">\n\u003Ch2 data-line=\"769\" id=\"11. 部署架构：单体与组件化\">11. 部署架构：单体与组件化\u003C\u002Fh2>\n\u003Ch3 data-line=\"771\" id=\"11.1 传统单体 Proxy\">11.1 传统单体 Proxy\u003C\u002Fh3>\n\u003Cp data-line=\"773\" class=\"md-editor-mermaid\" data-mermaid-theme=\"light\" data-closed=\"true\" data-processed=\"\" data-content=\"flowchart TB\n    IN[&quot;Ingress&quot;]\n    APP[&quot;LiteLLM Proxy 单实例 \u002F 多副本&quot;]\n    subgraph SAME[&quot;同一运行单元&quot;]\n      DP[&quot;模型推理 API&quot;]\n      CP[&quot;Management API \u002F UI API&quot;]\n      JOB[&quot;Spend \u002F Background Jobs&quot;]\n    end\n    PG[(&quot;PostgreSQL&quot;)]\n    REDIS[(&quot;Redis&quot;)]\n    PROVIDER[&quot;LLM Providers&quot;]\n    IN --&gt; APP\n    APP --&gt; DP\n    APP --&gt; CP\n    APP --&gt; JOB\n    DP --&gt; PROVIDER\n    DP --&gt; PG\n    CP --&gt; PG\n    JOB --&gt; PG\n    APP &lt;--&gt; REDIS\">\u003Csvg id=\"mx9uhx8639lvd06s1ps\" width=\"100%\" xmlns=\"http:\u002F\u002Fwww.w3.org\u002F2000\u002Fsvg\" xmlns:xlink=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxlink\" class=\"flowchart\" style=\"max-width: 905.8776245117188px;\" viewBox=\"0 0 905.8776245117188 480.348388671875\" role=\"graphics-document document\" aria-roledescription=\"flowchart-v2\">\u003Cstyle>#mx9uhx8639lvd06s1ps{font-family:\"trebuchet ms\",verdana,arial,sans-serif;font-size:16px;fill:#333;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#mx9uhx8639lvd06s1ps .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#mx9uhx8639lvd06s1ps .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#mx9uhx8639lvd06s1ps .error-icon{fill:#552222;}#mx9uhx8639lvd06s1ps .error-text{fill:#552222;stroke:#552222;}#mx9uhx8639lvd06s1ps .edge-thickness-normal{stroke-width:1px;}#mx9uhx8639lvd06s1ps .edge-thickness-thick{stroke-width:3.5px;}#mx9uhx8639lvd06s1ps .edge-pattern-solid{stroke-dasharray:0;}#mx9uhx8639lvd06s1ps .edge-thickness-invisible{stroke-width:0;fill:none;}#mx9uhx8639lvd06s1ps .edge-pattern-dashed{stroke-dasharray:3;}#mx9uhx8639lvd06s1ps .edge-pattern-dotted{stroke-dasharray:2;}#mx9uhx8639lvd06s1ps .marker{fill:#333333;stroke:#333333;}#mx9uhx8639lvd06s1ps .marker.cross{stroke:#333333;}#mx9uhx8639lvd06s1ps svg{font-family:\"trebuchet ms\",verdana,arial,sans-serif;font-size:16px;}#mx9uhx8639lvd06s1ps p{margin:0;}#mx9uhx8639lvd06s1ps .label{font-family:\"trebuchet ms\",verdana,arial,sans-serif;color:#333;}#mx9uhx8639lvd06s1ps .cluster-label text{fill:#333;}#mx9uhx8639lvd06s1ps .cluster-label span{color:#333;}#mx9uhx8639lvd06s1ps .cluster-label span p{background-color:transparent;}#mx9uhx8639lvd06s1ps .label text,#mx9uhx8639lvd06s1ps span{fill:#333;color:#333;}#mx9uhx8639lvd06s1ps .node rect,#mx9uhx8639lvd06s1ps .node circle,#mx9uhx8639lvd06s1ps .node ellipse,#mx9uhx8639lvd06s1ps .node polygon,#mx9uhx8639lvd06s1ps .node path{fill:#ECECFF;stroke:#9370DB;stroke-width:1px;}#mx9uhx8639lvd06s1ps .rough-node .label text,#mx9uhx8639lvd06s1ps .node .label text,#mx9uhx8639lvd06s1ps .image-shape .label,#mx9uhx8639lvd06s1ps .icon-shape .label{text-anchor:middle;}#mx9uhx8639lvd06s1ps .node .katex path{fill:#000;stroke:#000;stroke-width:1px;}#mx9uhx8639lvd06s1ps .rough-node .label,#mx9uhx8639lvd06s1ps .node .label,#mx9uhx8639lvd06s1ps .image-shape .label,#mx9uhx8639lvd06s1ps .icon-shape .label{text-align:center;}#mx9uhx8639lvd06s1ps .node.clickable{cursor:pointer;}#mx9uhx8639lvd06s1ps .root .anchor path{fill:#333333!important;stroke-width:0;stroke:#333333;}#mx9uhx8639lvd06s1ps .arrowheadPath{fill:#333333;}#mx9uhx8639lvd06s1ps .edgePath .path{stroke:#333333;stroke-width:2.0px;}#mx9uhx8639lvd06s1ps .flowchart-link{stroke:#333333;fill:none;}#mx9uhx8639lvd06s1ps .edgeLabel{background-color:rgba(232,232,232, 0.8);text-align:center;}#mx9uhx8639lvd06s1ps .edgeLabel p{background-color:rgba(232,232,232, 0.8);}#mx9uhx8639lvd06s1ps .edgeLabel rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mx9uhx8639lvd06s1ps .labelBkg{background-color:rgba(232, 232, 232, 0.5);}#mx9uhx8639lvd06s1ps .cluster rect{fill:#ffffde;stroke:#aaaa33;stroke-width:1px;}#mx9uhx8639lvd06s1ps .cluster text{fill:#333;}#mx9uhx8639lvd06s1ps .cluster span{color:#333;}#mx9uhx8639lvd06s1ps div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:\"trebuchet ms\",verdana,arial,sans-serif;font-size:12px;background:hsl(80, 100%, 96.2745098039%);border:1px solid #aaaa33;border-radius:2px;pointer-events:none;z-index:100;}#mx9uhx8639lvd06s1ps .flowchartTitleText{text-anchor:middle;font-size:18px;fill:#333;}#mx9uhx8639lvd06s1ps rect.text{fill:none;stroke-width:0;}#mx9uhx8639lvd06s1ps .icon-shape,#mx9uhx8639lvd06s1ps .image-shape{background-color:rgba(232,232,232, 0.8);text-align:center;}#mx9uhx8639lvd06s1ps .icon-shape p,#mx9uhx8639lvd06s1ps .image-shape p{background-color:rgba(232,232,232, 0.8);padding:2px;}#mx9uhx8639lvd06s1ps .icon-shape rect,#mx9uhx8639lvd06s1ps .image-shape rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mx9uhx8639lvd06s1ps .label-icon{display:inline-block;height:1em;overflow:visible;vertical-align:-0.125em;}#mx9uhx8639lvd06s1ps .node .label-icon path{fill:currentColor;stroke:revert;stroke-width:revert;}#mx9uhx8639lvd06s1ps :root{--mermaid-font-family:\"trebuchet ms\",verdana,arial,sans-serif;}\u003C\u002Fstyle>\u003Cg>\u003Cmarker id=\"mx9uhx8639lvd06s1ps_flowchart-v2-pointEnd\" class=\"marker flowchart-v2\" viewBox=\"0 0 10 10\" refX=\"5\" refY=\"5\" markerUnits=\"userSpaceOnUse\" markerWidth=\"8\" markerHeight=\"8\" orient=\"auto\">\u003Cpath d=\"M 0 0 L 10 5 L 0 10 z\" class=\"arrowMarkerPath\" style=\"stroke-width: 1; stroke-dasharray: 1, 0;\">\u003C\u002Fpath>\u003C\u002Fmarker>\u003Cmarker id=\"mx9uhx8639lvd06s1ps_flowchart-v2-pointStart\" class=\"marker flowchart-v2\" viewBox=\"0 0 10 10\" refX=\"4.5\" refY=\"5\" markerUnits=\"userSpaceOnUse\" markerWidth=\"8\" markerHeight=\"8\" orient=\"auto\">\u003Cpath d=\"M 0 5 L 10 10 L 10 0 z\" class=\"arrowMarkerPath\" style=\"stroke-width: 1; stroke-dasharray: 1, 0;\">\u003C\u002Fpath>\u003C\u002Fmarker>\u003Cmarker id=\"mx9uhx8639lvd06s1ps_flowchart-v2-circleEnd\" class=\"marker flowchart-v2\" viewBox=\"0 0 10 10\" refX=\"11\" refY=\"5\" markerUnits=\"userSpaceOnUse\" markerWidth=\"11\" markerHeight=\"11\" orient=\"auto\">\u003Ccircle cx=\"5\" cy=\"5\" r=\"5\" class=\"arrowMarkerPath\" style=\"stroke-width: 1; stroke-dasharray: 1, 0;\">\u003C\u002Fcircle>\u003C\u002Fmarker>\u003Cmarker id=\"mx9uhx8639lvd06s1ps_flowchart-v2-circleStart\" class=\"marker flowchart-v2\" viewBox=\"0 0 10 10\" refX=\"-1\" refY=\"5\" markerUnits=\"userSpaceOnUse\" markerWidth=\"11\" markerHeight=\"11\" orient=\"auto\">\u003Ccircle cx=\"5\" cy=\"5\" r=\"5\" class=\"arrowMarkerPath\" style=\"stroke-width: 1; stroke-dasharray: 1, 0;\">\u003C\u002Fcircle>\u003C\u002Fmarker>\u003Cmarker id=\"mx9uhx8639lvd06s1ps_flowchart-v2-crossEnd\" class=\"marker cross flowchart-v2\" viewBox=\"0 0 11 11\" refX=\"12\" refY=\"5.2\" markerUnits=\"userSpaceOnUse\" markerWidth=\"11\" markerHeight=\"11\" orient=\"auto\">\u003Cpath d=\"M 1,1 l 9,9 M 10,1 l -9,9\" class=\"arrowMarkerPath\" style=\"stroke-width: 2; stroke-dasharray: 1, 0;\">\u003C\u002Fpath>\u003C\u002Fmarker>\u003Cmarker id=\"mx9uhx8639lvd06s1ps_flowchart-v2-crossStart\" class=\"marker cross flowchart-v2\" viewBox=\"0 0 11 11\" refX=\"-1\" refY=\"5.2\" markerUnits=\"userSpaceOnUse\" markerWidth=\"11\" markerHeight=\"11\" orient=\"auto\">\u003Cpath d=\"M 1,1 l 9,9 M 10,1 l -9,9\" class=\"arrowMarkerPath\" style=\"stroke-width: 2; stroke-dasharray: 1, 0;\">\u003C\u002Fpath>\u003C\u002Fmarker>\u003Cg class=\"root\">\u003Cg class=\"clusters\">\u003Cg class=\"cluster\" id=\"SAME\" data-look=\"classic\">\u003Crect style=\"\" x=\"11.638019561767578\" y=\"240\" width=\"798.8958435058594\" height=\"111.1314582824707\">\u003C\u002Frect>\u003Cg class=\"cluster-label\" transform=\"translate(363.08594131469727, 240)\">\u003CforeignObject width=\"96\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"nodeLabel\">\u003Cp>同一运行单元\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"edgePaths\">\u003Cpath d=\"M511.151,62L511.151,66.167C511.151,70.333,511.151,78.667,511.151,86.333C511.151,94,511.151,101,511.151,104.5L511.151,108\" id=\"L_IN_APP_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_IN_APP_0\" data-points=\"W3sieCI6NTExLjE1MTA0Njc1MjkyOTcsInkiOjYyfSx7IngiOjUxMS4xNTEwNDY3NTI5Mjk3LCJ5Ijo4N30seyJ4Ijo1MTEuMTUxMDQ2NzUyOTI5NywieSI6MTEyfV0=\" marker-end=\"url(#mx9uhx8639lvd06s1ps_flowchart-v2-pointEnd)\">\u003C\u002Fpath>\u003Cpath d=\"M381.151,172.405L338.035,179.504C294.919,186.603,208.688,200.802,165.572,212.067C122.456,223.333,122.456,231.667,122.456,239.928C122.456,248.189,122.456,256.377,122.456,260.471L122.456,264.566\" id=\"L_APP_DP_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_APP_DP_0\" data-points=\"W3sieCI6MzgxLjE1MTA0Njc1MjkyOTcsInkiOjE3Mi40MDQ5NDAxOTU1MzMzfSx7IngiOjEyMi40NTU3MzA0MzgyMzI0MiwieSI6MjE1fSx7IngiOjEyMi40NTU3MzA0MzgyMzI0MiwieSI6MjQwfSx7IngiOjEyMi40NTU3MzA0MzgyMzI0MiwieSI6MjY4LjU2NTcyOTE0MTIzNTM1fV0=\" marker-end=\"url(#mx9uhx8639lvd06s1ps_flowchart-v2-pointEnd)\">\u003C\u002Fpath>\u003Cpath d=\"M423.209,190L413.814,194.167C404.418,198.333,385.627,206.667,376.231,215C366.836,223.333,366.836,231.667,366.836,239.928C366.836,248.189,366.836,256.377,366.836,260.471L366.836,264.566\" id=\"L_APP_CP_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_APP_CP_0\" data-points=\"W3sieCI6NDIzLjIwOTAyOTM3NjUwNjgsInkiOjE5MH0seyJ4IjozNjYuODM1OTQxMzE0Njk3MjcsInkiOjIxNX0seyJ4IjozNjYuODM1OTQxMzE0Njk3MjcsInkiOjI0MH0seyJ4IjozNjYuODM1OTQxMzE0Njk3MjcsInkiOjI2OC41NjU3MjkxNDEyMzUzNX1d\" marker-end=\"url(#mx9uhx8639lvd06s1ps_flowchart-v2-pointEnd)\">\u003C\u002Fpath>\u003Cpath d=\"M599.093,190L608.489,194.167C617.884,198.333,636.675,206.667,646.071,215C655.466,223.333,655.466,231.667,655.466,239.928C655.466,248.189,655.466,256.377,655.466,260.471L655.466,264.566\" id=\"L_APP_JOB_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_APP_JOB_0\" data-points=\"W3sieCI6NTk5LjA5MzA2NDEyOTM1MjYsInkiOjE5MH0seyJ4Ijo2NTUuNDY2MTUyMTkxMTYyMSwieSI6MjE1fSx7IngiOjY1NS40NjYxNTIxOTExNjIxLCJ5IjoyNDB9LHsieCI6NjU1LjQ2NjE1MjE5MTE2MjEsInkiOjI2OC41NjU3MjkxNDEyMzUzNX1d\" marker-end=\"url(#mx9uhx8639lvd06s1ps_flowchart-v2-pointEnd)\">\u003C\u002Fpath>\u003Cpath d=\"M105.25,322.566L102.216,327.327C99.182,332.088,93.115,341.61,90.081,350.537C87.047,359.465,87.047,367.798,87.047,376.9C87.047,386.001,87.047,395.87,87.047,400.805L87.047,405.74\" id=\"L_DP_PROVIDER_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_DP_PROVIDER_0\" data-points=\"W3sieCI6MTA1LjI1MDE3NzQ1NDI2NTU4LCJ5IjozMjIuNTY1NzI5MTQxMjM1MzV9LHsieCI6ODcuMDQ2ODc1LCJ5IjozNTEuMTMxNDU4MjgyNDcwN30seyJ4Ijo4Ny4wNDY4NzUsInkiOjM3Ni4xMzE0NTgyODI0NzA3fSx7IngiOjg3LjA0Njg3NSwieSI6NDA5LjczOTkxMzk0MDQyOTd9XQ==\" marker-end=\"url(#mx9uhx8639lvd06s1ps_flowchart-v2-pointEnd)\">\u003C\u002Fpath>\u003Cpath d=\"M176.97,322.566L186.583,327.327C196.195,332.088,215.421,341.61,225.033,350.537C234.646,359.465,234.646,367.798,248.224,378.19C261.803,388.583,288.96,401.034,302.538,407.26L316.117,413.485\" id=\"L_DP_PG_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_DP_PG_0\" data-points=\"W3sieCI6MTc2Ljk3MDEzODc1NTE0NTA2LCJ5IjozMjIuNTY1NzI5MTQxMjM1MzV9LHsieCI6MjM0LjY0NTgzNTg3NjQ2NDg0LCJ5IjozNTEuMTMxNDU4MjgyNDcwN30seyJ4IjoyMzQuNjQ1ODM1ODc2NDY0ODQsInkiOjM3Ni4xMzE0NTgyODI0NzA3fSx7IngiOjMxOS43NTI2MDU0MzgyMzI0LCJ5Ijo0MTUuMTUyNDU2NTAzNzU0fV0=\" marker-end=\"url(#mx9uhx8639lvd06s1ps_flowchart-v2-pointEnd)\">\u003C\u002Fpath>\u003Cpath d=\"M366.836,322.566L366.836,327.327C366.836,332.088,366.836,341.61,366.836,350.537C366.836,359.465,366.836,367.798,366.836,375.465C366.836,383.131,366.836,390.131,366.836,393.631L366.836,397.131\" id=\"L_CP_PG_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_CP_PG_0\" data-points=\"W3sieCI6MzY2LjgzNTk0MTMxNDY5NzI3LCJ5IjozMjIuNTY1NzI5MTQxMjM1MzV9LHsieCI6MzY2LjgzNTk0MTMxNDY5NzI3LCJ5IjozNTEuMTMxNDU4MjgyNDcwN30seyJ4IjozNjYuODM1OTQxMzE0Njk3MjcsInkiOjM3Ni4xMzE0NTgyODI0NzA3fSx7IngiOjM2Ni44MzU5NDEzMTQ2OTcyNywieSI6NDAxLjEzMTQ1ODI4MjQ3MDd9XQ==\" marker-end=\"url(#mx9uhx8639lvd06s1ps_flowchart-v2-pointEnd)\">\u003C\u002Fpath>\u003Cpath d=\"M655.466,322.566L655.466,327.327C655.466,332.088,655.466,341.61,655.466,350.537C655.466,359.465,655.466,367.798,615.861,380.281C576.255,392.765,497.045,409.398,457.439,417.714L417.834,426.031\" id=\"L_JOB_PG_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_JOB_PG_0\" data-points=\"W3sieCI6NjU1LjQ2NjE1MjE5MTE2MjEsInkiOjMyMi41NjU3MjkxNDEyMzUzNX0seyJ4Ijo2NTUuNDY2MTUyMTkxMTYyMSwieSI6MzUxLjEzMTQ1ODI4MjQ3MDd9LHsieCI6NjU1LjQ2NjE1MjE5MTE2MjEsInkiOjM3Ni4xMzE0NTgyODI0NzA3fSx7IngiOjQxMy45MTkyNzcxOTExNjIxLCJ5Ijo0MjYuODUzMDQ3NzQ1NjgxN31d\" marker-end=\"url(#mx9uhx8639lvd06s1ps_flowchart-v2-pointEnd)\">\u003C\u002Fpath>\u003Cpath d=\"M645.089,174.775L682.859,181.479C720.628,188.183,796.167,201.592,833.936,212.462C871.706,223.333,871.706,231.667,871.706,239.333C871.706,247,871.706,254,871.706,257.5L871.706,261\" id=\"L_APP_REDIS_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_APP_REDIS_0\" data-points=\"W3sieCI6NjQxLjE1MTA0Njc1MjkyOTcsInkiOjE3NC4wNzU1NTYwODE4MzIyMn0seyJ4Ijo4NzEuNzA1NzM4MDY3NjI3LCJ5IjoyMTV9LHsieCI6ODcxLjcwNTczODA2NzYyNywieSI6MjQwfSx7IngiOjg3MS43MDU3MzgwNjc2MjcsInkiOjI2NX1d\" marker-start=\"url(#mx9uhx8639lvd06s1ps_flowchart-v2-pointStart)\" marker-end=\"url(#mx9uhx8639lvd06s1ps_flowchart-v2-pointEnd)\">\u003C\u002Fpath>\u003C\u002Fg>\u003Cg class=\"edgeLabels\">\u003Cg class=\"edgeLabel\">\u003Cg class=\"label\" data-id=\"L_IN_APP_0\" transform=\"translate(0, 0)\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"edgeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"edgeLabel\">\u003Cg class=\"label\" data-id=\"L_APP_DP_0\" transform=\"translate(0, 0)\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"edgeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"edgeLabel\">\u003Cg class=\"label\" data-id=\"L_APP_CP_0\" transform=\"translate(0, 0)\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"edgeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"edgeLabel\">\u003Cg class=\"label\" data-id=\"L_APP_JOB_0\" transform=\"translate(0, 0)\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"edgeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"edgeLabel\">\u003Cg class=\"label\" data-id=\"L_DP_PROVIDER_0\" transform=\"translate(0, 0)\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"edgeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"edgeLabel\">\u003Cg class=\"label\" data-id=\"L_DP_PG_0\" transform=\"translate(0, 0)\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"edgeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"edgeLabel\">\u003Cg class=\"label\" data-id=\"L_CP_PG_0\" transform=\"translate(0, 0)\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"edgeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"edgeLabel\">\u003Cg class=\"label\" data-id=\"L_JOB_PG_0\" transform=\"translate(0, 0)\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"edgeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"edgeLabel\">\u003Cg class=\"label\" data-id=\"L_APP_REDIS_0\" transform=\"translate(0, 0)\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"edgeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"nodes\">\u003Cg class=\"node default\" id=\"flowchart-IN-0\" transform=\"translate(511.1510467529297, 35)\">\u003Crect class=\"basic label-container\" style=\"\" x=\"-54.5625\" y=\"-27\" width=\"109.125\" height=\"54\">\u003C\u002Frect>\u003Cg class=\"label\" style=\"\" transform=\"translate(-24.5625, -12)\">\u003Crect>\u003C\u002Frect>\u003CforeignObject width=\"49.125\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"nodeLabel\">\u003Cp>Ingress\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"node default\" id=\"flowchart-APP-1\" transform=\"translate(511.1510467529297, 151)\">\u003Crect class=\"basic label-container\" style=\"\" x=\"-130\" y=\"-39\" width=\"260\" height=\"78\">\u003C\u002Frect>\u003Cg class=\"label\" style=\"\" transform=\"translate(-100, -24)\">\u003Crect>\u003C\u002Frect>\u003CforeignObject width=\"200\" height=\"48\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table; white-space: break-spaces; line-height: 1.5; max-width: 200px; text-align: center; width: 200px;\">\u003Cspan class=\"nodeLabel\">\u003Cp>LiteLLM Proxy 单实例 \u002F 多副本\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"node default\" id=\"flowchart-DP-2\" transform=\"translate(122.45573043823242, 295.56572914123535)\">\u003Crect class=\"basic label-container\" style=\"\" x=\"-75.81771087646484\" y=\"-27\" width=\"151.6354217529297\" height=\"54\">\u003C\u002Frect>\u003Cg class=\"label\" style=\"\" transform=\"translate(-45.817710876464844, -12)\">\u003Crect>\u003C\u002Frect>\u003CforeignObject width=\"91.63542175292969\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"nodeLabel\">\u003Cp>模型推理 API\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"node default\" id=\"flowchart-CP-3\" transform=\"translate(366.83594131469727, 295.56572914123535)\">\u003Crect class=\"basic label-container\" style=\"\" x=\"-118.5625\" y=\"-27\" width=\"237.125\" height=\"54\">\u003C\u002Frect>\u003Cg class=\"label\" style=\"\" transform=\"translate(-88.5625, -12)\">\u003Crect>\u003C\u002Frect>\u003CforeignObject width=\"177.125\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"nodeLabel\">\u003Cp>Management API \u002F UI API\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"node default\" id=\"flowchart-JOB-4\" transform=\"translate(655.4661521911621, 295.56572914123535)\">\u003Crect class=\"basic label-container\" style=\"\" x=\"-120.06771087646484\" y=\"-27\" width=\"240.1354217529297\" height=\"54\">\u003C\u002Frect>\u003Cg class=\"label\" style=\"\" transform=\"translate(-90.06771087646484, -12)\">\u003Crect>\u003C\u002Frect>\u003CforeignObject width=\"180.1354217529297\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"nodeLabel\">\u003Cp>Spend \u002F Background Jobs\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"node default\" id=\"flowchart-PG-5\" transform=\"translate(366.83594131469727, 436.7399139404297)\">\u003Cpath d=\"M0,10.741445197822479 a47.083335876464844,10.741445197822479 0,0,0 94.16667175292969,0 a47.083335876464844,10.741445197822479 0,0,0 -94.16667175292969,0 l0,49.74144519782248 a47.083335876464844,10.741445197822479 0,0,0 94.16667175292969,0 l0,-49.74144519782248\" class=\"basic label-container\" style=\"\" transform=\"translate(-47.083335876464844, -35.612167796733715)\">\u003C\u002Fpath>\u003Cg class=\"label\" style=\"\" transform=\"translate(-39.583335876464844, -2)\">\u003Crect>\u003C\u002Frect>\u003CforeignObject width=\"79.16667175292969\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"nodeLabel\">\u003Cp>PostgreSQL\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"node default\" id=\"flowchart-REDIS-6\" transform=\"translate(871.705738067627, 295.56572914123535)\">\u003Cpath d=\"M0,7.378854625550661 a26.171875,7.378854625550661 0,0,0 52.34375,0 a26.171875,7.378854625550661 0,0,0 -52.34375,0 l0,46.37885462555066 a26.171875,7.378854625550661 0,0,0 52.34375,0 l0,-46.37885462555066\" class=\"basic label-container\" style=\"\" transform=\"translate(-26.171875, -30.56828193832599)\">\u003C\u002Fpath>\u003Cg class=\"label\" style=\"\" transform=\"translate(-18.671875, -2)\">\u003Crect>\u003C\u002Frect>\u003CforeignObject width=\"37.34375\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"nodeLabel\">\u003Cp>Redis\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"node default\" id=\"flowchart-PROVIDER-7\" transform=\"translate(87.046875, 436.7399139404297)\">\u003Crect class=\"basic label-container\" style=\"\" x=\"-79.046875\" y=\"-27\" width=\"158.09375\" height=\"54\">\u003C\u002Frect>\u003Cg class=\"label\" style=\"\" transform=\"translate(-49.046875, -12)\">\u003Crect>\u003C\u002Frect>\u003CforeignObject width=\"98.09375\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"nodeLabel\">\u003Cp>LLM Providers\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003C\u002Fg>\u003C\u002Fg>\u003C\u002Fg>\u003C\u002Fsvg>\u003Cdiv class=\"md-editor-mermaid-action\">\u003Cspan class=\"md-editor-mermaid-copy\">\u003Csvg xmlns=\"http:\u002F\u002Fwww.w3.org\u002F2000\u002Fsvg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"lucide lucide-copy md-editor-icon\">\u003Crect width=\"14\" height=\"14\" x=\"8\" y=\"8\" rx=\"2\" ry=\"2\">\u003C\u002Frect>\u003Cpath d=\"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2\">\u003C\u002Fpath>\u003C\u002Fsvg>\u003C\u002Fspan>\u003Cspan class=\"md-editor-mermaid-zoom\">\u003Csvg xmlns=\"http:\u002F\u002Fwww.w3.org\u002F2000\u002Fsvg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"lucide lucide-pin-off md-editor-icon\">\u003Cpath d=\"M12 17v5\">\u003C\u002Fpath>\u003Cpath d=\"M15 9.34V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H7.89\">\u003C\u002Fpath>\u003Cpath d=\"m2 2 20 20\">\u003C\u002Fpath>\u003Cpath d=\"M9 9v1.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h11\">\u003C\u002Fpath>\u003C\u002Fsvg>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002Fp>\u003Cp data-line=\"796\">优点：\u003C\u002Fp>\n\u003Cul data-line=\"798\">\n\u003Cli data-line=\"798\">部署简单。\u003C\u002Fli>\n\u003Cli data-line=\"799\">单机和中小规模容易运维。\u003C\u002Fli>\n\u003Cli data-line=\"800\">一个服务即可提供模型 API 和管理能力。\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Cp data-line=\"802\">缺点：\u003C\u002Fp>\n\u003Cul data-line=\"804\">\n\u003Cli data-line=\"804\">推理流量和后台分析共享事件循环、CPU、内存和数据库连接。\u003C\u002Fli>\n\u003Cli data-line=\"805\">管理报表的大查询可能影响推理 API 和健康检查。\u003C\u002Fli>\n\u003Cli data-line=\"806\">无法分别扩缩容数据面和控制面。\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Ch3 data-line=\"808\" id=\"11.2 官方组件化部署\">11.2 官方组件化部署\u003C\u002Fh3>\n\u003Cp data-line=\"810\">官方组件化部署文章介绍了以下组件：\u003C\u002Fp>\n\u003Ctable data-line=\"812\">\n\u003Cthead data-line=\"812\">\n\u003Ctr data-line=\"812\">\n\u003Cth>组件\u003C\u002Fth>\n\u003Cth style=\"text-align:right\">端口\u003C\u002Fth>\n\u003Cth>职责\u003C\u002Fth>\n\u003C\u002Ftr>\n\u003C\u002Fthead>\n\u003Ctbody data-line=\"814\">\n\u003Ctr data-line=\"814\">\n\u003Ctd>Gateway\u003C\u002Ftd>\n\u003Ctd style=\"text-align:right\">4000\u003C\u002Ftd>\n\u003Ctd>模型推理数据面\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr data-line=\"815\">\n\u003Ctd>Backend\u003C\u002Ftd>\n\u003Ctd style=\"text-align:right\">4001\u003C\u002Ftd>\n\u003Ctd>管理 API、Key、User、Team、SSO、Spend \u002F Usage\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr data-line=\"816\">\n\u003Ctd>UI\u003C\u002Ftd>\n\u003Ctd style=\"text-align:right\">3000\u003C\u002Ftd>\n\u003Ctd>Next.js Dashboard 静态资源，由 Nginx 提供\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr data-line=\"817\">\n\u003Ctd>Migrations\u003C\u002Ftd>\n\u003Ctd style=\"text-align:right\">Job\u003C\u002Ftd>\n\u003Ctd>数据库 Migration，一次性执行\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003C\u002Ftbody>\n\u003C\u002Ftable>\n\u003Cp data-line=\"819\" class=\"md-editor-mermaid\" data-mermaid-theme=\"light\" data-closed=\"true\" data-processed=\"\" data-content=\"flowchart TB\n    USER[&quot;Client \u002F Admin&quot;]\n    ING[&quot;Ingress \u002F Load Balancer&quot;]\n    subgraph K8S[&quot;Kubernetes \u002F Componentized LiteLLM&quot;]\n      GW[&quot;Gateway Pods :4000&lt;br\u002F&gt;LLM Data Plane&quot;]\n      BE[&quot;Backend Pods :4001&lt;br\u002F&gt;Management Control Plane&quot;]\n      UI[&quot;UI Pods :3000&lt;br\u002F&gt;Next.js + Nginx&quot;]\n      MIG[&quot;Migration Job&quot;]\n    end\n    PGW[(&quot;PostgreSQL Writer&quot;)]\n    PGR[(&quot;Optional Read Replica&quot;)]\n    REDIS[(&quot;Redis&quot;)]\n    PROVIDER[&quot;Model Providers&quot;]\n    USER --&gt; ING\n    ING --&gt;|Inference routes| GW\n    ING --&gt;|Management routes| BE\n    ING --&gt;|Static UI| UI\n    GW --&gt; PROVIDER\n    GW --&gt; PGW\n    BE --&gt; PGW\n    BE --&gt; PGR\n    GW &lt;--&gt; REDIS\n    BE &lt;--&gt; REDIS\n    MIG --&gt; PGW\">\u003Csvg id=\"mx9uhx86equm7hpzcml\" width=\"100%\" xmlns=\"http:\u002F\u002Fwww.w3.org\u002F2000\u002Fsvg\" xmlns:xlink=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxlink\" class=\"flowchart\" style=\"max-width: 1196.9532470703125px;\" viewBox=\"0.00000762939453125 0 1196.9532470703125 508.4686279296875\" role=\"graphics-document document\" aria-roledescription=\"flowchart-v2\">\u003Cstyle>#mx9uhx86equm7hpzcml{font-family:\"trebuchet ms\",verdana,arial,sans-serif;font-size:16px;fill:#333;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#mx9uhx86equm7hpzcml .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#mx9uhx86equm7hpzcml .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#mx9uhx86equm7hpzcml .error-icon{fill:#552222;}#mx9uhx86equm7hpzcml .error-text{fill:#552222;stroke:#552222;}#mx9uhx86equm7hpzcml .edge-thickness-normal{stroke-width:1px;}#mx9uhx86equm7hpzcml .edge-thickness-thick{stroke-width:3.5px;}#mx9uhx86equm7hpzcml .edge-pattern-solid{stroke-dasharray:0;}#mx9uhx86equm7hpzcml .edge-thickness-invisible{stroke-width:0;fill:none;}#mx9uhx86equm7hpzcml .edge-pattern-dashed{stroke-dasharray:3;}#mx9uhx86equm7hpzcml .edge-pattern-dotted{stroke-dasharray:2;}#mx9uhx86equm7hpzcml .marker{fill:#333333;stroke:#333333;}#mx9uhx86equm7hpzcml .marker.cross{stroke:#333333;}#mx9uhx86equm7hpzcml svg{font-family:\"trebuchet ms\",verdana,arial,sans-serif;font-size:16px;}#mx9uhx86equm7hpzcml p{margin:0;}#mx9uhx86equm7hpzcml .label{font-family:\"trebuchet ms\",verdana,arial,sans-serif;color:#333;}#mx9uhx86equm7hpzcml .cluster-label text{fill:#333;}#mx9uhx86equm7hpzcml .cluster-label span{color:#333;}#mx9uhx86equm7hpzcml .cluster-label span p{background-color:transparent;}#mx9uhx86equm7hpzcml .label text,#mx9uhx86equm7hpzcml span{fill:#333;color:#333;}#mx9uhx86equm7hpzcml .node rect,#mx9uhx86equm7hpzcml .node circle,#mx9uhx86equm7hpzcml .node ellipse,#mx9uhx86equm7hpzcml .node polygon,#mx9uhx86equm7hpzcml .node path{fill:#ECECFF;stroke:#9370DB;stroke-width:1px;}#mx9uhx86equm7hpzcml .rough-node .label text,#mx9uhx86equm7hpzcml .node .label text,#mx9uhx86equm7hpzcml .image-shape .label,#mx9uhx86equm7hpzcml .icon-shape .label{text-anchor:middle;}#mx9uhx86equm7hpzcml .node .katex path{fill:#000;stroke:#000;stroke-width:1px;}#mx9uhx86equm7hpzcml .rough-node .label,#mx9uhx86equm7hpzcml .node .label,#mx9uhx86equm7hpzcml .image-shape .label,#mx9uhx86equm7hpzcml .icon-shape .label{text-align:center;}#mx9uhx86equm7hpzcml .node.clickable{cursor:pointer;}#mx9uhx86equm7hpzcml .root .anchor path{fill:#333333!important;stroke-width:0;stroke:#333333;}#mx9uhx86equm7hpzcml .arrowheadPath{fill:#333333;}#mx9uhx86equm7hpzcml .edgePath .path{stroke:#333333;stroke-width:2.0px;}#mx9uhx86equm7hpzcml .flowchart-link{stroke:#333333;fill:none;}#mx9uhx86equm7hpzcml .edgeLabel{background-color:rgba(232,232,232, 0.8);text-align:center;}#mx9uhx86equm7hpzcml .edgeLabel p{background-color:rgba(232,232,232, 0.8);}#mx9uhx86equm7hpzcml .edgeLabel rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mx9uhx86equm7hpzcml .labelBkg{background-color:rgba(232, 232, 232, 0.5);}#mx9uhx86equm7hpzcml .cluster rect{fill:#ffffde;stroke:#aaaa33;stroke-width:1px;}#mx9uhx86equm7hpzcml .cluster text{fill:#333;}#mx9uhx86equm7hpzcml .cluster span{color:#333;}#mx9uhx86equm7hpzcml div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:\"trebuchet ms\",verdana,arial,sans-serif;font-size:12px;background:hsl(80, 100%, 96.2745098039%);border:1px solid #aaaa33;border-radius:2px;pointer-events:none;z-index:100;}#mx9uhx86equm7hpzcml .flowchartTitleText{text-anchor:middle;font-size:18px;fill:#333;}#mx9uhx86equm7hpzcml rect.text{fill:none;stroke-width:0;}#mx9uhx86equm7hpzcml .icon-shape,#mx9uhx86equm7hpzcml .image-shape{background-color:rgba(232,232,232, 0.8);text-align:center;}#mx9uhx86equm7hpzcml .icon-shape p,#mx9uhx86equm7hpzcml .image-shape p{background-color:rgba(232,232,232, 0.8);padding:2px;}#mx9uhx86equm7hpzcml .icon-shape rect,#mx9uhx86equm7hpzcml .image-shape rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mx9uhx86equm7hpzcml .label-icon{display:inline-block;height:1em;overflow:visible;vertical-align:-0.125em;}#mx9uhx86equm7hpzcml .node .label-icon path{fill:currentColor;stroke:revert;stroke-width:revert;}#mx9uhx86equm7hpzcml :root{--mermaid-font-family:\"trebuchet ms\",verdana,arial,sans-serif;}\u003C\u002Fstyle>\u003Cg>\u003Cmarker id=\"mx9uhx86equm7hpzcml_flowchart-v2-pointEnd\" class=\"marker flowchart-v2\" viewBox=\"0 0 10 10\" refX=\"5\" refY=\"5\" markerUnits=\"userSpaceOnUse\" markerWidth=\"8\" markerHeight=\"8\" orient=\"auto\">\u003Cpath d=\"M 0 0 L 10 5 L 0 10 z\" class=\"arrowMarkerPath\" style=\"stroke-width: 1; stroke-dasharray: 1, 0;\">\u003C\u002Fpath>\u003C\u002Fmarker>\u003Cmarker id=\"mx9uhx86equm7hpzcml_flowchart-v2-pointStart\" class=\"marker flowchart-v2\" viewBox=\"0 0 10 10\" refX=\"4.5\" refY=\"5\" markerUnits=\"userSpaceOnUse\" markerWidth=\"8\" markerHeight=\"8\" orient=\"auto\">\u003Cpath d=\"M 0 5 L 10 10 L 10 0 z\" class=\"arrowMarkerPath\" style=\"stroke-width: 1; stroke-dasharray: 1, 0;\">\u003C\u002Fpath>\u003C\u002Fmarker>\u003Cmarker id=\"mx9uhx86equm7hpzcml_flowchart-v2-circleEnd\" class=\"marker flowchart-v2\" viewBox=\"0 0 10 10\" refX=\"11\" refY=\"5\" markerUnits=\"userSpaceOnUse\" markerWidth=\"11\" markerHeight=\"11\" orient=\"auto\">\u003Ccircle cx=\"5\" cy=\"5\" r=\"5\" class=\"arrowMarkerPath\" style=\"stroke-width: 1; stroke-dasharray: 1, 0;\">\u003C\u002Fcircle>\u003C\u002Fmarker>\u003Cmarker id=\"mx9uhx86equm7hpzcml_flowchart-v2-circleStart\" class=\"marker flowchart-v2\" viewBox=\"0 0 10 10\" refX=\"-1\" refY=\"5\" markerUnits=\"userSpaceOnUse\" markerWidth=\"11\" markerHeight=\"11\" orient=\"auto\">\u003Ccircle cx=\"5\" cy=\"5\" r=\"5\" class=\"arrowMarkerPath\" style=\"stroke-width: 1; stroke-dasharray: 1, 0;\">\u003C\u002Fcircle>\u003C\u002Fmarker>\u003Cmarker id=\"mx9uhx86equm7hpzcml_flowchart-v2-crossEnd\" class=\"marker cross flowchart-v2\" viewBox=\"0 0 11 11\" refX=\"12\" refY=\"5.2\" markerUnits=\"userSpaceOnUse\" markerWidth=\"11\" markerHeight=\"11\" orient=\"auto\">\u003Cpath d=\"M 1,1 l 9,9 M 10,1 l -9,9\" class=\"arrowMarkerPath\" style=\"stroke-width: 2; stroke-dasharray: 1, 0;\">\u003C\u002Fpath>\u003C\u002Fmarker>\u003Cmarker id=\"mx9uhx86equm7hpzcml_flowchart-v2-crossStart\" class=\"marker cross flowchart-v2\" viewBox=\"0 0 11 11\" refX=\"-1\" refY=\"5.2\" markerUnits=\"userSpaceOnUse\" markerWidth=\"11\" markerHeight=\"11\" orient=\"auto\">\u003Cpath d=\"M 1,1 l 9,9 M 10,1 l -9,9\" class=\"arrowMarkerPath\" style=\"stroke-width: 2; stroke-dasharray: 1, 0;\">\u003C\u002Fpath>\u003C\u002Fmarker>\u003Cg class=\"root\">\u003Cg class=\"clusters\">\u003Cg class=\"cluster\" id=\"K8S\" data-look=\"classic\">\u003Crect style=\"\" x=\"54.416664123535156\" y=\"240\" width=\"1068.375\" height=\"128\">\u003C\u002Frect>\u003Cg class=\"cluster-label\" transform=\"translate(488.60416412353516, 240)\">\u003CforeignObject width=\"200\" height=\"48\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table; white-space: break-spaces; line-height: 1.5; max-width: 200px; text-align: center; width: 200px;\">\u003Cspan class=\"nodeLabel\">\u003Cp>Kubernetes \u002F Componentized LiteLLM\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"edgePaths\">\u003Cpath d=\"M690.052,62L690.052,66.167C690.052,70.333,690.052,78.667,690.052,86.333C690.052,94,690.052,101,690.052,104.5L690.052,108\" id=\"L_USER_ING_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_USER_ING_0\" data-points=\"W3sieCI6NjkwLjA1MjA4MjA2MTc2NzYsInkiOjYyfSx7IngiOjY5MC4wNTIwODIwNjE3Njc2LCJ5Ijo4N30seyJ4Ijo2OTAuMDUyMDgyMDYxNzY3NiwieSI6MTEyfV0=\" marker-end=\"url(#mx9uhx86equm7hpzcml_flowchart-v2-pointEnd)\">\u003C\u002Fpath>\u003Cpath d=\"M575.958,153.955L513.595,162.129C451.231,170.303,326.503,186.652,264.14,200.992C201.776,215.333,201.776,227.667,201.776,237.333C201.776,247,201.776,254,201.776,257.5L201.776,261\" id=\"L_ING_GW_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_ING_GW_0\" data-points=\"W3sieCI6NTc1Ljk1ODMzMjA2MTc2NzYsInkiOjE1My45NTQ2NTU1OTQyMTUxOH0seyJ4IjoyMDEuNzc2MDQyOTM4MjMyNDIsInkiOjIwM30seyJ4IjoyMDEuNzc2MDQyOTM4MjMyNDIsInkiOjI0MH0seyJ4IjoyMDEuNzc2MDQyOTM4MjMyNDIsInkiOjI2NX1d\" marker-end=\"url(#mx9uhx86equm7hpzcml_flowchart-v2-pointEnd)\">\u003C\u002Fpath>\u003Cpath d=\"M781.091,166L801.884,172.167C822.677,178.333,864.263,190.667,885.056,203C905.849,215.333,905.849,227.667,905.849,237.333C905.849,247,905.849,254,905.849,257.5L905.849,261\" id=\"L_ING_BE_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_ING_BE_0\" data-points=\"W3sieCI6NzgxLjA5MTM4ODcwMjM5MjYsInkiOjE2Nn0seyJ4Ijo5MDUuODQ4OTU3MDYxNzY3NiwieSI6MjAzfSx7IngiOjkwNS44NDg5NTcwNjE3Njc2LCJ5IjoyNDB9LHsieCI6OTA1Ljg0ODk1NzA2MTc2NzYsInkiOjI2NX1d\" marker-end=\"url(#mx9uhx86equm7hpzcml_flowchart-v2-pointEnd)\">\u003C\u002Fpath>\u003Cpath d=\"M671.024,166L666.678,172.167C662.332,178.333,653.64,190.667,649.294,203C644.948,215.333,644.948,227.667,644.948,237.333C644.948,247,644.948,254,644.948,257.5L644.948,261\" id=\"L_ING_UI_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_ING_UI_0\" data-points=\"W3sieCI6NjcxLjAyMzc2MjgyMjE1MTIsInkiOjE2Nn0seyJ4Ijo2NDQuOTQ3OTE3OTM4MjMyNCwieSI6MjAzfSx7IngiOjY0NC45NDc5MTc5MzgyMzI0LCJ5IjoyNDB9LHsieCI6NjQ0Ljk0NzkxNzkzODIzMjQsInkiOjI2NX1d\" marker-end=\"url(#mx9uhx86equm7hpzcml_flowchart-v2-pointEnd)\">\u003C\u002Fpath>\u003Cpath d=\"M136.354,343L129.364,347.167C122.375,351.333,108.396,359.667,101.406,368C94.417,376.333,94.417,384.667,94.417,394.706C94.417,404.745,94.417,416.49,94.417,422.362L94.417,428.234\" id=\"L_GW_PROVIDER_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_GW_PROVIDER_0\" data-points=\"W3sieCI6MTM2LjM1MzkyMTQ3MzAyNjI4LCJ5IjozNDN9LHsieCI6OTQuNDE2NjY0MTIzNTM1MTYsInkiOjM2OH0seyJ4Ijo5NC40MTY2NjQxMjM1MzUxNiwieSI6MzkzfSx7IngiOjk0LjQxNjY2NDEyMzUzNTE2LCJ5Ijo0MzIuMjM0MzE3Nzc5NTQxfV0=\" marker-end=\"url(#mx9uhx86equm7hpzcml_flowchart-v2-pointEnd)\">\u003C\u002Fpath>\u003Cpath d=\"M229.261,343L232.198,347.167C235.134,351.333,241.007,359.667,243.944,368C246.88,376.333,246.88,384.667,254.091,394.468C261.302,404.269,275.724,415.539,282.934,421.173L290.145,426.808\" id=\"L_GW_PGW_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_GW_PGW_0\" data-points=\"W3sieCI6MjI5LjI2MTM5Mjk1MTAxMTY2LCJ5IjozNDN9LHsieCI6MjQ2Ljg4MDIwNzA2MTc2NzU4LCJ5IjozNjh9LHsieCI6MjQ2Ljg4MDIwNzA2MTc2NzU4LCJ5IjozOTN9LHsieCI6MjkzLjI5NzAyNDkxMDg1ODU3LCJ5Ijo0MjkuMjcwNzA4NjQ2ODE2Mn1d\" marker-end=\"url(#mx9uhx86equm7hpzcml_flowchart-v2-pointEnd)\">\u003C\u002Fpath>\u003Cpath d=\"M779.505,318.868L709.921,327.057C640.337,335.245,501.168,351.623,431.584,363.978C362,376.333,362,384.667,362,392.618C362,400.569,362,408.137,362,411.922L362,415.706\" id=\"L_BE_PGW_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_BE_PGW_0\" data-points=\"W3sieCI6Nzc5LjUwNTIwNzA2MTc2NzYsInkiOjMxOC44NjgwOTg3NTI0MjkyfSx7IngiOjM2MiwieSI6MzY4fSx7IngiOjM2MiwieSI6MzkzfSx7IngiOjM2MiwieSI6NDE5LjcwNTk3NDU3ODg1NzR9XQ==\" marker-end=\"url(#mx9uhx86equm7hpzcml_flowchart-v2-pointEnd)\">\u003C\u002Fpath>\u003Cpath d=\"M1025.861,343L1038.683,347.167C1051.505,351.333,1077.148,359.667,1089.97,368C1102.792,376.333,1102.792,384.667,1102.792,392.333C1102.792,400,1102.792,407,1102.792,410.5L1102.792,414\" id=\"L_BE_PGR_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_BE_PGR_0\" data-points=\"W3sieCI6MTAyNS44NjA5MTkxNzc1MzIyLCJ5IjozNDN9LHsieCI6MTEwMi43OTE2NjQxMjM1MzUyLCJ5IjozNjh9LHsieCI6MTEwMi43OTE2NjQxMjM1MzUyLCJ5IjozOTN9LHsieCI6MTEwMi43OTE2NjQxMjM1MzUyLCJ5Ijo0MTh9XQ==\" marker-end=\"url(#mx9uhx86equm7hpzcml_flowchart-v2-pointEnd)\">\u003C\u002Fpath>\u003Cpath d=\"M307.61,317.235L375.265,325.696C442.92,334.157,578.231,351.078,645.886,363.706C713.542,376.333,713.542,384.667,746.359,398.412C779.177,412.158,844.812,431.316,877.629,440.895L910.447,450.474\" id=\"L_GW_REDIS_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_GW_REDIS_0\" data-points=\"W3sieCI6MzAzLjY0MDYyODgxNDY5NzI3LCJ5IjozMTYuNzM4OTA0NzM3Mjc4NX0seyJ4Ijo3MTMuNTQxNjY0MTIzNTM1MiwieSI6MzY4fSx7IngiOjcxMy41NDE2NjQxMjM1MzUyLCJ5IjozOTN9LHsieCI6OTE0LjI4NjQ1MzI0NzA3MDMsInkiOjQ1MS41OTUwNTM4NTcxMTM5NX1d\" marker-start=\"url(#mx9uhx86equm7hpzcml_flowchart-v2-pointStart)\" marker-end=\"url(#mx9uhx86equm7hpzcml_flowchart-v2-pointEnd)\">\u003C\u002Fpath>\u003Cpath d=\"M935.639,346.27L938.191,349.891C940.743,353.513,945.848,360.757,948.401,368.545C950.953,376.333,950.953,384.667,950.115,394.141C949.277,403.615,947.601,414.23,946.763,419.537L945.925,424.845\" id=\"L_BE_REDIS_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_BE_REDIS_0\" data-points=\"W3sieCI6OTMzLjMzNDMwNzA3NDU0NjgsInkiOjM0M30seyJ4Ijo5NTAuOTUzMTIxMTg1MzAyNywieSI6MzY4fSx7IngiOjk1MC45NTMxMjExODUzMDI3LCJ5IjozOTN9LHsieCI6OTQ1LjMwMTQ1MjAwOTc1NTgsInkiOjQyOC43OTYwMjkwMTkxNDU0fV0=\" marker-start=\"url(#mx9uhx86equm7hpzcml_flowchart-v2-pointStart)\" marker-end=\"url(#mx9uhx86equm7hpzcml_flowchart-v2-pointEnd)\">\u003C\u002Fpath>\u003Cpath d=\"M451.044,331L455.39,337.167C459.736,343.333,468.428,355.667,472.774,366C477.12,376.333,477.12,384.667,469.909,394.468C462.698,404.269,448.276,415.539,441.066,421.173L433.855,426.808\" id=\"L_MIG_PGW_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_MIG_PGW_0\" data-points=\"W3sieCI6NDUxLjA0Mzk0ODA1NDMxMzY2LCJ5IjozMzF9LHsieCI6NDc3LjExOTc5MjkzODIzMjQsInkiOjM2OH0seyJ4Ijo0NzcuMTE5NzkyOTM4MjMyNCwieSI6MzkzfSx7IngiOjQzMC43MDI5NzUwODkxNDE0MywieSI6NDI5LjI3MDcwODY0NjgxNjJ9XQ==\" marker-end=\"url(#mx9uhx86equm7hpzcml_flowchart-v2-pointEnd)\">\u003C\u002Fpath>\u003C\u002Fg>\u003Cg class=\"edgeLabels\">\u003Cg class=\"edgeLabel\">\u003Cg class=\"label\" data-id=\"L_USER_ING_0\" transform=\"translate(0, 0)\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"edgeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"edgeLabel\" transform=\"translate(201.77604293823242, 203)\">\u003Cg class=\"label\" data-id=\"L_ING_GW_0\" transform=\"translate(-59.046875, -12)\">\u003CforeignObject width=\"118.09375\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"edgeLabel\">\u003Cp>Inference routes\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"edgeLabel\" transform=\"translate(905.8489570617676, 203)\">\u003Cg class=\"label\" data-id=\"L_ING_BE_0\" transform=\"translate(-70.33854675292969, -12)\">\u003CforeignObject width=\"140.67709350585938\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"edgeLabel\">\u003Cp>Management routes\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"edgeLabel\" transform=\"translate(644.9479179382324, 203)\">\u003Cg class=\"label\" data-id=\"L_ING_UI_0\" transform=\"translate(-30.463542938232422, -12)\">\u003CforeignObject width=\"60.927085876464844\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"edgeLabel\">\u003Cp>Static UI\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"edgeLabel\">\u003Cg class=\"label\" data-id=\"L_GW_PROVIDER_0\" transform=\"translate(0, 0)\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"edgeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"edgeLabel\">\u003Cg class=\"label\" data-id=\"L_GW_PGW_0\" transform=\"translate(0, 0)\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"edgeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"edgeLabel\">\u003Cg class=\"label\" data-id=\"L_BE_PGW_0\" transform=\"translate(0, 0)\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"edgeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"edgeLabel\">\u003Cg class=\"label\" data-id=\"L_BE_PGR_0\" transform=\"translate(0, 0)\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"edgeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"edgeLabel\">\u003Cg class=\"label\" data-id=\"L_GW_REDIS_0\" transform=\"translate(0, 0)\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"edgeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"edgeLabel\">\u003Cg class=\"label\" data-id=\"L_BE_REDIS_0\" transform=\"translate(0, 0)\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"edgeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"edgeLabel\">\u003Cg class=\"label\" data-id=\"L_MIG_PGW_0\" transform=\"translate(0, 0)\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"edgeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"nodes\">\u003Cg class=\"node default\" id=\"flowchart-USER-0\" transform=\"translate(690.0520820617676, 35)\">\u003Crect class=\"basic label-container\" style=\"\" x=\"-82.375\" y=\"-27\" width=\"164.75\" height=\"54\">\u003C\u002Frect>\u003Cg class=\"label\" style=\"\" transform=\"translate(-52.375, -12)\">\u003Crect>\u003C\u002Frect>\u003CforeignObject width=\"104.75\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"nodeLabel\">\u003Cp>Client \u002F Admin\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"node default\" id=\"flowchart-ING-1\" transform=\"translate(690.0520820617676, 139)\">\u003Crect class=\"basic label-container\" style=\"\" x=\"-114.09375\" y=\"-27\" width=\"228.1875\" height=\"54\">\u003C\u002Frect>\u003Cg class=\"label\" style=\"\" transform=\"translate(-84.09375, -12)\">\u003Crect>\u003C\u002Frect>\u003CforeignObject width=\"168.1875\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"nodeLabel\">\u003Cp>Ingress \u002F Load Balancer\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"node default\" id=\"flowchart-GW-2\" transform=\"translate(201.77604293823242, 304)\">\u003Crect class=\"basic label-container\" style=\"\" x=\"-101.86458587646484\" y=\"-39\" width=\"203.7291717529297\" height=\"78\">\u003C\u002Frect>\u003Cg class=\"label\" style=\"\" transform=\"translate(-71.86458587646484, -24)\">\u003Crect>\u003C\u002Frect>\u003CforeignObject width=\"143.7291717529297\" height=\"48\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"nodeLabel\">\u003Cp>Gateway Pods :4000\u003Cbr>LLM Data Plane\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"node default\" id=\"flowchart-BE-3\" transform=\"translate(905.8489570617676, 304)\">\u003Crect class=\"basic label-container\" style=\"\" x=\"-126.34375\" y=\"-39\" width=\"252.6875\" height=\"78\">\u003C\u002Frect>\u003Cg class=\"label\" style=\"\" transform=\"translate(-96.34375, -24)\">\u003Crect>\u003C\u002Frect>\u003CforeignObject width=\"192.6875\" height=\"48\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"nodeLabel\">\u003Cp>Backend Pods :4001\u003Cbr>Management Control Plane\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"node default\" id=\"flowchart-UI-4\" transform=\"translate(644.9479179382324, 304)\">\u003Crect class=\"basic label-container\" style=\"\" x=\"-84.55729293823242\" y=\"-39\" width=\"169.11458587646484\" height=\"78\">\u003C\u002Frect>\u003Cg class=\"label\" style=\"\" transform=\"translate(-54.55729293823242, -24)\">\u003Crect>\u003C\u002Frect>\u003CforeignObject width=\"109.11458587646484\" height=\"48\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"nodeLabel\">\u003Cp>UI Pods :3000\u003Cbr>Next.js + Nginx\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"node default\" id=\"flowchart-MIG-5\" transform=\"translate(432.01562881469727, 304)\">\u003Crect class=\"basic label-container\" style=\"\" x=\"-78.375\" y=\"-27\" width=\"156.75\" height=\"54\">\u003C\u002Frect>\u003Cg class=\"label\" style=\"\" transform=\"translate(-48.375, -12)\">\u003Crect>\u003C\u002Frect>\u003CforeignObject width=\"96.75\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"nodeLabel\">\u003Cp>Migration Job\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"node default\" id=\"flowchart-PGW-6\" transform=\"translate(362, 459.234317779541)\">\u003Cpath d=\"M0,13.352228827744536 a71.64583587646484,13.352228827744536 0,0,0 143.2916717529297,0 a71.64583587646484,13.352228827744536 0,0,0 -143.2916717529297,0 l0,52.35222882774454 a71.64583587646484,13.352228827744536 0,0,0 143.2916717529297,0 l0,-52.35222882774454\" class=\"basic label-container\" style=\"\" transform=\"translate(-71.64583587646484, -39.52834324161681)\">\u003C\u002Fpath>\u003Cg class=\"label\" style=\"\" transform=\"translate(-64.14583587646484, -2)\">\u003Crect>\u003C\u002Frect>\u003CforeignObject width=\"128.2916717529297\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"nodeLabel\">\u003Cp>PostgreSQL Writer\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"node default\" id=\"flowchart-PGR-7\" transform=\"translate(1102.7916641235352, 459.234317779541)\">\u003Cpath d=\"M0,14.489542274184895 a86.16146087646484,14.489542274184895 0,0,0 172.3229217529297,0 a86.16146087646484,14.489542274184895 0,0,0 -172.3229217529297,0 l0,53.4895422741849 a86.16146087646484,14.489542274184895 0,0,0 172.3229217529297,0 l0,-53.4895422741849\" class=\"basic label-container\" style=\"\" transform=\"translate(-86.16146087646484, -41.23431341127734)\">\u003C\u002Fpath>\u003Cg class=\"label\" style=\"\" transform=\"translate(-78.66146087646484, -2)\">\u003Crect>\u003C\u002Frect>\u003CforeignObject width=\"157.3229217529297\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"nodeLabel\">\u003Cp>Optional Read Replica\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"node default\" id=\"flowchart-REDIS-8\" transform=\"translate(940.4583282470703, 459.234317779541)\">\u003Cpath d=\"M0,7.378854625550661 a26.171875,7.378854625550661 0,0,0 52.34375,0 a26.171875,7.378854625550661 0,0,0 -52.34375,0 l0,46.37885462555066 a26.171875,7.378854625550661 0,0,0 52.34375,0 l0,-46.37885462555066\" class=\"basic label-container\" style=\"\" transform=\"translate(-26.171875, -30.56828193832599)\">\u003C\u002Fpath>\u003Cg class=\"label\" style=\"\" transform=\"translate(-18.671875, -2)\">\u003Crect>\u003C\u002Frect>\u003CforeignObject width=\"37.34375\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"nodeLabel\">\u003Cp>Redis\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"node default\" id=\"flowchart-PROVIDER-9\" transform=\"translate(94.41666412353516, 459.234317779541)\">\u003Crect class=\"basic label-container\" style=\"\" x=\"-86.41666793823242\" y=\"-27\" width=\"172.83333587646484\" height=\"54\">\u003C\u002Frect>\u003Cg class=\"label\" style=\"\" transform=\"translate(-56.41666793823242, -12)\">\u003Crect>\u003C\u002Frect>\u003CforeignObject width=\"112.83333587646484\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"nodeLabel\">\u003Cp>Model Providers\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003C\u002Fg>\u003C\u002Fg>\u003C\u002Fg>\u003C\u002Fsvg>\u003Cdiv class=\"md-editor-mermaid-action\">\u003Cspan class=\"md-editor-mermaid-copy\">\u003Csvg xmlns=\"http:\u002F\u002Fwww.w3.org\u002F2000\u002Fsvg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"lucide lucide-copy md-editor-icon\">\u003Crect width=\"14\" height=\"14\" x=\"8\" y=\"8\" rx=\"2\" ry=\"2\">\u003C\u002Frect>\u003Cpath d=\"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2\">\u003C\u002Fpath>\u003C\u002Fsvg>\u003C\u002Fspan>\u003Cspan class=\"md-editor-mermaid-zoom\">\u003Csvg xmlns=\"http:\u002F\u002Fwww.w3.org\u002F2000\u002Fsvg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"lucide lucide-pin-off md-editor-icon\">\u003Cpath d=\"M12 17v5\">\u003C\u002Fpath>\u003Cpath d=\"M15 9.34V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H7.89\">\u003C\u002Fpath>\u003Cpath d=\"m2 2 20 20\">\u003C\u002Fpath>\u003Cpath d=\"M9 9v1.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h11\">\u003C\u002Fpath>\u003C\u002Fsvg>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002Fp>\u003Cp data-line=\"846\">组件化部署的核心价值是隔离故障域和扩缩容单元：\u003C\u002Fp>\n\u003Cul data-line=\"848\">\n\u003Cli data-line=\"848\">Gateway 根据推理 QPS、并发和模型调用延迟扩容。\u003C\u002Fli>\n\u003Cli data-line=\"849\">Backend 根据管理 API 和报表查询压力扩容。\u003C\u002Fli>\n\u003Cli data-line=\"850\">UI 根据管理用户访问量扩容。\u003C\u002Fli>\n\u003Cli data-line=\"851\">Analytics 读请求可以走只读副本，减少对账务写入的影响。\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Cp data-line=\"853\">注意：该组件化形态是官方 Helm \u002F Kubernetes 部署架构，不等于此前的单容器 Docker Compose 会自动拥有 4000 \u002F 4001 \u002F 3000 三个独立服务。\u003C\u002Fp>\n\u003Ch3 data-line=\"855\" id=\"11.3 对当前 SEABRID 服务器的部署建议\">11.3 对当前 SEABRID 服务器的部署建议\u003C\u002Fh3>\n\u003Cp data-line=\"857\">当前阶段建议：\u003C\u002Fp>\n\u003Cp data-line=\"859\" class=\"md-editor-mermaid\" data-mermaid-theme=\"light\" data-closed=\"true\" data-processed=\"\" data-content=\"flowchart TB\n    N[&quot;Nginx \u002F HTTPS&quot;]\n    UI[&quot;LiteLLM 单体 Proxy + Admin UI&quot;]\n    PG[(&quot;现有 PostgreSQL&lt;br\u002F&gt;独立 litellm DB&quot;)]\n    R[&quot;Redis（后续按需求增加）&quot;]\n    H[&quot;DeepSeek Harness \u002F SEABRID OS&quot;]\n    P[&quot;DeepSeek \u002F OpenAI \u002F Claude \u002F Local Models&quot;]\n\n    H --&gt; N --&gt; UI\n    UI --&gt; PG\n    UI &lt;--&gt; R\n    UI --&gt; P\">\u003Csvg id=\"mx9unloyvrd0yu1075b\" width=\"100%\" xmlns=\"http:\u002F\u002Fwww.w3.org\u002F2000\u002Fsvg\" xmlns:xlink=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxlink\" class=\"flowchart\" style=\"max-width: 748.3333740234375px;\" viewBox=\"0 0 748.3333740234375 477.37744140625\" role=\"graphics-document document\" aria-roledescription=\"flowchart-v2\">\u003Cstyle>#mx9unloyvrd0yu1075b{font-family:\"trebuchet ms\",verdana,arial,sans-serif;font-size:16px;fill:#333;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#mx9unloyvrd0yu1075b .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#mx9unloyvrd0yu1075b .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#mx9unloyvrd0yu1075b .error-icon{fill:#552222;}#mx9unloyvrd0yu1075b .error-text{fill:#552222;stroke:#552222;}#mx9unloyvrd0yu1075b .edge-thickness-normal{stroke-width:1px;}#mx9unloyvrd0yu1075b .edge-thickness-thick{stroke-width:3.5px;}#mx9unloyvrd0yu1075b .edge-pattern-solid{stroke-dasharray:0;}#mx9unloyvrd0yu1075b .edge-thickness-invisible{stroke-width:0;fill:none;}#mx9unloyvrd0yu1075b .edge-pattern-dashed{stroke-dasharray:3;}#mx9unloyvrd0yu1075b .edge-pattern-dotted{stroke-dasharray:2;}#mx9unloyvrd0yu1075b .marker{fill:#333333;stroke:#333333;}#mx9unloyvrd0yu1075b .marker.cross{stroke:#333333;}#mx9unloyvrd0yu1075b svg{font-family:\"trebuchet ms\",verdana,arial,sans-serif;font-size:16px;}#mx9unloyvrd0yu1075b p{margin:0;}#mx9unloyvrd0yu1075b .label{font-family:\"trebuchet ms\",verdana,arial,sans-serif;color:#333;}#mx9unloyvrd0yu1075b .cluster-label text{fill:#333;}#mx9unloyvrd0yu1075b .cluster-label span{color:#333;}#mx9unloyvrd0yu1075b .cluster-label span p{background-color:transparent;}#mx9unloyvrd0yu1075b .label text,#mx9unloyvrd0yu1075b span{fill:#333;color:#333;}#mx9unloyvrd0yu1075b .node rect,#mx9unloyvrd0yu1075b .node circle,#mx9unloyvrd0yu1075b .node ellipse,#mx9unloyvrd0yu1075b .node polygon,#mx9unloyvrd0yu1075b .node path{fill:#ECECFF;stroke:#9370DB;stroke-width:1px;}#mx9unloyvrd0yu1075b .rough-node .label text,#mx9unloyvrd0yu1075b .node .label text,#mx9unloyvrd0yu1075b .image-shape .label,#mx9unloyvrd0yu1075b .icon-shape .label{text-anchor:middle;}#mx9unloyvrd0yu1075b .node .katex path{fill:#000;stroke:#000;stroke-width:1px;}#mx9unloyvrd0yu1075b .rough-node .label,#mx9unloyvrd0yu1075b .node .label,#mx9unloyvrd0yu1075b .image-shape .label,#mx9unloyvrd0yu1075b .icon-shape .label{text-align:center;}#mx9unloyvrd0yu1075b .node.clickable{cursor:pointer;}#mx9unloyvrd0yu1075b .root .anchor path{fill:#333333!important;stroke-width:0;stroke:#333333;}#mx9unloyvrd0yu1075b .arrowheadPath{fill:#333333;}#mx9unloyvrd0yu1075b .edgePath .path{stroke:#333333;stroke-width:2.0px;}#mx9unloyvrd0yu1075b .flowchart-link{stroke:#333333;fill:none;}#mx9unloyvrd0yu1075b .edgeLabel{background-color:rgba(232,232,232, 0.8);text-align:center;}#mx9unloyvrd0yu1075b .edgeLabel p{background-color:rgba(232,232,232, 0.8);}#mx9unloyvrd0yu1075b .edgeLabel rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mx9unloyvrd0yu1075b .labelBkg{background-color:rgba(232, 232, 232, 0.5);}#mx9unloyvrd0yu1075b .cluster rect{fill:#ffffde;stroke:#aaaa33;stroke-width:1px;}#mx9unloyvrd0yu1075b .cluster text{fill:#333;}#mx9unloyvrd0yu1075b .cluster span{color:#333;}#mx9unloyvrd0yu1075b div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:\"trebuchet ms\",verdana,arial,sans-serif;font-size:12px;background:hsl(80, 100%, 96.2745098039%);border:1px solid #aaaa33;border-radius:2px;pointer-events:none;z-index:100;}#mx9unloyvrd0yu1075b .flowchartTitleText{text-anchor:middle;font-size:18px;fill:#333;}#mx9unloyvrd0yu1075b rect.text{fill:none;stroke-width:0;}#mx9unloyvrd0yu1075b .icon-shape,#mx9unloyvrd0yu1075b .image-shape{background-color:rgba(232,232,232, 0.8);text-align:center;}#mx9unloyvrd0yu1075b .icon-shape p,#mx9unloyvrd0yu1075b .image-shape p{background-color:rgba(232,232,232, 0.8);padding:2px;}#mx9unloyvrd0yu1075b .icon-shape rect,#mx9unloyvrd0yu1075b .image-shape rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mx9unloyvrd0yu1075b .label-icon{display:inline-block;height:1em;overflow:visible;vertical-align:-0.125em;}#mx9unloyvrd0yu1075b .node .label-icon path{fill:currentColor;stroke:revert;stroke-width:revert;}#mx9unloyvrd0yu1075b :root{--mermaid-font-family:\"trebuchet ms\",verdana,arial,sans-serif;}\u003C\u002Fstyle>\u003Cg>\u003Cmarker id=\"mx9unloyvrd0yu1075b_flowchart-v2-pointEnd\" class=\"marker flowchart-v2\" viewBox=\"0 0 10 10\" refX=\"5\" refY=\"5\" markerUnits=\"userSpaceOnUse\" markerWidth=\"8\" markerHeight=\"8\" orient=\"auto\">\u003Cpath d=\"M 0 0 L 10 5 L 0 10 z\" class=\"arrowMarkerPath\" style=\"stroke-width: 1; stroke-dasharray: 1, 0;\">\u003C\u002Fpath>\u003C\u002Fmarker>\u003Cmarker id=\"mx9unloyvrd0yu1075b_flowchart-v2-pointStart\" class=\"marker flowchart-v2\" viewBox=\"0 0 10 10\" refX=\"4.5\" refY=\"5\" markerUnits=\"userSpaceOnUse\" markerWidth=\"8\" markerHeight=\"8\" orient=\"auto\">\u003Cpath d=\"M 0 5 L 10 10 L 10 0 z\" class=\"arrowMarkerPath\" style=\"stroke-width: 1; stroke-dasharray: 1, 0;\">\u003C\u002Fpath>\u003C\u002Fmarker>\u003Cmarker id=\"mx9unloyvrd0yu1075b_flowchart-v2-circleEnd\" class=\"marker flowchart-v2\" viewBox=\"0 0 10 10\" refX=\"11\" refY=\"5\" markerUnits=\"userSpaceOnUse\" markerWidth=\"11\" markerHeight=\"11\" orient=\"auto\">\u003Ccircle cx=\"5\" cy=\"5\" r=\"5\" class=\"arrowMarkerPath\" style=\"stroke-width: 1; stroke-dasharray: 1, 0;\">\u003C\u002Fcircle>\u003C\u002Fmarker>\u003Cmarker id=\"mx9unloyvrd0yu1075b_flowchart-v2-circleStart\" class=\"marker flowchart-v2\" viewBox=\"0 0 10 10\" refX=\"-1\" refY=\"5\" markerUnits=\"userSpaceOnUse\" markerWidth=\"11\" markerHeight=\"11\" orient=\"auto\">\u003Ccircle cx=\"5\" cy=\"5\" r=\"5\" class=\"arrowMarkerPath\" style=\"stroke-width: 1; stroke-dasharray: 1, 0;\">\u003C\u002Fcircle>\u003C\u002Fmarker>\u003Cmarker id=\"mx9unloyvrd0yu1075b_flowchart-v2-crossEnd\" class=\"marker cross flowchart-v2\" viewBox=\"0 0 11 11\" refX=\"12\" refY=\"5.2\" markerUnits=\"userSpaceOnUse\" markerWidth=\"11\" markerHeight=\"11\" orient=\"auto\">\u003Cpath d=\"M 1,1 l 9,9 M 10,1 l -9,9\" class=\"arrowMarkerPath\" style=\"stroke-width: 2; stroke-dasharray: 1, 0;\">\u003C\u002Fpath>\u003C\u002Fmarker>\u003Cmarker id=\"mx9unloyvrd0yu1075b_flowchart-v2-crossStart\" class=\"marker cross flowchart-v2\" viewBox=\"0 0 11 11\" refX=\"-1\" refY=\"5.2\" markerUnits=\"userSpaceOnUse\" markerWidth=\"11\" markerHeight=\"11\" orient=\"auto\">\u003Cpath d=\"M 1,1 l 9,9 M 10,1 l -9,9\" class=\"arrowMarkerPath\" style=\"stroke-width: 2; stroke-dasharray: 1, 0;\">\u003C\u002Fpath>\u003C\u002Fmarker>\u003Cg class=\"root\">\u003Cg class=\"clusters\">\u003C\u002Fg>\u003Cg class=\"edgePaths\">\u003Cpath d=\"M309.661,86L309.661,90.167C309.661,94.333,309.661,102.667,309.661,110.333C309.661,118,309.661,125,309.661,128.5L309.661,132\" id=\"L_H_N_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_H_N_0\" data-points=\"W3sieCI6MzA5LjY2MTQ2ODUwNTg1OTQsInkiOjg2fSx7IngiOjMwOS42NjE0Njg1MDU4NTk0LCJ5IjoxMTF9LHsieCI6MzA5LjY2MTQ2ODUwNTg1OTQsInkiOjEzNn1d\" marker-end=\"url(#mx9unloyvrd0yu1075b_flowchart-v2-pointEnd)\">\u003C\u002Fpath>\u003Cpath d=\"M309.661,190L309.661,194.167C309.661,198.333,309.661,206.667,309.661,214.333C309.661,222,309.661,229,309.661,232.5L309.661,236\" id=\"L_N_UI_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_N_UI_0\" data-points=\"W3sieCI6MzA5LjY2MTQ2ODUwNTg1OTQsInkiOjE5MH0seyJ4IjozMDkuNjYxNDY4NTA1ODU5NCwieSI6MjE1fSx7IngiOjMwOS42NjE0Njg1MDU4NTk0LCJ5IjoyNDB9XQ==\" marker-end=\"url(#mx9unloyvrd0yu1075b_flowchart-v2-pointEnd)\">\u003C\u002Fpath>\u003Cpath d=\"M179.661,314.229L161.967,319.024C144.273,323.82,108.884,333.41,91.189,341.705C73.495,350,73.495,357,73.495,360.5L73.495,364\" id=\"L_UI_PG_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_UI_PG_0\" data-points=\"W3sieCI6MTc5LjY2MTQ2ODUwNTg1OTM4LCJ5IjozMTQuMjI5MzU3MDM5NDM5Mn0seyJ4Ijo3My40OTQ3OTY3NTI5Mjk2OSwieSI6MzQzfSx7IngiOjczLjQ5NDc5Njc1MjkyOTY5LCJ5IjozNjh9XQ==\" marker-end=\"url(#mx9unloyvrd0yu1075b_flowchart-v2-pointEnd)\">\u003C\u002Fpath>\u003Cpath d=\"M309.661,322L309.661,325.5C309.661,329,309.661,336,309.661,346.948C309.661,357.896,309.661,372.792,309.661,380.241L309.661,387.689\" id=\"L_UI_R_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_UI_R_0\" data-points=\"W3sieCI6MzA5LjY2MTQ2ODUwNTg1OTQsInkiOjMxOH0seyJ4IjozMDkuNjYxNDY4NTA1ODU5NCwieSI6MzQzfSx7IngiOjMwOS42NjE0Njg1MDU4NTk0LCJ5IjozOTEuNjg4NzA5MjU5MDMzMn1d\" marker-start=\"url(#mx9unloyvrd0yu1075b_flowchart-v2-pointStart)\" marker-end=\"url(#mx9unloyvrd0yu1075b_flowchart-v2-pointEnd)\">\u003C\u002Fpath>\u003Cpath d=\"M439.661,306.671L468.107,312.726C496.552,318.781,553.443,330.89,581.888,342.393C610.333,353.896,610.333,364.792,610.333,370.241L610.333,375.689\" id=\"L_UI_P_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_UI_P_0\" data-points=\"W3sieCI6NDM5LjY2MTQ2ODUwNTg1OTQsInkiOjMwNi42NzEzNjEwMTQzOTQ4NX0seyJ4Ijo2MTAuMzMzMzQzNTA1ODU5NCwieSI6MzQzfSx7IngiOjYxMC4zMzMzNDM1MDU4NTk0LCJ5IjozNzkuNjg4NzA5MjU5MDMzMn1d\" marker-end=\"url(#mx9unloyvrd0yu1075b_flowchart-v2-pointEnd)\">\u003C\u002Fpath>\u003C\u002Fg>\u003Cg class=\"edgeLabels\">\u003Cg class=\"edgeLabel\">\u003Cg class=\"label\" data-id=\"L_H_N_0\" transform=\"translate(0, 0)\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"edgeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"edgeLabel\">\u003Cg class=\"label\" data-id=\"L_N_UI_0\" transform=\"translate(0, 0)\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"edgeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"edgeLabel\">\u003Cg class=\"label\" data-id=\"L_UI_PG_0\" transform=\"translate(0, 0)\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"edgeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"edgeLabel\">\u003Cg class=\"label\" data-id=\"L_UI_R_0\" transform=\"translate(0, 0)\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"edgeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"edgeLabel\">\u003Cg class=\"label\" data-id=\"L_UI_P_0\" transform=\"translate(0, 0)\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"edgeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"nodes\">\u003Cg class=\"node default\" id=\"flowchart-N-0\" transform=\"translate(309.6614685058594, 163)\">\u003Crect class=\"basic label-container\" style=\"\" x=\"-81.63021087646484\" y=\"-27\" width=\"163.2604217529297\" height=\"54\">\u003C\u002Frect>\u003Cg class=\"label\" style=\"\" transform=\"translate(-51.630210876464844, -12)\">\u003Crect>\u003C\u002Frect>\u003CforeignObject width=\"103.26042175292969\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"nodeLabel\">\u003Cp>Nginx \u002F HTTPS\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"node default\" id=\"flowchart-UI-1\" transform=\"translate(309.6614685058594, 279)\">\u003Crect class=\"basic label-container\" style=\"\" x=\"-130\" y=\"-39\" width=\"260\" height=\"78\">\u003C\u002Frect>\u003Cg class=\"label\" style=\"\" transform=\"translate(-100, -24)\">\u003Crect>\u003C\u002Frect>\u003CforeignObject width=\"200\" height=\"48\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table; white-space: break-spaces; line-height: 1.5; max-width: 200px; text-align: center; width: 200px;\">\u003Cspan class=\"nodeLabel\">\u003Cp>LiteLLM 单体 Proxy + Admin UI\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"node default\" id=\"flowchart-PG-2\" transform=\"translate(73.49479675292969, 418.6887092590332)\">\u003Cpath d=\"M0,12.792472145690883 a65.49479293823242,12.792472145690883 0,0,0 130.98958587646484,0 a65.49479293823242,12.792472145690883 0,0,0 -130.98958587646484,0 l0,75.79247214569088 a65.49479293823242,12.792472145690883 0,0,0 130.98958587646484,0 l0,-75.79247214569088\" class=\"basic label-container\" style=\"\" transform=\"translate(-65.49479293823242, -50.68870821853632)\">\u003C\u002Fpath>\u003Cg class=\"label\" style=\"\" transform=\"translate(-57.99479293823242, -14)\">\u003Crect>\u003C\u002Frect>\u003CforeignObject width=\"115.98958587646484\" height=\"48\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"nodeLabel\">\u003Cp>现有 PostgreSQL\u003Cbr>独立 litellm DB\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"node default\" id=\"flowchart-R-3\" transform=\"translate(309.6614685058594, 418.6887092590332)\">\u003Crect class=\"basic label-container\" style=\"\" x=\"-120.671875\" y=\"-27\" width=\"241.34375\" height=\"54\">\u003C\u002Frect>\u003Cg class=\"label\" style=\"\" transform=\"translate(-90.671875, -12)\">\u003Crect>\u003C\u002Frect>\u003CforeignObject width=\"181.34375\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"nodeLabel\">\u003Cp>Redis（后续按需求增加）\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"node default\" id=\"flowchart-H-4\" transform=\"translate(309.6614685058594, 47)\">\u003Crect class=\"basic label-container\" style=\"\" x=\"-130\" y=\"-39\" width=\"260\" height=\"78\">\u003C\u002Frect>\u003Cg class=\"label\" style=\"\" transform=\"translate(-100, -24)\">\u003Crect>\u003C\u002Frect>\u003CforeignObject width=\"200\" height=\"48\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table; white-space: break-spaces; line-height: 1.5; max-width: 200px; text-align: center; width: 200px;\">\u003Cspan class=\"nodeLabel\">\u003Cp>DeepSeek Harness \u002F SEABRID OS\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"node default\" id=\"flowchart-P-5\" transform=\"translate(610.3333435058594, 418.6887092590332)\">\u003Crect class=\"basic label-container\" style=\"\" x=\"-130\" y=\"-39\" width=\"260\" height=\"78\">\u003C\u002Frect>\u003Cg class=\"label\" style=\"\" transform=\"translate(-100, -24)\">\u003Crect>\u003C\u002Frect>\u003CforeignObject width=\"200\" height=\"48\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table; white-space: break-spaces; line-height: 1.5; max-width: 200px; text-align: center; width: 200px;\">\u003Cspan class=\"nodeLabel\">\u003Cp>DeepSeek \u002F OpenAI \u002F Claude \u002F Local Models\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003C\u002Fg>\u003C\u002Fg>\u003C\u002Fg>\u003C\u002Fsvg>\u003Cdiv class=\"md-editor-mermaid-action\">\u003Cspan class=\"md-editor-mermaid-copy\">\u003Csvg xmlns=\"http:\u002F\u002Fwww.w3.org\u002F2000\u002Fsvg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"lucide lucide-copy md-editor-icon\">\u003Crect width=\"14\" height=\"14\" x=\"8\" y=\"8\" rx=\"2\" ry=\"2\">\u003C\u002Frect>\u003Cpath d=\"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2\">\u003C\u002Fpath>\u003C\u002Fsvg>\u003C\u002Fspan>\u003Cspan class=\"md-editor-mermaid-zoom\">\u003Csvg xmlns=\"http:\u002F\u002Fwww.w3.org\u002F2000\u002Fsvg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"lucide lucide-pin-off md-editor-icon\">\u003Cpath d=\"M12 17v5\">\u003C\u002Fpath>\u003Cpath d=\"M15 9.34V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H7.89\">\u003C\u002Fpath>\u003Cpath d=\"m2 2 20 20\">\u003C\u002Fpath>\u003Cpath d=\"M9 9v1.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h11\">\u003C\u002Fpath>\u003C\u002Fsvg>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002Fp>\u003Cul data-line=\"874\">\n\u003Cli data-line=\"874\">当前单机阶段使用单体 Docker Compose，降低运维复杂度。\u003C\u002Fli>\n\u003Cli data-line=\"875\">PostgreSQL 独立数据库、独立账号。\u003C\u002Fli>\n\u003Cli data-line=\"876\">Redis 不是首期硬性依赖，但多副本和严格限流时应加入。\u003C\u002Fli>\n\u003Cli data-line=\"877\">管理 UI 不直接暴露公网。\u003C\u002Fli>\n\u003Cli data-line=\"878\">当模型流量、管理查询或团队数量增长后，再评估官方组件化 Helm 部署。\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Chr data-line=\"880\">\n\u003Ch2 data-line=\"882\" id=\"12. 可观测性与成本治理\">12. 可观测性与成本治理\u003C\u002Fh2>\n\u003Ch3 data-line=\"884\" id=\"12.1 观测对象\">12.1 观测对象\u003C\u002Fh3>\n\u003Ctable data-line=\"886\">\n\u003Cthead data-line=\"886\">\n\u003Ctr data-line=\"886\">\n\u003Cth>层次\u003C\u002Fth>\n\u003Cth>关键指标\u003C\u002Fth>\n\u003C\u002Ftr>\n\u003C\u002Fthead>\n\u003Ctbody data-line=\"888\">\n\u003Ctr data-line=\"888\">\n\u003Ctd>Gateway\u003C\u002Ftd>\n\u003Ctd>QPS、请求成功率、P50\u002FP95\u002FP99、并发数\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr data-line=\"889\">\n\u003Ctd>Provider\u003C\u002Ftd>\n\u003Ctd>各厂商成功率、429\u002F5xx、超时、延迟\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr data-line=\"890\">\n\u003Ctd>Router\u003C\u002Ftd>\n\u003Ctd>各 Deployment 请求量、Fallback、Retry、Cooldown\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr data-line=\"891\">\n\u003Ctd>Key \u002F Team\u003C\u002Ftd>\n\u003Ctd>RPM、TPM、预算使用率、拒绝次数\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr data-line=\"892\">\n\u003Ctd>Token\u003C\u002Ftd>\n\u003Ctd>Prompt Tokens、Completion Tokens、缓存 Token\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr data-line=\"893\">\n\u003Ctd>Cost\u003C\u002Ftd>\n\u003Ctd>单请求费用、模型费用、团队费用、项目费用\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr data-line=\"894\">\n\u003Ctd>Infrastructure\u003C\u002Ftd>\n\u003Ctd>CPU、内存、Redis 延迟、PostgreSQL 连接池\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr data-line=\"895\">\n\u003Ctd>Background\u003C\u002Ftd>\n\u003Ctd>Spend Queue 深度、Flush 延迟、失败重试\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003C\u002Ftbody>\n\u003C\u002Ftable>\n\u003Ch3 data-line=\"897\" id=\"12.2 成本计算链路\">12.2 成本计算链路\u003C\u002Fh3>\n\u003Cp data-line=\"899\" class=\"md-editor-mermaid\" data-mermaid-theme=\"light\" data-closed=\"true\" data-processed=\"\" data-content=\"flowchart LR\n    R[&quot;Provider Response&quot;] --&gt; U[&quot;Usage Normalize&quot;]\n    U --&gt; P[&quot;Model Pricing \u002F Custom Pricing&quot;]\n    P --&gt; C[&quot;Request Cost&quot;]\n    C --&gt; ATTR[&quot;Key \u002F User \u002F Team \u002F Project Attribution&quot;]\n    ATTR --&gt; B[&quot;Budget \u002F Spend Counters&quot;]\n    B --&gt; LOG[&quot;Spend Logs \u002F Daily Rollups&quot;]\n    LOG --&gt; BI[&quot;Dashboard \u002F Export \u002F SEABRID Analytics&quot;]\">\u003Csvg id=\"mx9unoh40p3mt1l2060d\" width=\"100%\" xmlns=\"http:\u002F\u002Fwww.w3.org\u002F2000\u002Fsvg\" xmlns:xlink=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxlink\" class=\"flowchart\" style=\"max-width: 2154.05224609375px;\" viewBox=\"0 0 2154.05224609375 94\" role=\"graphics-document document\" aria-roledescription=\"flowchart-v2\">\u003Cstyle>#mx9unoh40p3mt1l2060d{font-family:\"trebuchet ms\",verdana,arial,sans-serif;font-size:16px;fill:#333;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#mx9unoh40p3mt1l2060d .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#mx9unoh40p3mt1l2060d .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#mx9unoh40p3mt1l2060d .error-icon{fill:#552222;}#mx9unoh40p3mt1l2060d .error-text{fill:#552222;stroke:#552222;}#mx9unoh40p3mt1l2060d .edge-thickness-normal{stroke-width:1px;}#mx9unoh40p3mt1l2060d .edge-thickness-thick{stroke-width:3.5px;}#mx9unoh40p3mt1l2060d .edge-pattern-solid{stroke-dasharray:0;}#mx9unoh40p3mt1l2060d .edge-thickness-invisible{stroke-width:0;fill:none;}#mx9unoh40p3mt1l2060d .edge-pattern-dashed{stroke-dasharray:3;}#mx9unoh40p3mt1l2060d .edge-pattern-dotted{stroke-dasharray:2;}#mx9unoh40p3mt1l2060d .marker{fill:#333333;stroke:#333333;}#mx9unoh40p3mt1l2060d .marker.cross{stroke:#333333;}#mx9unoh40p3mt1l2060d svg{font-family:\"trebuchet ms\",verdana,arial,sans-serif;font-size:16px;}#mx9unoh40p3mt1l2060d p{margin:0;}#mx9unoh40p3mt1l2060d .label{font-family:\"trebuchet ms\",verdana,arial,sans-serif;color:#333;}#mx9unoh40p3mt1l2060d .cluster-label text{fill:#333;}#mx9unoh40p3mt1l2060d .cluster-label span{color:#333;}#mx9unoh40p3mt1l2060d .cluster-label span p{background-color:transparent;}#mx9unoh40p3mt1l2060d .label text,#mx9unoh40p3mt1l2060d span{fill:#333;color:#333;}#mx9unoh40p3mt1l2060d .node rect,#mx9unoh40p3mt1l2060d .node circle,#mx9unoh40p3mt1l2060d .node ellipse,#mx9unoh40p3mt1l2060d .node polygon,#mx9unoh40p3mt1l2060d .node path{fill:#ECECFF;stroke:#9370DB;stroke-width:1px;}#mx9unoh40p3mt1l2060d .rough-node .label text,#mx9unoh40p3mt1l2060d .node .label text,#mx9unoh40p3mt1l2060d .image-shape .label,#mx9unoh40p3mt1l2060d .icon-shape .label{text-anchor:middle;}#mx9unoh40p3mt1l2060d .node .katex path{fill:#000;stroke:#000;stroke-width:1px;}#mx9unoh40p3mt1l2060d .rough-node .label,#mx9unoh40p3mt1l2060d .node .label,#mx9unoh40p3mt1l2060d .image-shape .label,#mx9unoh40p3mt1l2060d .icon-shape .label{text-align:center;}#mx9unoh40p3mt1l2060d .node.clickable{cursor:pointer;}#mx9unoh40p3mt1l2060d .root .anchor path{fill:#333333!important;stroke-width:0;stroke:#333333;}#mx9unoh40p3mt1l2060d .arrowheadPath{fill:#333333;}#mx9unoh40p3mt1l2060d .edgePath .path{stroke:#333333;stroke-width:2.0px;}#mx9unoh40p3mt1l2060d .flowchart-link{stroke:#333333;fill:none;}#mx9unoh40p3mt1l2060d .edgeLabel{background-color:rgba(232,232,232, 0.8);text-align:center;}#mx9unoh40p3mt1l2060d .edgeLabel p{background-color:rgba(232,232,232, 0.8);}#mx9unoh40p3mt1l2060d .edgeLabel rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mx9unoh40p3mt1l2060d .labelBkg{background-color:rgba(232, 232, 232, 0.5);}#mx9unoh40p3mt1l2060d .cluster rect{fill:#ffffde;stroke:#aaaa33;stroke-width:1px;}#mx9unoh40p3mt1l2060d .cluster text{fill:#333;}#mx9unoh40p3mt1l2060d .cluster span{color:#333;}#mx9unoh40p3mt1l2060d div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:\"trebuchet ms\",verdana,arial,sans-serif;font-size:12px;background:hsl(80, 100%, 96.2745098039%);border:1px solid #aaaa33;border-radius:2px;pointer-events:none;z-index:100;}#mx9unoh40p3mt1l2060d .flowchartTitleText{text-anchor:middle;font-size:18px;fill:#333;}#mx9unoh40p3mt1l2060d rect.text{fill:none;stroke-width:0;}#mx9unoh40p3mt1l2060d .icon-shape,#mx9unoh40p3mt1l2060d .image-shape{background-color:rgba(232,232,232, 0.8);text-align:center;}#mx9unoh40p3mt1l2060d .icon-shape p,#mx9unoh40p3mt1l2060d .image-shape p{background-color:rgba(232,232,232, 0.8);padding:2px;}#mx9unoh40p3mt1l2060d .icon-shape rect,#mx9unoh40p3mt1l2060d .image-shape rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mx9unoh40p3mt1l2060d .label-icon{display:inline-block;height:1em;overflow:visible;vertical-align:-0.125em;}#mx9unoh40p3mt1l2060d .node .label-icon path{fill:currentColor;stroke:revert;stroke-width:revert;}#mx9unoh40p3mt1l2060d :root{--mermaid-font-family:\"trebuchet ms\",verdana,arial,sans-serif;}\u003C\u002Fstyle>\u003Cg>\u003Cmarker id=\"mx9unoh40p3mt1l2060d_flowchart-v2-pointEnd\" class=\"marker flowchart-v2\" viewBox=\"0 0 10 10\" refX=\"5\" refY=\"5\" markerUnits=\"userSpaceOnUse\" markerWidth=\"8\" markerHeight=\"8\" orient=\"auto\">\u003Cpath d=\"M 0 0 L 10 5 L 0 10 z\" class=\"arrowMarkerPath\" style=\"stroke-width: 1; stroke-dasharray: 1, 0;\">\u003C\u002Fpath>\u003C\u002Fmarker>\u003Cmarker id=\"mx9unoh40p3mt1l2060d_flowchart-v2-pointStart\" class=\"marker flowchart-v2\" viewBox=\"0 0 10 10\" refX=\"4.5\" refY=\"5\" markerUnits=\"userSpaceOnUse\" markerWidth=\"8\" markerHeight=\"8\" orient=\"auto\">\u003Cpath d=\"M 0 5 L 10 10 L 10 0 z\" class=\"arrowMarkerPath\" style=\"stroke-width: 1; stroke-dasharray: 1, 0;\">\u003C\u002Fpath>\u003C\u002Fmarker>\u003Cmarker id=\"mx9unoh40p3mt1l2060d_flowchart-v2-circleEnd\" class=\"marker flowchart-v2\" viewBox=\"0 0 10 10\" refX=\"11\" refY=\"5\" markerUnits=\"userSpaceOnUse\" markerWidth=\"11\" markerHeight=\"11\" orient=\"auto\">\u003Ccircle cx=\"5\" cy=\"5\" r=\"5\" class=\"arrowMarkerPath\" style=\"stroke-width: 1; stroke-dasharray: 1, 0;\">\u003C\u002Fcircle>\u003C\u002Fmarker>\u003Cmarker id=\"mx9unoh40p3mt1l2060d_flowchart-v2-circleStart\" class=\"marker flowchart-v2\" viewBox=\"0 0 10 10\" refX=\"-1\" refY=\"5\" markerUnits=\"userSpaceOnUse\" markerWidth=\"11\" markerHeight=\"11\" orient=\"auto\">\u003Ccircle cx=\"5\" cy=\"5\" r=\"5\" class=\"arrowMarkerPath\" style=\"stroke-width: 1; stroke-dasharray: 1, 0;\">\u003C\u002Fcircle>\u003C\u002Fmarker>\u003Cmarker id=\"mx9unoh40p3mt1l2060d_flowchart-v2-crossEnd\" class=\"marker cross flowchart-v2\" viewBox=\"0 0 11 11\" refX=\"12\" refY=\"5.2\" markerUnits=\"userSpaceOnUse\" markerWidth=\"11\" markerHeight=\"11\" orient=\"auto\">\u003Cpath d=\"M 1,1 l 9,9 M 10,1 l -9,9\" class=\"arrowMarkerPath\" style=\"stroke-width: 2; stroke-dasharray: 1, 0;\">\u003C\u002Fpath>\u003C\u002Fmarker>\u003Cmarker id=\"mx9unoh40p3mt1l2060d_flowchart-v2-crossStart\" class=\"marker cross flowchart-v2\" viewBox=\"0 0 11 11\" refX=\"-1\" refY=\"5.2\" markerUnits=\"userSpaceOnUse\" markerWidth=\"11\" markerHeight=\"11\" orient=\"auto\">\u003Cpath d=\"M 1,1 l 9,9 M 10,1 l -9,9\" class=\"arrowMarkerPath\" style=\"stroke-width: 2; stroke-dasharray: 1, 0;\">\u003C\u002Fpath>\u003C\u002Fmarker>\u003Cg class=\"root\">\u003Cg class=\"clusters\">\u003C\u002Fg>\u003Cg class=\"edgePaths\">\u003Cpath d=\"M197.375,47L201.542,47C205.708,47,214.042,47,221.708,47C229.375,47,236.375,47,239.875,47L243.375,47\" id=\"L_R_U_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_R_U_0\" data-points=\"W3sieCI6MTk3LjM3NSwieSI6NDd9LHsieCI6MjIyLjM3NSwieSI6NDd9LHsieCI6MjQ3LjM3NSwieSI6NDd9XQ==\" marker-end=\"url(#mx9unoh40p3mt1l2060d_flowchart-v2-pointEnd)\">\u003C\u002Fpath>\u003Cpath d=\"M426.521,47L430.687,47C434.854,47,443.187,47,450.854,47C458.521,47,465.521,47,469.021,47L472.521,47\" id=\"L_U_P_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_U_P_0\" data-points=\"W3sieCI6NDI2LjUyMDgyODI0NzA3MDMsInkiOjQ3fSx7IngiOjQ1MS41MjA4MjgyNDcwNzAzLCJ5Ijo0N30seyJ4Ijo0NzYuNTIwODI4MjQ3MDcwMywieSI6NDd9XQ==\" marker-end=\"url(#mx9unoh40p3mt1l2060d_flowchart-v2-pointEnd)\">\u003C\u002Fpath>\u003Cpath d=\"M736.521,47L740.687,47C744.854,47,753.187,47,760.854,47C768.521,47,775.521,47,779.021,47L782.521,47\" id=\"L_P_C_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_P_C_0\" data-points=\"W3sieCI6NzM2LjUyMDgyODI0NzA3MDMsInkiOjQ3fSx7IngiOjc2MS41MjA4MjgyNDcwNzAzLCJ5Ijo0N30seyJ4Ijo3ODYuNTIwODI4MjQ3MDcwMywieSI6NDd9XQ==\" marker-end=\"url(#mx9unoh40p3mt1l2060d_flowchart-v2-pointEnd)\">\u003C\u002Fpath>\u003Cpath d=\"M938.917,47L943.083,47C947.25,47,955.583,47,963.25,47C970.917,47,977.917,47,981.417,47L984.917,47\" id=\"L_C_ATTR_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_C_ATTR_0\" data-points=\"W3sieCI6OTM4LjkxNjY1NjQ5NDE0MDYsInkiOjQ3fSx7IngiOjk2My45MTY2NTY0OTQxNDA2LCJ5Ijo0N30seyJ4Ijo5ODguOTE2NjU2NDk0MTQwNiwieSI6NDd9XQ==\" marker-end=\"url(#mx9unoh40p3mt1l2060d_flowchart-v2-pointEnd)\">\u003C\u002Fpath>\u003Cpath d=\"M1248.917,47L1253.083,47C1257.25,47,1265.583,47,1273.25,47C1280.917,47,1287.917,47,1291.417,47L1294.917,47\" id=\"L_ATTR_B_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_ATTR_B_0\" data-points=\"W3sieCI6MTI0OC45MTY2NTY0OTQxNDA2LCJ5Ijo0N30seyJ4IjoxMjczLjkxNjY1NjQ5NDE0MDYsInkiOjQ3fSx7IngiOjEyOTguOTE2NjU2NDk0MTQwNiwieSI6NDd9XQ==\" marker-end=\"url(#mx9unoh40p3mt1l2060d_flowchart-v2-pointEnd)\">\u003C\u002Fpath>\u003Cpath d=\"M1537.979,47L1542.146,47C1546.312,47,1554.646,47,1562.312,47C1569.979,47,1576.979,47,1580.479,47L1583.979,47\" id=\"L_B_LOG_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_B_LOG_0\" data-points=\"W3sieCI6MTUzNy45NzkxNTY0OTQxNDA2LCJ5Ijo0N30seyJ4IjoxNTYyLjk3OTE1NjQ5NDE0MDYsInkiOjQ3fSx7IngiOjE1ODcuOTc5MTU2NDk0MTQwNiwieSI6NDd9XQ==\" marker-end=\"url(#mx9unoh40p3mt1l2060d_flowchart-v2-pointEnd)\">\u003C\u002Fpath>\u003Cpath d=\"M1836.052,47L1840.219,47C1844.385,47,1852.719,47,1860.385,47C1868.052,47,1875.052,47,1878.552,47L1882.052,47\" id=\"L_LOG_BI_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_LOG_BI_0\" data-points=\"W3sieCI6MTgzNi4wNTIwNzgyNDcwNzAzLCJ5Ijo0N30seyJ4IjoxODYxLjA1MjA3ODI0NzA3MDMsInkiOjQ3fSx7IngiOjE4ODYuMDUyMDc4MjQ3MDcwMywieSI6NDd9XQ==\" marker-end=\"url(#mx9unoh40p3mt1l2060d_flowchart-v2-pointEnd)\">\u003C\u002Fpath>\u003C\u002Fg>\u003Cg class=\"edgeLabels\">\u003Cg class=\"edgeLabel\">\u003Cg class=\"label\" data-id=\"L_R_U_0\" transform=\"translate(0, 0)\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"edgeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"edgeLabel\">\u003Cg class=\"label\" data-id=\"L_U_P_0\" transform=\"translate(0, 0)\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"edgeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"edgeLabel\">\u003Cg class=\"label\" data-id=\"L_P_C_0\" transform=\"translate(0, 0)\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"edgeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"edgeLabel\">\u003Cg class=\"label\" data-id=\"L_C_ATTR_0\" transform=\"translate(0, 0)\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"edgeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"edgeLabel\">\u003Cg class=\"label\" data-id=\"L_ATTR_B_0\" transform=\"translate(0, 0)\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"edgeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"edgeLabel\">\u003Cg class=\"label\" data-id=\"L_B_LOG_0\" transform=\"translate(0, 0)\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"edgeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"edgeLabel\">\u003Cg class=\"label\" data-id=\"L_LOG_BI_0\" transform=\"translate(0, 0)\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"edgeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"nodes\">\u003Cg class=\"node default\" id=\"flowchart-R-0\" transform=\"translate(102.6875, 47)\">\u003Crect class=\"basic label-container\" style=\"\" x=\"-94.6875\" y=\"-27\" width=\"189.375\" height=\"54\">\u003C\u002Frect>\u003Cg class=\"label\" style=\"\" transform=\"translate(-64.6875, -12)\">\u003Crect>\u003C\u002Frect>\u003CforeignObject width=\"129.375\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"nodeLabel\">\u003Cp>Provider Response\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"node default\" id=\"flowchart-U-1\" transform=\"translate(336.94791412353516, 47)\">\u003Crect class=\"basic label-container\" style=\"\" x=\"-89.57291793823242\" y=\"-27\" width=\"179.14583587646484\" height=\"54\">\u003C\u002Frect>\u003Cg class=\"label\" style=\"\" transform=\"translate(-59.57291793823242, -12)\">\u003Crect>\u003C\u002Frect>\u003CforeignObject width=\"119.14583587646484\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"nodeLabel\">\u003Cp>Usage Normalize\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"node default\" id=\"flowchart-P-3\" transform=\"translate(606.5208282470703, 47)\">\u003Crect class=\"basic label-container\" style=\"\" x=\"-130\" y=\"-39\" width=\"260\" height=\"78\">\u003C\u002Frect>\u003Cg class=\"label\" style=\"\" transform=\"translate(-100, -24)\">\u003Crect>\u003C\u002Frect>\u003CforeignObject width=\"200\" height=\"48\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table; white-space: break-spaces; line-height: 1.5; max-width: 200px; text-align: center; width: 200px;\">\u003Cspan class=\"nodeLabel\">\u003Cp>Model Pricing \u002F Custom Pricing\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"node default\" id=\"flowchart-C-5\" transform=\"translate(862.7187423706055, 47)\">\u003Crect class=\"basic label-container\" style=\"\" x=\"-76.19791793823242\" y=\"-27\" width=\"152.39583587646484\" height=\"54\">\u003C\u002Frect>\u003Cg class=\"label\" style=\"\" transform=\"translate(-46.19791793823242, -12)\">\u003Crect>\u003C\u002Frect>\u003CforeignObject width=\"92.39583587646484\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"nodeLabel\">\u003Cp>Request Cost\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"node default\" id=\"flowchart-ATTR-7\" transform=\"translate(1118.9166564941406, 47)\">\u003Crect class=\"basic label-container\" style=\"\" x=\"-130\" y=\"-39\" width=\"260\" height=\"78\">\u003C\u002Frect>\u003Cg class=\"label\" style=\"\" transform=\"translate(-100, -24)\">\u003Crect>\u003C\u002Frect>\u003CforeignObject width=\"200\" height=\"48\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table; white-space: break-spaces; line-height: 1.5; max-width: 200px; text-align: center; width: 200px;\">\u003Cspan class=\"nodeLabel\">\u003Cp>Key \u002F User \u002F Team \u002F Project Attribution\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"node default\" id=\"flowchart-B-9\" transform=\"translate(1418.4479064941406, 47)\">\u003Crect class=\"basic label-container\" style=\"\" x=\"-119.53125\" y=\"-27\" width=\"239.0625\" height=\"54\">\u003C\u002Frect>\u003Cg class=\"label\" style=\"\" transform=\"translate(-89.53125, -12)\">\u003Crect>\u003C\u002Frect>\u003CforeignObject width=\"179.0625\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"nodeLabel\">\u003Cp>Budget \u002F Spend Counters\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"node default\" id=\"flowchart-LOG-11\" transform=\"translate(1712.0156173706055, 47)\">\u003Crect class=\"basic label-container\" style=\"\" x=\"-124.03646087646484\" y=\"-27\" width=\"248.0729217529297\" height=\"54\">\u003C\u002Frect>\u003Cg class=\"label\" style=\"\" transform=\"translate(-94.03646087646484, -12)\">\u003Crect>\u003C\u002Frect>\u003CforeignObject width=\"188.0729217529297\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"nodeLabel\">\u003Cp>Spend Logs \u002F Daily Rollups\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"node default\" id=\"flowchart-BI-13\" transform=\"translate(2016.0520782470703, 47)\">\u003Crect class=\"basic label-container\" style=\"\" x=\"-130\" y=\"-39\" width=\"260\" height=\"78\">\u003C\u002Frect>\u003Cg class=\"label\" style=\"\" transform=\"translate(-100, -24)\">\u003Crect>\u003C\u002Frect>\u003CforeignObject width=\"200\" height=\"48\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table; white-space: break-spaces; line-height: 1.5; max-width: 200px; text-align: center; width: 200px;\">\u003Cspan class=\"nodeLabel\">\u003Cp>Dashboard \u002F Export \u002F SEABRID Analytics\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003C\u002Fg>\u003C\u002Fg>\u003C\u002Fg>\u003C\u002Fsvg>\u003Cdiv class=\"md-editor-mermaid-action\">\u003Cspan class=\"md-editor-mermaid-copy\">\u003Csvg xmlns=\"http:\u002F\u002Fwww.w3.org\u002F2000\u002Fsvg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"lucide lucide-copy md-editor-icon\">\u003Crect width=\"14\" height=\"14\" x=\"8\" y=\"8\" rx=\"2\" ry=\"2\">\u003C\u002Frect>\u003Cpath d=\"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2\">\u003C\u002Fpath>\u003C\u002Fsvg>\u003C\u002Fspan>\u003Cspan class=\"md-editor-mermaid-zoom\">\u003Csvg xmlns=\"http:\u002F\u002Fwww.w3.org\u002F2000\u002Fsvg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"lucide lucide-pin-off md-editor-icon\">\u003Cpath d=\"M12 17v5\">\u003C\u002Fpath>\u003Cpath d=\"M15 9.34V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H7.89\">\u003C\u002Fpath>\u003Cpath d=\"m2 2 20 20\">\u003C\u002Fpath>\u003Cpath d=\"M9 9v1.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h11\">\u003C\u002Fpath>\u003C\u002Fsvg>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002Fp>\u003Ch3 data-line=\"910\" id=\"12.3 计费数据使用边界\">12.3 计费数据使用边界\u003C\u002Fh3>\n\u003Cp data-line=\"912\">LiteLLM 的 Spend 是网关侧的模型调用成本核算数据。企业内部仍需明确：\u003C\u002Fp>\n\u003Cul data-line=\"914\">\n\u003Cli data-line=\"914\">供应商实际账单与网关估算费用的对账关系。\u003C\u002Fli>\n\u003Cli data-line=\"915\">自定义价格、折扣、缓存 Token 和模型价格更新策略。\u003C\u002Fli>\n\u003Cli data-line=\"916\">失败重试是否产生多次供应商费用。\u003C\u002Fli>\n\u003Cli data-line=\"917\">Fallback 后的实际模型和计费归属。\u003C\u002Fli>\n\u003Cli data-line=\"918\">汇率、税费、内部加价和成本中心分摊。\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Cp data-line=\"920\">不建议直接把 LiteLLM Spend Logs 当作财务结算凭证。\u003C\u002Fp>\n\u003Chr data-line=\"922\">\n\u003Ch2 data-line=\"924\" id=\"13. 插件、Hook 和二次开发机制\">13. 插件、Hook 和二次开发机制\u003C\u002Fh2>\n\u003Ch3 data-line=\"926\" id=\"13.1 扩展点分类\">13.1 扩展点分类\u003C\u002Fh3>\n\u003Ctable data-line=\"928\">\n\u003Cthead data-line=\"928\">\n\u003Ctr data-line=\"928\">\n\u003Cth>扩展点\u003C\u002Fth>\n\u003Cth>适合用途\u003C\u002Fth>\n\u003C\u002Ftr>\n\u003C\u002Fthead>\n\u003Ctbody data-line=\"930\">\n\u003Ctr data-line=\"930\">\n\u003Ctd>Custom Provider\u003C\u002Ftd>\n\u003Ctd>接入非标准或内部模型 API\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr data-line=\"931\">\n\u003Ctd>Custom Logger \u002F Callback\u003C\u002Ftd>\n\u003Ctd>将调用日志和指标发送到外部平台\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr data-line=\"932\">\n\u003Ctd>Proxy Hook\u003C\u002Ftd>\n\u003Ctd>请求前检查、请求后处理和策略扩展\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr data-line=\"933\">\n\u003Ctd>Guardrail\u003C\u002Ftd>\n\u003Ctd>内容安全、PII、合规检查\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr data-line=\"934\">\n\u003Ctd>Custom Auth \u002F SSO\u003C\u002Ftd>\n\u003Ctd>企业认证对接\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr data-line=\"935\">\n\u003Ctd>Management API\u003C\u002Ftd>\n\u003Ctd>企业系统自动管理模型、Key 和 Team\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr data-line=\"936\">\n\u003Ctd>Router Plugin \u002F Strategy\u003C\u002Ftd>\n\u003Ctd>定制模型选择逻辑\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr data-line=\"937\">\n\u003Ctd>Pass-through Endpoint\u003C\u002Ftd>\n\u003Ctd>代理非标准 Provider API\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003C\u002Ftbody>\n\u003C\u002Ftable>\n\u003Ch3 data-line=\"939\" id=\"13.2 扩展架构\">13.2 扩展架构\u003C\u002Fh3>\n\u003Cp data-line=\"941\" class=\"md-editor-mermaid\" data-mermaid-theme=\"light\" data-closed=\"true\" data-processed=\"\" data-content=\"flowchart TB\n    REQUEST[&quot;Proxy Request&quot;]\n    AUTH[&quot;Auth Extension&quot;]\n    PRE[&quot;Pre-call Hook&quot;]\n    ROUTE[&quot;Router \u002F Strategy Plugin&quot;]\n    PROVIDER[&quot;Custom Provider&quot;]\n    CALLBACK[&quot;Success \u002F Failure Callback&quot;]\n    GUARD[&quot;Guardrail&quot;]\n\n    REQUEST --&gt; AUTH --&gt; PRE --&gt; GUARD --&gt; ROUTE --&gt; PROVIDER\n    PROVIDER --&gt; CALLBACK\">\u003Csvg id=\"mx9uhx869nbyg7fqu84\" width=\"100%\" xmlns=\"http:\u002F\u002Fwww.w3.org\u002F2000\u002Fsvg\" xmlns:xlink=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxlink\" class=\"flowchart\" style=\"max-width: 263.3125px;\" viewBox=\"0 0 263.3125 694\" role=\"graphics-document document\" aria-roledescription=\"flowchart-v2\">\u003Cstyle>#mx9uhx869nbyg7fqu84{font-family:\"trebuchet ms\",verdana,arial,sans-serif;font-size:16px;fill:#333;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#mx9uhx869nbyg7fqu84 .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#mx9uhx869nbyg7fqu84 .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#mx9uhx869nbyg7fqu84 .error-icon{fill:#552222;}#mx9uhx869nbyg7fqu84 .error-text{fill:#552222;stroke:#552222;}#mx9uhx869nbyg7fqu84 .edge-thickness-normal{stroke-width:1px;}#mx9uhx869nbyg7fqu84 .edge-thickness-thick{stroke-width:3.5px;}#mx9uhx869nbyg7fqu84 .edge-pattern-solid{stroke-dasharray:0;}#mx9uhx869nbyg7fqu84 .edge-thickness-invisible{stroke-width:0;fill:none;}#mx9uhx869nbyg7fqu84 .edge-pattern-dashed{stroke-dasharray:3;}#mx9uhx869nbyg7fqu84 .edge-pattern-dotted{stroke-dasharray:2;}#mx9uhx869nbyg7fqu84 .marker{fill:#333333;stroke:#333333;}#mx9uhx869nbyg7fqu84 .marker.cross{stroke:#333333;}#mx9uhx869nbyg7fqu84 svg{font-family:\"trebuchet ms\",verdana,arial,sans-serif;font-size:16px;}#mx9uhx869nbyg7fqu84 p{margin:0;}#mx9uhx869nbyg7fqu84 .label{font-family:\"trebuchet ms\",verdana,arial,sans-serif;color:#333;}#mx9uhx869nbyg7fqu84 .cluster-label text{fill:#333;}#mx9uhx869nbyg7fqu84 .cluster-label span{color:#333;}#mx9uhx869nbyg7fqu84 .cluster-label span p{background-color:transparent;}#mx9uhx869nbyg7fqu84 .label text,#mx9uhx869nbyg7fqu84 span{fill:#333;color:#333;}#mx9uhx869nbyg7fqu84 .node rect,#mx9uhx869nbyg7fqu84 .node circle,#mx9uhx869nbyg7fqu84 .node ellipse,#mx9uhx869nbyg7fqu84 .node polygon,#mx9uhx869nbyg7fqu84 .node path{fill:#ECECFF;stroke:#9370DB;stroke-width:1px;}#mx9uhx869nbyg7fqu84 .rough-node .label text,#mx9uhx869nbyg7fqu84 .node .label text,#mx9uhx869nbyg7fqu84 .image-shape .label,#mx9uhx869nbyg7fqu84 .icon-shape .label{text-anchor:middle;}#mx9uhx869nbyg7fqu84 .node .katex path{fill:#000;stroke:#000;stroke-width:1px;}#mx9uhx869nbyg7fqu84 .rough-node .label,#mx9uhx869nbyg7fqu84 .node .label,#mx9uhx869nbyg7fqu84 .image-shape .label,#mx9uhx869nbyg7fqu84 .icon-shape .label{text-align:center;}#mx9uhx869nbyg7fqu84 .node.clickable{cursor:pointer;}#mx9uhx869nbyg7fqu84 .root .anchor path{fill:#333333!important;stroke-width:0;stroke:#333333;}#mx9uhx869nbyg7fqu84 .arrowheadPath{fill:#333333;}#mx9uhx869nbyg7fqu84 .edgePath .path{stroke:#333333;stroke-width:2.0px;}#mx9uhx869nbyg7fqu84 .flowchart-link{stroke:#333333;fill:none;}#mx9uhx869nbyg7fqu84 .edgeLabel{background-color:rgba(232,232,232, 0.8);text-align:center;}#mx9uhx869nbyg7fqu84 .edgeLabel p{background-color:rgba(232,232,232, 0.8);}#mx9uhx869nbyg7fqu84 .edgeLabel rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mx9uhx869nbyg7fqu84 .labelBkg{background-color:rgba(232, 232, 232, 0.5);}#mx9uhx869nbyg7fqu84 .cluster rect{fill:#ffffde;stroke:#aaaa33;stroke-width:1px;}#mx9uhx869nbyg7fqu84 .cluster text{fill:#333;}#mx9uhx869nbyg7fqu84 .cluster span{color:#333;}#mx9uhx869nbyg7fqu84 div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:\"trebuchet ms\",verdana,arial,sans-serif;font-size:12px;background:hsl(80, 100%, 96.2745098039%);border:1px solid #aaaa33;border-radius:2px;pointer-events:none;z-index:100;}#mx9uhx869nbyg7fqu84 .flowchartTitleText{text-anchor:middle;font-size:18px;fill:#333;}#mx9uhx869nbyg7fqu84 rect.text{fill:none;stroke-width:0;}#mx9uhx869nbyg7fqu84 .icon-shape,#mx9uhx869nbyg7fqu84 .image-shape{background-color:rgba(232,232,232, 0.8);text-align:center;}#mx9uhx869nbyg7fqu84 .icon-shape p,#mx9uhx869nbyg7fqu84 .image-shape p{background-color:rgba(232,232,232, 0.8);padding:2px;}#mx9uhx869nbyg7fqu84 .icon-shape rect,#mx9uhx869nbyg7fqu84 .image-shape rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mx9uhx869nbyg7fqu84 .label-icon{display:inline-block;height:1em;overflow:visible;vertical-align:-0.125em;}#mx9uhx869nbyg7fqu84 .node .label-icon path{fill:currentColor;stroke:revert;stroke-width:revert;}#mx9uhx869nbyg7fqu84 :root{--mermaid-font-family:\"trebuchet ms\",verdana,arial,sans-serif;}\u003C\u002Fstyle>\u003Cg>\u003Cmarker id=\"mx9uhx869nbyg7fqu84_flowchart-v2-pointEnd\" class=\"marker flowchart-v2\" viewBox=\"0 0 10 10\" refX=\"5\" refY=\"5\" markerUnits=\"userSpaceOnUse\" markerWidth=\"8\" markerHeight=\"8\" orient=\"auto\">\u003Cpath d=\"M 0 0 L 10 5 L 0 10 z\" class=\"arrowMarkerPath\" style=\"stroke-width: 1; stroke-dasharray: 1, 0;\">\u003C\u002Fpath>\u003C\u002Fmarker>\u003Cmarker id=\"mx9uhx869nbyg7fqu84_flowchart-v2-pointStart\" class=\"marker flowchart-v2\" viewBox=\"0 0 10 10\" refX=\"4.5\" refY=\"5\" markerUnits=\"userSpaceOnUse\" markerWidth=\"8\" markerHeight=\"8\" orient=\"auto\">\u003Cpath d=\"M 0 5 L 10 10 L 10 0 z\" class=\"arrowMarkerPath\" style=\"stroke-width: 1; stroke-dasharray: 1, 0;\">\u003C\u002Fpath>\u003C\u002Fmarker>\u003Cmarker id=\"mx9uhx869nbyg7fqu84_flowchart-v2-circleEnd\" class=\"marker flowchart-v2\" viewBox=\"0 0 10 10\" refX=\"11\" refY=\"5\" markerUnits=\"userSpaceOnUse\" markerWidth=\"11\" markerHeight=\"11\" orient=\"auto\">\u003Ccircle cx=\"5\" cy=\"5\" r=\"5\" class=\"arrowMarkerPath\" style=\"stroke-width: 1; stroke-dasharray: 1, 0;\">\u003C\u002Fcircle>\u003C\u002Fmarker>\u003Cmarker id=\"mx9uhx869nbyg7fqu84_flowchart-v2-circleStart\" class=\"marker flowchart-v2\" viewBox=\"0 0 10 10\" refX=\"-1\" refY=\"5\" markerUnits=\"userSpaceOnUse\" markerWidth=\"11\" markerHeight=\"11\" orient=\"auto\">\u003Ccircle cx=\"5\" cy=\"5\" r=\"5\" class=\"arrowMarkerPath\" style=\"stroke-width: 1; stroke-dasharray: 1, 0;\">\u003C\u002Fcircle>\u003C\u002Fmarker>\u003Cmarker id=\"mx9uhx869nbyg7fqu84_flowchart-v2-crossEnd\" class=\"marker cross flowchart-v2\" viewBox=\"0 0 11 11\" refX=\"12\" refY=\"5.2\" markerUnits=\"userSpaceOnUse\" markerWidth=\"11\" markerHeight=\"11\" orient=\"auto\">\u003Cpath d=\"M 1,1 l 9,9 M 10,1 l -9,9\" class=\"arrowMarkerPath\" style=\"stroke-width: 2; stroke-dasharray: 1, 0;\">\u003C\u002Fpath>\u003C\u002Fmarker>\u003Cmarker id=\"mx9uhx869nbyg7fqu84_flowchart-v2-crossStart\" class=\"marker cross flowchart-v2\" viewBox=\"0 0 11 11\" refX=\"-1\" refY=\"5.2\" markerUnits=\"userSpaceOnUse\" markerWidth=\"11\" markerHeight=\"11\" orient=\"auto\">\u003Cpath d=\"M 1,1 l 9,9 M 10,1 l -9,9\" class=\"arrowMarkerPath\" style=\"stroke-width: 2; stroke-dasharray: 1, 0;\">\u003C\u002Fpath>\u003C\u002Fmarker>\u003Cg class=\"root\">\u003Cg class=\"clusters\">\u003C\u002Fg>\u003Cg class=\"edgePaths\">\u003Cpath d=\"M131.656,62L131.656,66.167C131.656,70.333,131.656,78.667,131.656,86.333C131.656,94,131.656,101,131.656,104.5L131.656,108\" id=\"L_REQUEST_AUTH_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_REQUEST_AUTH_0\" data-points=\"W3sieCI6MTMxLjY1NjI1LCJ5Ijo2Mn0seyJ4IjoxMzEuNjU2MjUsInkiOjg3fSx7IngiOjEzMS42NTYyNSwieSI6MTEyfV0=\" marker-end=\"url(#mx9uhx869nbyg7fqu84_flowchart-v2-pointEnd)\">\u003C\u002Fpath>\u003Cpath d=\"M131.656,166L131.656,170.167C131.656,174.333,131.656,182.667,131.656,190.333C131.656,198,131.656,205,131.656,208.5L131.656,212\" id=\"L_AUTH_PRE_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_AUTH_PRE_0\" data-points=\"W3sieCI6MTMxLjY1NjI1LCJ5IjoxNjZ9LHsieCI6MTMxLjY1NjI1LCJ5IjoxOTF9LHsieCI6MTMxLjY1NjI1LCJ5IjoyMTZ9XQ==\" marker-end=\"url(#mx9uhx869nbyg7fqu84_flowchart-v2-pointEnd)\">\u003C\u002Fpath>\u003Cpath d=\"M131.656,270L131.656,274.167C131.656,278.333,131.656,286.667,131.656,294.333C131.656,302,131.656,309,131.656,312.5L131.656,316\" id=\"L_PRE_GUARD_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_PRE_GUARD_0\" data-points=\"W3sieCI6MTMxLjY1NjI1LCJ5IjoyNzB9LHsieCI6MTMxLjY1NjI1LCJ5IjoyOTV9LHsieCI6MTMxLjY1NjI1LCJ5IjozMjB9XQ==\" marker-end=\"url(#mx9uhx869nbyg7fqu84_flowchart-v2-pointEnd)\">\u003C\u002Fpath>\u003Cpath d=\"M131.656,374L131.656,378.167C131.656,382.333,131.656,390.667,131.656,398.333C131.656,406,131.656,413,131.656,416.5L131.656,420\" id=\"L_GUARD_ROUTE_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_GUARD_ROUTE_0\" data-points=\"W3sieCI6MTMxLjY1NjI1LCJ5IjozNzR9LHsieCI6MTMxLjY1NjI1LCJ5IjozOTl9LHsieCI6MTMxLjY1NjI1LCJ5Ijo0MjR9XQ==\" marker-end=\"url(#mx9uhx869nbyg7fqu84_flowchart-v2-pointEnd)\">\u003C\u002Fpath>\u003Cpath d=\"M131.656,478L131.656,482.167C131.656,486.333,131.656,494.667,131.656,502.333C131.656,510,131.656,517,131.656,520.5L131.656,524\" id=\"L_ROUTE_PROVIDER_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_ROUTE_PROVIDER_0\" data-points=\"W3sieCI6MTMxLjY1NjI1LCJ5Ijo0Nzh9LHsieCI6MTMxLjY1NjI1LCJ5Ijo1MDN9LHsieCI6MTMxLjY1NjI1LCJ5Ijo1Mjh9XQ==\" marker-end=\"url(#mx9uhx869nbyg7fqu84_flowchart-v2-pointEnd)\">\u003C\u002Fpath>\u003Cpath d=\"M131.656,582L131.656,586.167C131.656,590.333,131.656,598.667,131.656,606.333C131.656,614,131.656,621,131.656,624.5L131.656,628\" id=\"L_PROVIDER_CALLBACK_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_PROVIDER_CALLBACK_0\" data-points=\"W3sieCI6MTMxLjY1NjI1LCJ5Ijo1ODJ9LHsieCI6MTMxLjY1NjI1LCJ5Ijo2MDd9LHsieCI6MTMxLjY1NjI1LCJ5Ijo2MzJ9XQ==\" marker-end=\"url(#mx9uhx869nbyg7fqu84_flowchart-v2-pointEnd)\">\u003C\u002Fpath>\u003C\u002Fg>\u003Cg class=\"edgeLabels\">\u003Cg class=\"edgeLabel\">\u003Cg class=\"label\" data-id=\"L_REQUEST_AUTH_0\" transform=\"translate(0, 0)\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"edgeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"edgeLabel\">\u003Cg class=\"label\" data-id=\"L_AUTH_PRE_0\" transform=\"translate(0, 0)\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"edgeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"edgeLabel\">\u003Cg class=\"label\" data-id=\"L_PRE_GUARD_0\" transform=\"translate(0, 0)\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"edgeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"edgeLabel\">\u003Cg class=\"label\" data-id=\"L_GUARD_ROUTE_0\" transform=\"translate(0, 0)\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"edgeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"edgeLabel\">\u003Cg class=\"label\" data-id=\"L_ROUTE_PROVIDER_0\" transform=\"translate(0, 0)\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"edgeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"edgeLabel\">\u003Cg class=\"label\" data-id=\"L_PROVIDER_CALLBACK_0\" transform=\"translate(0, 0)\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"edgeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"nodes\">\u003Cg class=\"node default\" id=\"flowchart-REQUEST-0\" transform=\"translate(131.65625, 35)\">\u003Crect class=\"basic label-container\" style=\"\" x=\"-80.15104293823242\" y=\"-27\" width=\"160.30208587646484\" height=\"54\">\u003C\u002Frect>\u003Cg class=\"label\" style=\"\" transform=\"translate(-50.15104293823242, -12)\">\u003Crect>\u003C\u002Frect>\u003CforeignObject width=\"100.30208587646484\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"nodeLabel\">\u003Cp>Proxy Request\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"node default\" id=\"flowchart-AUTH-1\" transform=\"translate(131.65625, 139)\">\u003Crect class=\"basic label-container\" style=\"\" x=\"-83.42708587646484\" y=\"-27\" width=\"166.8541717529297\" height=\"54\">\u003C\u002Frect>\u003Cg class=\"label\" style=\"\" transform=\"translate(-53.427085876464844, -12)\">\u003Crect>\u003C\u002Frect>\u003CforeignObject width=\"106.85417175292969\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"nodeLabel\">\u003Cp>Auth Extension\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"node default\" id=\"flowchart-PRE-2\" transform=\"translate(131.65625, 243)\">\u003Crect class=\"basic label-container\" style=\"\" x=\"-77.64583587646484\" y=\"-27\" width=\"155.2916717529297\" height=\"54\">\u003C\u002Frect>\u003Cg class=\"label\" style=\"\" transform=\"translate(-47.645835876464844, -12)\">\u003Crect>\u003C\u002Frect>\u003CforeignObject width=\"95.29167175292969\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"nodeLabel\">\u003Cp>Pre-call Hook\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"node default\" id=\"flowchart-ROUTE-3\" transform=\"translate(131.65625, 451)\">\u003Crect class=\"basic label-container\" style=\"\" x=\"-116.75521087646484\" y=\"-27\" width=\"233.5104217529297\" height=\"54\">\u003C\u002Frect>\u003Cg class=\"label\" style=\"\" transform=\"translate(-86.75521087646484, -12)\">\u003Crect>\u003C\u002Frect>\u003CforeignObject width=\"173.5104217529297\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"nodeLabel\">\u003Cp>Router \u002F Strategy Plugin\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"node default\" id=\"flowchart-PROVIDER-4\" transform=\"translate(131.65625, 555)\">\u003Crect class=\"basic label-container\" style=\"\" x=\"-88.53125\" y=\"-27\" width=\"177.0625\" height=\"54\">\u003C\u002Frect>\u003Cg class=\"label\" style=\"\" transform=\"translate(-58.53125, -12)\">\u003Crect>\u003C\u002Frect>\u003CforeignObject width=\"117.0625\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"nodeLabel\">\u003Cp>Custom Provider\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"node default\" id=\"flowchart-CALLBACK-5\" transform=\"translate(131.65625, 659)\">\u003Crect class=\"basic label-container\" style=\"\" x=\"-123.65625\" y=\"-27\" width=\"247.3125\" height=\"54\">\u003C\u002Frect>\u003Cg class=\"label\" style=\"\" transform=\"translate(-93.65625, -12)\">\u003Crect>\u003C\u002Frect>\u003CforeignObject width=\"187.3125\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"nodeLabel\">\u003Cp>Success \u002F Failure Callback\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"node default\" id=\"flowchart-GUARD-6\" transform=\"translate(131.65625, 347)\">\u003Crect class=\"basic label-container\" style=\"\" x=\"-63.505210876464844\" y=\"-27\" width=\"127.01042175292969\" height=\"54\">\u003C\u002Frect>\u003Cg class=\"label\" style=\"\" transform=\"translate(-33.505210876464844, -12)\">\u003Crect>\u003C\u002Frect>\u003CforeignObject width=\"67.01042175292969\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"nodeLabel\">\u003Cp>Guardrail\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003C\u002Fg>\u003C\u002Fg>\u003C\u002Fg>\u003C\u002Fsvg>\u003Cdiv class=\"md-editor-mermaid-action\">\u003Cspan class=\"md-editor-mermaid-copy\">\u003Csvg xmlns=\"http:\u002F\u002Fwww.w3.org\u002F2000\u002Fsvg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"lucide lucide-copy md-editor-icon\">\u003Crect width=\"14\" height=\"14\" x=\"8\" y=\"8\" rx=\"2\" ry=\"2\">\u003C\u002Frect>\u003Cpath d=\"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2\">\u003C\u002Fpath>\u003C\u002Fsvg>\u003C\u002Fspan>\u003Cspan class=\"md-editor-mermaid-zoom\">\u003Csvg xmlns=\"http:\u002F\u002Fwww.w3.org\u002F2000\u002Fsvg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"lucide lucide-pin-off md-editor-icon\">\u003Cpath d=\"M12 17v5\">\u003C\u002Fpath>\u003Cpath d=\"M15 9.34V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H7.89\">\u003C\u002Fpath>\u003Cpath d=\"m2 2 20 20\">\u003C\u002Fpath>\u003Cpath d=\"M9 9v1.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h11\">\u003C\u002Fpath>\u003C\u002Fsvg>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002Fp>\u003Cp data-line=\"955\">二次开发优先级建议：\u003C\u002Fp>\n\u003Col data-line=\"957\">\n\u003Cli data-line=\"957\">优先使用现有 Provider 和 OpenAI-compatible 接入。\u003C\u002Fli>\n\u003Cli data-line=\"958\">使用 Management API 管理模型、Key、Team。\u003C\u002Fli>\n\u003Cli data-line=\"959\">用 Callback \u002F Hook 扩展审计和业务埋点。\u003C\u002Fli>\n\u003Cli data-line=\"960\">只有标准接口无法满足时才开发 Custom Provider。\u003C\u002Fli>\n\u003Cli data-line=\"961\">不建议直接修改 LiteLLM 核心源码；应优先使用配置、API、插件和外部服务。\u003C\u002Fli>\n\u003C\u002Fol>\n\u003Chr data-line=\"963\">\n\u003Ch2 data-line=\"965\" id=\"14. 安全架构分析\">14. 安全架构分析\u003C\u002Fh2>\n\u003Ch3 data-line=\"967\" id=\"14.1 密钥分类\">14.1 密钥分类\u003C\u002Fh3>\n\u003Ctable data-line=\"969\">\n\u003Cthead data-line=\"969\">\n\u003Ctr data-line=\"969\">\n\u003Cth>密钥\u003C\u002Fth>\n\u003Cth>用途\u003C\u002Fth>\n\u003Cth>保存位置\u003C\u002Fth>\n\u003C\u002Ftr>\n\u003C\u002Fthead>\n\u003Ctbody data-line=\"971\">\n\u003Ctr data-line=\"971\">\n\u003Ctd>Provider API Key\u003C\u002Ftd>\n\u003Ctd>调用上游模型供应商\u003C\u002Ftd>\n\u003Ctd>LiteLLM 凭证管理\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr data-line=\"972\">\n\u003Ctd>\u003Ccode>LITELLM_MASTER_KEY\u003C\u002Fcode>\u003C\u002Ftd>\n\u003Ctd>管理员和管理 API 高权限认证\u003C\u002Ftd>\n\u003Ctd>Secret \u002F 环境变量\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr data-line=\"973\">\n\u003Ctd>\u003Ccode>LITELLM_SALT_KEY\u003C\u002Fcode>\u003C\u002Ftd>\n\u003Ctd>加密数据库保存的 Provider 凭证\u003C\u002Ftd>\n\u003Ctd>Secret 管理并备份\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr data-line=\"974\">\n\u003Ctd>Virtual Key\u003C\u002Ftd>\n\u003Ctd>应用、项目、Agent 调用网关\u003C\u002Ftd>\n\u003Ctd>客户端安全配置 \u002F Secret Store\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr data-line=\"975\">\n\u003Ctd>JWT \u002F SSO Credential\u003C\u002Ftd>\n\u003Ctd>企业身份认证\u003C\u002Ftd>\n\u003Ctd>企业 IAM \u002F Secret Store\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003C\u002Ftbody>\n\u003C\u002Ftable>\n\u003Ch3 data-line=\"977\" id=\"14.2 必须防范的风险\">14.2 必须防范的风险\u003C\u002Fh3>\n\u003Cul data-line=\"979\">\n\u003Cli data-line=\"979\">Master Key 泄露导致网关管理权限暴露。\u003C\u002Fli>\n\u003Cli data-line=\"980\">Provider API Key 泄露导致供应商账户被盗用。\u003C\u002Fli>\n\u003Cli data-line=\"981\">Salt Key 丢失或更换导致数据库中加密凭证不可解密。\u003C\u002Fli>\n\u003Cli data-line=\"982\">管理 API 未做 RBAC，普通用户可修改模型或凭证。\u003C\u002Fli>\n\u003Cli data-line=\"983\">Key 预算、RPM \u002F TPM 和并发限制配置不合理。\u003C\u002Fli>\n\u003Cli data-line=\"984\">模型 API Base 可被滥用，形成 SSRF 或凭证转发风险。\u003C\u002Fli>\n\u003Cli data-line=\"985\">Prompt \u002F Completion 日志包含个人信息、业务秘密或客户数据。\u003C\u002Fli>\n\u003Cli data-line=\"986\">管理后台直接暴露公网。\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Ch3 data-line=\"988\" id=\"14.3 推荐安全边界\">14.3 推荐安全边界\u003C\u002Fh3>\n\u003Cp data-line=\"990\" class=\"md-editor-mermaid\" data-mermaid-theme=\"light\" data-closed=\"true\" data-processed=\"\" data-content=\"flowchart TB\n    EXT[&quot;Internet \u002F Internal Clients&quot;]\n    WAF[&quot;WAF \u002F Nginx \u002F TLS \u002F IP ACL&quot;]\n    ADMIN[&quot;SEABRID Admin Service \u002F IAM&quot;]\n    GW[&quot;LiteLLM Gateway&quot;]\n    SECRETS[&quot;Secret Store&quot;]\n    DB[(&quot;PostgreSQL&quot;)]\n    REDIS[(&quot;Redis&quot;)]\n    UP[&quot;Provider APIs&quot;]\n\n    EXT --&gt; WAF --&gt; GW\n    ADMIN --&gt;|Restricted Management API| GW\n    GW --&gt; SECRETS\n    GW --&gt; DB\n    GW &lt;--&gt; REDIS\n    GW --&gt; UP\">\u003Csvg id=\"mx9unqjnio24pnxygc\" width=\"100%\" xmlns=\"http:\u002F\u002Fwww.w3.org\u002F2000\u002Fsvg\" xmlns:xlink=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxlink\" class=\"flowchart\" style=\"max-width: 613.0104370117188px;\" viewBox=\"0 0 613.0104370117188 447.2169494628906\" role=\"graphics-document document\" aria-roledescription=\"flowchart-v2\">\u003Cstyle>#mx9unqjnio24pnxygc{font-family:\"trebuchet ms\",verdana,arial,sans-serif;font-size:16px;fill:#333;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#mx9unqjnio24pnxygc .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#mx9unqjnio24pnxygc .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#mx9unqjnio24pnxygc .error-icon{fill:#552222;}#mx9unqjnio24pnxygc .error-text{fill:#552222;stroke:#552222;}#mx9unqjnio24pnxygc .edge-thickness-normal{stroke-width:1px;}#mx9unqjnio24pnxygc .edge-thickness-thick{stroke-width:3.5px;}#mx9unqjnio24pnxygc .edge-pattern-solid{stroke-dasharray:0;}#mx9unqjnio24pnxygc .edge-thickness-invisible{stroke-width:0;fill:none;}#mx9unqjnio24pnxygc .edge-pattern-dashed{stroke-dasharray:3;}#mx9unqjnio24pnxygc .edge-pattern-dotted{stroke-dasharray:2;}#mx9unqjnio24pnxygc .marker{fill:#333333;stroke:#333333;}#mx9unqjnio24pnxygc .marker.cross{stroke:#333333;}#mx9unqjnio24pnxygc svg{font-family:\"trebuchet ms\",verdana,arial,sans-serif;font-size:16px;}#mx9unqjnio24pnxygc p{margin:0;}#mx9unqjnio24pnxygc .label{font-family:\"trebuchet ms\",verdana,arial,sans-serif;color:#333;}#mx9unqjnio24pnxygc .cluster-label text{fill:#333;}#mx9unqjnio24pnxygc .cluster-label span{color:#333;}#mx9unqjnio24pnxygc .cluster-label span p{background-color:transparent;}#mx9unqjnio24pnxygc .label text,#mx9unqjnio24pnxygc span{fill:#333;color:#333;}#mx9unqjnio24pnxygc .node rect,#mx9unqjnio24pnxygc .node circle,#mx9unqjnio24pnxygc .node ellipse,#mx9unqjnio24pnxygc .node polygon,#mx9unqjnio24pnxygc .node path{fill:#ECECFF;stroke:#9370DB;stroke-width:1px;}#mx9unqjnio24pnxygc .rough-node .label text,#mx9unqjnio24pnxygc .node .label text,#mx9unqjnio24pnxygc .image-shape .label,#mx9unqjnio24pnxygc .icon-shape .label{text-anchor:middle;}#mx9unqjnio24pnxygc .node .katex path{fill:#000;stroke:#000;stroke-width:1px;}#mx9unqjnio24pnxygc .rough-node .label,#mx9unqjnio24pnxygc .node .label,#mx9unqjnio24pnxygc .image-shape .label,#mx9unqjnio24pnxygc .icon-shape .label{text-align:center;}#mx9unqjnio24pnxygc .node.clickable{cursor:pointer;}#mx9unqjnio24pnxygc .root .anchor path{fill:#333333!important;stroke-width:0;stroke:#333333;}#mx9unqjnio24pnxygc .arrowheadPath{fill:#333333;}#mx9unqjnio24pnxygc .edgePath .path{stroke:#333333;stroke-width:2.0px;}#mx9unqjnio24pnxygc .flowchart-link{stroke:#333333;fill:none;}#mx9unqjnio24pnxygc .edgeLabel{background-color:rgba(232,232,232, 0.8);text-align:center;}#mx9unqjnio24pnxygc .edgeLabel p{background-color:rgba(232,232,232, 0.8);}#mx9unqjnio24pnxygc .edgeLabel rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mx9unqjnio24pnxygc .labelBkg{background-color:rgba(232, 232, 232, 0.5);}#mx9unqjnio24pnxygc .cluster rect{fill:#ffffde;stroke:#aaaa33;stroke-width:1px;}#mx9unqjnio24pnxygc .cluster text{fill:#333;}#mx9unqjnio24pnxygc .cluster span{color:#333;}#mx9unqjnio24pnxygc div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:\"trebuchet ms\",verdana,arial,sans-serif;font-size:12px;background:hsl(80, 100%, 96.2745098039%);border:1px solid #aaaa33;border-radius:2px;pointer-events:none;z-index:100;}#mx9unqjnio24pnxygc .flowchartTitleText{text-anchor:middle;font-size:18px;fill:#333;}#mx9unqjnio24pnxygc rect.text{fill:none;stroke-width:0;}#mx9unqjnio24pnxygc .icon-shape,#mx9unqjnio24pnxygc .image-shape{background-color:rgba(232,232,232, 0.8);text-align:center;}#mx9unqjnio24pnxygc .icon-shape p,#mx9unqjnio24pnxygc .image-shape p{background-color:rgba(232,232,232, 0.8);padding:2px;}#mx9unqjnio24pnxygc .icon-shape rect,#mx9unqjnio24pnxygc .image-shape rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mx9unqjnio24pnxygc .label-icon{display:inline-block;height:1em;overflow:visible;vertical-align:-0.125em;}#mx9unqjnio24pnxygc .node .label-icon path{fill:currentColor;stroke:revert;stroke-width:revert;}#mx9unqjnio24pnxygc :root{--mermaid-font-family:\"trebuchet ms\",verdana,arial,sans-serif;}\u003C\u002Fstyle>\u003Cg>\u003Cmarker id=\"mx9unqjnio24pnxygc_flowchart-v2-pointEnd\" class=\"marker flowchart-v2\" viewBox=\"0 0 10 10\" refX=\"5\" refY=\"5\" markerUnits=\"userSpaceOnUse\" markerWidth=\"8\" markerHeight=\"8\" orient=\"auto\">\u003Cpath d=\"M 0 0 L 10 5 L 0 10 z\" class=\"arrowMarkerPath\" style=\"stroke-width: 1; stroke-dasharray: 1, 0;\">\u003C\u002Fpath>\u003C\u002Fmarker>\u003Cmarker id=\"mx9unqjnio24pnxygc_flowchart-v2-pointStart\" class=\"marker flowchart-v2\" viewBox=\"0 0 10 10\" refX=\"4.5\" refY=\"5\" markerUnits=\"userSpaceOnUse\" markerWidth=\"8\" markerHeight=\"8\" orient=\"auto\">\u003Cpath d=\"M 0 5 L 10 10 L 10 0 z\" class=\"arrowMarkerPath\" style=\"stroke-width: 1; stroke-dasharray: 1, 0;\">\u003C\u002Fpath>\u003C\u002Fmarker>\u003Cmarker id=\"mx9unqjnio24pnxygc_flowchart-v2-circleEnd\" class=\"marker flowchart-v2\" viewBox=\"0 0 10 10\" refX=\"11\" refY=\"5\" markerUnits=\"userSpaceOnUse\" markerWidth=\"11\" markerHeight=\"11\" orient=\"auto\">\u003Ccircle cx=\"5\" cy=\"5\" r=\"5\" class=\"arrowMarkerPath\" style=\"stroke-width: 1; stroke-dasharray: 1, 0;\">\u003C\u002Fcircle>\u003C\u002Fmarker>\u003Cmarker id=\"mx9unqjnio24pnxygc_flowchart-v2-circleStart\" class=\"marker flowchart-v2\" viewBox=\"0 0 10 10\" refX=\"-1\" refY=\"5\" markerUnits=\"userSpaceOnUse\" markerWidth=\"11\" markerHeight=\"11\" orient=\"auto\">\u003Ccircle cx=\"5\" cy=\"5\" r=\"5\" class=\"arrowMarkerPath\" style=\"stroke-width: 1; stroke-dasharray: 1, 0;\">\u003C\u002Fcircle>\u003C\u002Fmarker>\u003Cmarker id=\"mx9unqjnio24pnxygc_flowchart-v2-crossEnd\" class=\"marker cross flowchart-v2\" viewBox=\"0 0 11 11\" refX=\"12\" refY=\"5.2\" markerUnits=\"userSpaceOnUse\" markerWidth=\"11\" markerHeight=\"11\" orient=\"auto\">\u003Cpath d=\"M 1,1 l 9,9 M 10,1 l -9,9\" class=\"arrowMarkerPath\" style=\"stroke-width: 2; stroke-dasharray: 1, 0;\">\u003C\u002Fpath>\u003C\u002Fmarker>\u003Cmarker id=\"mx9unqjnio24pnxygc_flowchart-v2-crossStart\" class=\"marker cross flowchart-v2\" viewBox=\"0 0 11 11\" refX=\"-1\" refY=\"5.2\" markerUnits=\"userSpaceOnUse\" markerWidth=\"11\" markerHeight=\"11\" orient=\"auto\">\u003Cpath d=\"M 1,1 l 9,9 M 10,1 l -9,9\" class=\"arrowMarkerPath\" style=\"stroke-width: 2; stroke-dasharray: 1, 0;\">\u003C\u002Fpath>\u003C\u002Fmarker>\u003Cg class=\"root\">\u003Cg class=\"clusters\">\u003C\u002Fg>\u003Cg class=\"edgePaths\">\u003Cpath d=\"M152.232,62L152.232,66.167C152.232,70.333,152.232,78.667,152.232,88.333C152.232,98,152.232,109,152.232,114.5L152.232,120\" id=\"L_EXT_WAF_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_EXT_WAF_0\" data-points=\"W3sieCI6MTUyLjIzMTc3MzM3NjQ2NDg0LCJ5Ijo2Mn0seyJ4IjoxNTIuMjMxNzczMzc2NDY0ODQsInkiOjg3fSx7IngiOjE1Mi4yMzE3NzMzNzY0NjQ4NCwieSI6MTI0fV0=\" marker-end=\"url(#mx9unqjnio24pnxygc_flowchart-v2-pointEnd)\">\u003C\u002Fpath>\u003Cpath d=\"M152.232,178L152.232,186.167C152.232,194.333,152.232,210.667,167.27,224.756C182.308,238.845,212.385,250.69,227.423,256.612L242.461,262.534\" id=\"L_WAF_GW_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_WAF_GW_0\" data-points=\"W3sieCI6MTUyLjIzMTc3MzM3NjQ2NDg0LCJ5IjoxNzh9LHsieCI6MTUyLjIzMTc3MzM3NjQ2NDg0LCJ5IjoyMjd9LHsieCI6MjQ2LjE4MzEwODc0NzAwNTQ2LCJ5IjoyNjR9XQ==\" marker-end=\"url(#mx9unqjnio24pnxygc_flowchart-v2-pointEnd)\">\u003C\u002Fpath>\u003Cpath d=\"M458.56,190L458.56,196.167C458.56,202.333,458.56,214.667,445.312,226.729C432.063,238.791,405.566,250.582,392.318,256.478L379.07,262.374\" id=\"L_ADMIN_GW_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_ADMIN_GW_0\" data-points=\"W3sieCI6NDU4LjU1OTg5ODM3NjQ2NDg0LCJ5IjoxOTB9LHsieCI6NDU4LjU1OTg5ODM3NjQ2NDg0LCJ5IjoyMjd9LHsieCI6Mzc1LjQxNTI4NjQ4MTM4MDQ2LCJ5IjoyNjR9XQ==\" marker-end=\"url(#mx9unqjnio24pnxygc_flowchart-v2-pointEnd)\">\u003C\u002Fpath>\u003Cpath d=\"M223.435,311.402L199.865,316.668C176.295,321.934,129.155,332.467,105.586,342.668C82.016,352.869,82.016,362.739,82.016,367.674L82.016,372.608\" id=\"L_GW_SECRETS_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_GW_SECRETS_0\" data-points=\"W3sieCI6MjIzLjQzNDkwMjE5MTE2MjEsInkiOjMxMS40MDE1MzQzMzk2NzQ0N30seyJ4Ijo4Mi4wMTU2MjUsInkiOjM0M30seyJ4Ijo4Mi4wMTU2MjUsInkiOjM3Ni42MDg0NTU2NTc5NTl9XQ==\" marker-end=\"url(#mx9unqjnio24pnxygc_flowchart-v2-pointEnd)\">\u003C\u002Fpath>\u003Cpath d=\"M282.743,318L277.805,322.167C272.867,326.333,262.991,334.667,258.053,342.333C253.115,350,253.115,357,253.115,360.5L253.115,364\" id=\"L_GW_DB_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_GW_DB_0\" data-points=\"W3sieCI6MjgyLjc0MzI0MjMzNzE1MzUsInkiOjMxOH0seyJ4IjoyNTMuMTE0NTg1ODc2NDY0ODQsInkiOjM0M30seyJ4IjoyNTMuMTE0NTg1ODc2NDY0ODQsInkiOjM2OH1d\" marker-end=\"url(#mx9unqjnio24pnxygc_flowchart-v2-pointEnd)\">\u003C\u002Fpath>\u003Cpath d=\"M349.798,320.58L354.227,324.316C358.655,328.053,367.513,335.527,371.941,343.604C376.37,351.681,376.37,360.362,376.37,364.702L376.37,369.043\" id=\"L_GW_REDIS_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_GW_REDIS_0\" data-points=\"W3sieCI6MzQ2Ljc0MTE0MDI5MjI0MSwieSI6MzE4fSx7IngiOjM3Ni4zNjk3OTY3NTI5Mjk3LCJ5IjozNDN9LHsieCI6Mzc2LjM2OTc5Njc1MjkyOTcsInkiOjM3My4wNDI3MjY1MTY3MjM2M31d\" marker-start=\"url(#mx9unqjnio24pnxygc_flowchart-v2-pointStart)\" marker-end=\"url(#mx9unqjnio24pnxygc_flowchart-v2-pointEnd)\">\u003C\u002Fpath>\u003Cpath d=\"M406.049,313.183L426.504,318.153C446.958,323.122,487.867,333.061,508.322,342.965C528.776,352.869,528.776,362.739,528.776,367.674L528.776,372.608\" id=\"L_GW_UP_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_GW_UP_0\" data-points=\"W3sieCI6NDA2LjA0OTQ4MDQzODIzMjQsInkiOjMxMy4xODMzMDg0NTIzMTE4NX0seyJ4Ijo1MjguNzc2MDQ2NzUyOTI5NywieSI6MzQzfSx7IngiOjUyOC43NzYwNDY3NTI5Mjk3LCJ5IjozNzYuNjA4NDU1NjU3OTU5fV0=\" marker-end=\"url(#mx9unqjnio24pnxygc_flowchart-v2-pointEnd)\">\u003C\u002Fpath>\u003C\u002Fg>\u003Cg class=\"edgeLabels\">\u003Cg class=\"edgeLabel\">\u003Cg class=\"label\" data-id=\"L_EXT_WAF_0\" transform=\"translate(0, 0)\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"edgeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"edgeLabel\">\u003Cg class=\"label\" data-id=\"L_WAF_GW_0\" transform=\"translate(0, 0)\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"edgeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"edgeLabel\" transform=\"translate(458.55989837646484, 227)\">\u003Cg class=\"label\" data-id=\"L_ADMIN_GW_0\" transform=\"translate(-97.61458587646484, -12)\">\u003CforeignObject width=\"195.2291717529297\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"edgeLabel\">\u003Cp>Restricted Management API\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"edgeLabel\">\u003Cg class=\"label\" data-id=\"L_GW_SECRETS_0\" transform=\"translate(0, 0)\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"edgeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"edgeLabel\">\u003Cg class=\"label\" data-id=\"L_GW_DB_0\" transform=\"translate(0, 0)\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"edgeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"edgeLabel\">\u003Cg class=\"label\" data-id=\"L_GW_REDIS_0\" transform=\"translate(0, 0)\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"edgeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"edgeLabel\">\u003Cg class=\"label\" data-id=\"L_GW_UP_0\" transform=\"translate(0, 0)\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"edgeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"nodes\">\u003Cg class=\"node default\" id=\"flowchart-EXT-0\" transform=\"translate(152.23177337646484, 35)\">\u003Crect class=\"basic label-container\" style=\"\" x=\"-123.32292175292969\" y=\"-27\" width=\"246.64584350585938\" height=\"54\">\u003C\u002Frect>\u003Cg class=\"label\" style=\"\" transform=\"translate(-93.32292175292969, -12)\">\u003Crect>\u003C\u002Frect>\u003CforeignObject width=\"186.64584350585938\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"nodeLabel\">\u003Cp>Internet \u002F Internal Clients\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"node default\" id=\"flowchart-WAF-1\" transform=\"translate(152.23177337646484, 151)\">\u003Crect class=\"basic label-container\" style=\"\" x=\"-126.328125\" y=\"-27\" width=\"252.65625\" height=\"54\">\u003C\u002Frect>\u003Cg class=\"label\" style=\"\" transform=\"translate(-96.328125, -12)\">\u003Crect>\u003C\u002Frect>\u003CforeignObject width=\"192.65625\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"nodeLabel\">\u003Cp>WAF \u002F Nginx \u002F TLS \u002F IP ACL\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"node default\" id=\"flowchart-ADMIN-2\" transform=\"translate(458.55989837646484, 151)\">\u003Crect class=\"basic label-container\" style=\"\" x=\"-130\" y=\"-39\" width=\"260\" height=\"78\">\u003C\u002Frect>\u003Cg class=\"label\" style=\"\" transform=\"translate(-100, -24)\">\u003Crect>\u003C\u002Frect>\u003CforeignObject width=\"200\" height=\"48\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table; white-space: break-spaces; line-height: 1.5; max-width: 200px; text-align: center; width: 200px;\">\u003Cspan class=\"nodeLabel\">\u003Cp>SEABRID Admin Service \u002F IAM\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"node default\" id=\"flowchart-GW-3\" transform=\"translate(314.74219131469727, 291)\">\u003Crect class=\"basic label-container\" style=\"\" x=\"-91.30729293823242\" y=\"-27\" width=\"182.61458587646484\" height=\"54\">\u003C\u002Frect>\u003Cg class=\"label\" style=\"\" transform=\"translate(-61.30729293823242, -12)\">\u003Crect>\u003C\u002Frect>\u003CforeignObject width=\"122.61458587646484\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"nodeLabel\">\u003Cp>LiteLLM Gateway\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"node default\" id=\"flowchart-SECRETS-4\" transform=\"translate(82.015625, 403.608455657959)\">\u003Crect class=\"basic label-container\" style=\"\" x=\"-74.015625\" y=\"-27\" width=\"148.03125\" height=\"54\">\u003C\u002Frect>\u003Cg class=\"label\" style=\"\" transform=\"translate(-44.015625, -12)\">\u003Crect>\u003C\u002Frect>\u003CforeignObject width=\"88.03125\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"nodeLabel\">\u003Cp>Secret Store\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"node default\" id=\"flowchart-DB-5\" transform=\"translate(253.11458587646484, 403.608455657959)\">\u003Cpath d=\"M0,10.741445197822479 a47.083335876464844,10.741445197822479 0,0,0 94.16667175292969,0 a47.083335876464844,10.741445197822479 0,0,0 -94.16667175292969,0 l0,49.74144519782248 a47.083335876464844,10.741445197822479 0,0,0 94.16667175292969,0 l0,-49.74144519782248\" class=\"basic label-container\" style=\"\" transform=\"translate(-47.083335876464844, -35.612167796733715)\">\u003C\u002Fpath>\u003Cg class=\"label\" style=\"\" transform=\"translate(-39.583335876464844, -2)\">\u003Crect>\u003C\u002Frect>\u003CforeignObject width=\"79.16667175292969\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"nodeLabel\">\u003Cp>PostgreSQL\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"node default\" id=\"flowchart-REDIS-6\" transform=\"translate(376.3697967529297, 403.608455657959)\">\u003Cpath d=\"M0,7.378854625550661 a26.171875,7.378854625550661 0,0,0 52.34375,0 a26.171875,7.378854625550661 0,0,0 -52.34375,0 l0,46.37885462555066 a26.171875,7.378854625550661 0,0,0 52.34375,0 l0,-46.37885462555066\" class=\"basic label-container\" style=\"\" transform=\"translate(-26.171875, -30.56828193832599)\">\u003C\u002Fpath>\u003Cg class=\"label\" style=\"\" transform=\"translate(-18.671875, -2)\">\u003Crect>\u003C\u002Frect>\u003CforeignObject width=\"37.34375\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"nodeLabel\">\u003Cp>Redis\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"node default\" id=\"flowchart-UP-7\" transform=\"translate(528.7760467529297, 403.608455657959)\">\u003Crect class=\"basic label-container\" style=\"\" x=\"-76.234375\" y=\"-27\" width=\"152.46875\" height=\"54\">\u003C\u002Frect>\u003Cg class=\"label\" style=\"\" transform=\"translate(-46.234375, -12)\">\u003Crect>\u003C\u002Frect>\u003CforeignObject width=\"92.46875\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"nodeLabel\">\u003Cp>Provider APIs\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003C\u002Fg>\u003C\u002Fg>\u003C\u002Fg>\u003C\u002Fsvg>\u003Cdiv class=\"md-editor-mermaid-action\">\u003Cspan class=\"md-editor-mermaid-copy\">\u003Csvg xmlns=\"http:\u002F\u002Fwww.w3.org\u002F2000\u002Fsvg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"lucide lucide-copy md-editor-icon\">\u003Crect width=\"14\" height=\"14\" x=\"8\" y=\"8\" rx=\"2\" ry=\"2\">\u003C\u002Frect>\u003Cpath d=\"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2\">\u003C\u002Fpath>\u003C\u002Fsvg>\u003C\u002Fspan>\u003Cspan class=\"md-editor-mermaid-zoom\">\u003Csvg xmlns=\"http:\u002F\u002Fwww.w3.org\u002F2000\u002Fsvg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"lucide lucide-pin-off md-editor-icon\">\u003Cpath d=\"M12 17v5\">\u003C\u002Fpath>\u003Cpath d=\"M15 9.34V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H7.89\">\u003C\u002Fpath>\u003Cpath d=\"m2 2 20 20\">\u003C\u002Fpath>\u003Cpath d=\"M9 9v1.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h11\">\u003C\u002Fpath>\u003C\u002Fsvg>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002Fp>\u003Chr data-line=\"1009\">\n\u003Ch2 data-line=\"1011\" id=\"15. 架构优点、局限和技术风险\">15. 架构优点、局限和技术风险\u003C\u002Fh2>\n\u003Ch3 data-line=\"1013\" id=\"15.1 优点\">15.1 优点\u003C\u002Fh3>\n\u003Col data-line=\"1015\">\n\u003Cli data-line=\"1015\">多供应商统一接入，降低业务应用与 Provider 的耦合。\u003C\u002Fli>\n\u003Cli data-line=\"1016\">SDK 和 Gateway 两种模式，适用范围较广。\u003C\u002Fli>\n\u003Cli data-line=\"1017\">Virtual Key、Team、预算和限流提供了基础企业治理能力。\u003C\u002Fli>\n\u003Cli data-line=\"1018\">Router 提供重试、Fallback、负载均衡和部署冷却。\u003C\u002Fli>\n\u003Cli data-line=\"1019\">Provider Adapter 结构便于扩展模型供应商。\u003C\u002Fli>\n\u003Cli data-line=\"1020\">UI、Management API、YAML、Terraform 支持不同运维方式。\u003C\u002Fli>\n\u003Cli data-line=\"1021\">Python 与 Rust 渐进式共存，兼顾生态和性能。\u003C\u002Fli>\n\u003Cli data-line=\"1022\">单体和组件化部署提供不同规模的运行模式。\u003C\u002Fli>\n\u003C\u002Fol>\n\u003Ch3 data-line=\"1024\" id=\"15.2 局限与风险\">15.2 局限与风险\u003C\u002Fh3>\n\u003Ctable data-line=\"1026\">\n\u003Cthead data-line=\"1026\">\n\u003Ctr data-line=\"1026\">\n\u003Cth>风险\u003C\u002Fth>\n\u003Cth>原因\u003C\u002Fth>\n\u003Cth>建议\u003C\u002Fth>\n\u003C\u002Ftr>\n\u003C\u002Fthead>\n\u003Ctbody data-line=\"1028\">\n\u003Ctr data-line=\"1028\">\n\u003Ctd>模型能力不等价\u003C\u002Ftd>\n\u003Ctd>统一接口不能消除模型能力差异\u003C\u002Ftd>\n\u003Ctd>建立能力矩阵和业务回归测试\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr data-line=\"1029\">\n\u003Ctd>版本升级复杂\u003C\u002Ftd>\n\u003Ctd>Provider、Router、Rust 支持矩阵变化快\u003C\u002Ftd>\n\u003Ctd>固定版本、灰度升级\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr data-line=\"1030\">\n\u003Ctd>账务最终一致\u003C\u002Ftd>\n\u003Ctd>异步 Spend 写入可能有延迟\u003C\u002Ftd>\n\u003Ctd>监控队列、补偿和对账\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr data-line=\"1031\">\n\u003Ctd>Redis 依赖\u003C\u002Ftd>\n\u003Ctd>多副本状态和限流依赖共享缓存\u003C\u002Ftd>\n\u003Ctd>设计 Redis HA 和降级策略\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr data-line=\"1032\">\n\u003Ctd>管理面影响推理面\u003C\u002Ftd>\n\u003Ctd>单体模式共享运行资源\u003C\u002Ftd>\n\u003Ctd>规模扩大后组件化部署\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr data-line=\"1033\">\n\u003Ctd>配置双写\u003C\u002Ftd>\n\u003Ctd>YAML 与 DB 同时维护资源\u003C\u002Ftd>\n\u003Ctd>单一事实来源\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr data-line=\"1034\">\n\u003Ctd>自定义扩展升级成本\u003C\u002Ftd>\n\u003Ctd>直接改核心源码容易冲突\u003C\u002Ftd>\n\u003Ctd>外置服务和官方 Hook 优先\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr data-line=\"1035\">\n\u003Ctd>价格准确性\u003C\u002Ftd>\n\u003Ctd>模型价格和供应商账单可能变化\u003C\u002Ftd>\n\u003Ctd>价格版本化和供应商对账\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003C\u002Ftbody>\n\u003C\u002Ftable>\n\u003Ch3 data-line=\"1037\" id=\"15.3 适用场景\">15.3 适用场景\u003C\u002Fh3>\n\u003Ctable data-line=\"1039\">\n\u003Cthead data-line=\"1039\">\n\u003Ctr data-line=\"1039\">\n\u003Cth>场景\u003C\u002Fth>\n\u003Cth>适用性\u003C\u002Fth>\n\u003C\u002Ftr>\n\u003C\u002Fthead>\n\u003Ctbody data-line=\"1041\">\n\u003Ctr data-line=\"1041\">\n\u003Ctd>多模型厂商统一 API\u003C\u002Ftd>\n\u003Ctd>高\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr data-line=\"1042\">\n\u003Ctd>团队 \u002F 项目 \u002F Agent Key 管理\u003C\u002Ftd>\n\u003Ctd>高\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr data-line=\"1043\">\n\u003Ctd>模型负载均衡和故障切换\u003C\u002Ftd>\n\u003Ctd>高\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr data-line=\"1044\">\n\u003Ctd>企业级模型调用统计\u003C\u002Ftd>\n\u003Ctd>高，但财务结算需扩展\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr data-line=\"1045\">\n\u003Ctd>企业身份与组织主数据\u003C\u002Ftd>\n\u003Ctd>需要外部 IAM 配合\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr data-line=\"1046\">\n\u003Ctd>Agent 任务调度与隔离执行\u003C\u002Ftd>\n\u003Ctd>不属于其核心边界\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr data-line=\"1047\">\n\u003Ctd>模型训练和推理集群管理\u003C\u002Ftd>\n\u003Ctd>不属于其核心边界\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr data-line=\"1048\">\n\u003Ctd>企业业务流程与审批\u003C\u002Ftd>\n\u003Ctd>不属于其核心边界\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003C\u002Ftbody>\n\u003C\u002Ftable>\n\u003Chr data-line=\"1050\">\n\u003Ch2 data-line=\"1052\" id=\"16. SEABRID OS 集成架构建议\">16. SEABRID OS 集成架构建议\u003C\u002Fh2>\n\u003Ch3 data-line=\"1054\" id=\"16.1 系统职责边界\">16.1 系统职责边界\u003C\u002Fh3>\n\u003Ctable data-line=\"1056\">\n\u003Cthead data-line=\"1056\">\n\u003Ctr data-line=\"1056\">\n\u003Cth>系统\u003C\u002Fth>\n\u003Cth>核心职责\u003C\u002Fth>\n\u003C\u002Ftr>\n\u003C\u002Fthead>\n\u003Ctbody data-line=\"1058\">\n\u003Ctr data-line=\"1058\">\n\u003Ctd>DeepSeek Harness\u003C\u002Ftd>\n\u003Ctd>Agent 运行、工具调用、代码执行和任务工作区\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr data-line=\"1059\">\n\u003Ctd>LiteLLM\u003C\u002Ftd>\n\u003Ctd>多模型 Gateway、供应商凭证、路由、Virtual Key、调用成本\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr data-line=\"1060\">\n\u003Ctd>SEABRID OS\u003C\u002Ftd>\n\u003Ctd>企业用户、租户、项目、Agent 资产、业务权限、管理工作台\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr data-line=\"1061\">\n\u003Ctd>SEABRID LLM Admin Service\u003C\u002Ftd>\n\u003Ctd>SEABRID IAM 与 LiteLLM Management API 的适配服务\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr data-line=\"1062\">\n\u003Ctd>PostgreSQL\u003C\u002Ftd>\n\u003Ctd>LiteLLM 自有管理与账务数据\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr data-line=\"1063\">\n\u003Ctd>SEABRID Platform DB\u003C\u002Ftd>\n\u003Ctd>企业业务主数据、租户、项目和审计关联\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003C\u002Ftbody>\n\u003C\u002Ftable>\n\u003Ch3 data-line=\"1065\" id=\"16.2 推荐集成架构\">16.2 推荐集成架构\u003C\u002Fh3>\n\u003Cp data-line=\"1067\" class=\"md-editor-mermaid\" data-mermaid-theme=\"light\" data-closed=\"true\" data-processed=\"\" data-content=\"flowchart TB\n    subgraph USER[&quot;使用者&quot;]\n      ADMIN[&quot;平台管理员&quot;]\n      DEV[&quot;开发人员&quot;]\n      AGENT[&quot;DeepSeek Harness Agents&quot;]\n    end\n    subgraph SEABRID[&quot;SEABRID OS&quot;]\n      UI[&quot;Vue3 管理工作台&quot;]\n      IAM[&quot;企业 IAM \u002F Tenant \u002F Project&quot;]\n      ADMINAPI[&quot;LLM Admin Service&quot;]\n      BIZ[&quot;Agent \u002F 项目 \u002F 预算业务映射&quot;]\n    end\n    subgraph GATEWAY[&quot;LiteLLM&quot;]\n      MGMT[&quot;Management API&quot;]\n      DP[&quot;Gateway API&quot;]\n      ROUTER[&quot;Router \u002F Provider Adapters&quot;]\n    end\n    subgraph DATA[&quot;数据层&quot;]\n      LDB[(&quot;LiteLLM PostgreSQL&quot;)]\n      ADB[(&quot;SEABRID Business DB&quot;)]\n      CACHE[(&quot;Redis&quot;)]\n    end\n    MODELS[&quot;DeepSeek \u002F OpenAI \u002F Claude \u002F Gemini \u002F Local&quot;]\n\n    ADMIN --&gt; UI\n    DEV --&gt; UI\n    UI --&gt; ADMINAPI\n    ADMINAPI &lt;--&gt; IAM\n    ADMINAPI &lt;--&gt; BIZ\n    ADMINAPI --&gt; MGMT\n    AGENT --&gt; DP\n    MGMT --&gt; LDB\n    DP --&gt; ROUTER --&gt; MODELS\n    DP --&gt; CACHE\n    DP --&gt; LDB\n    BIZ --&gt; ADB\">\u003Csvg id=\"mx9uo5spsn4oofwu99\" width=\"100%\" xmlns=\"http:\u002F\u002Fwww.w3.org\u002F2000\u002Fsvg\" xmlns:xlink=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxlink\" class=\"flowchart\" style=\"max-width: 1234.9322509765625px;\" viewBox=\"0 0 1234.9322509765625 840.232177734375\" role=\"graphics-document document\" aria-roledescription=\"flowchart-v2\">\u003Cstyle>#mx9uo5spsn4oofwu99{font-family:\"trebuchet ms\",verdana,arial,sans-serif;font-size:16px;fill:#333;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#mx9uo5spsn4oofwu99 .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#mx9uo5spsn4oofwu99 .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#mx9uo5spsn4oofwu99 .error-icon{fill:#552222;}#mx9uo5spsn4oofwu99 .error-text{fill:#552222;stroke:#552222;}#mx9uo5spsn4oofwu99 .edge-thickness-normal{stroke-width:1px;}#mx9uo5spsn4oofwu99 .edge-thickness-thick{stroke-width:3.5px;}#mx9uo5spsn4oofwu99 .edge-pattern-solid{stroke-dasharray:0;}#mx9uo5spsn4oofwu99 .edge-thickness-invisible{stroke-width:0;fill:none;}#mx9uo5spsn4oofwu99 .edge-pattern-dashed{stroke-dasharray:3;}#mx9uo5spsn4oofwu99 .edge-pattern-dotted{stroke-dasharray:2;}#mx9uo5spsn4oofwu99 .marker{fill:#333333;stroke:#333333;}#mx9uo5spsn4oofwu99 .marker.cross{stroke:#333333;}#mx9uo5spsn4oofwu99 svg{font-family:\"trebuchet ms\",verdana,arial,sans-serif;font-size:16px;}#mx9uo5spsn4oofwu99 p{margin:0;}#mx9uo5spsn4oofwu99 .label{font-family:\"trebuchet ms\",verdana,arial,sans-serif;color:#333;}#mx9uo5spsn4oofwu99 .cluster-label text{fill:#333;}#mx9uo5spsn4oofwu99 .cluster-label span{color:#333;}#mx9uo5spsn4oofwu99 .cluster-label span p{background-color:transparent;}#mx9uo5spsn4oofwu99 .label text,#mx9uo5spsn4oofwu99 span{fill:#333;color:#333;}#mx9uo5spsn4oofwu99 .node rect,#mx9uo5spsn4oofwu99 .node circle,#mx9uo5spsn4oofwu99 .node ellipse,#mx9uo5spsn4oofwu99 .node polygon,#mx9uo5spsn4oofwu99 .node path{fill:#ECECFF;stroke:#9370DB;stroke-width:1px;}#mx9uo5spsn4oofwu99 .rough-node .label text,#mx9uo5spsn4oofwu99 .node .label text,#mx9uo5spsn4oofwu99 .image-shape .label,#mx9uo5spsn4oofwu99 .icon-shape .label{text-anchor:middle;}#mx9uo5spsn4oofwu99 .node .katex path{fill:#000;stroke:#000;stroke-width:1px;}#mx9uo5spsn4oofwu99 .rough-node .label,#mx9uo5spsn4oofwu99 .node .label,#mx9uo5spsn4oofwu99 .image-shape .label,#mx9uo5spsn4oofwu99 .icon-shape .label{text-align:center;}#mx9uo5spsn4oofwu99 .node.clickable{cursor:pointer;}#mx9uo5spsn4oofwu99 .root .anchor path{fill:#333333!important;stroke-width:0;stroke:#333333;}#mx9uo5spsn4oofwu99 .arrowheadPath{fill:#333333;}#mx9uo5spsn4oofwu99 .edgePath .path{stroke:#333333;stroke-width:2.0px;}#mx9uo5spsn4oofwu99 .flowchart-link{stroke:#333333;fill:none;}#mx9uo5spsn4oofwu99 .edgeLabel{background-color:rgba(232,232,232, 0.8);text-align:center;}#mx9uo5spsn4oofwu99 .edgeLabel p{background-color:rgba(232,232,232, 0.8);}#mx9uo5spsn4oofwu99 .edgeLabel rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mx9uo5spsn4oofwu99 .labelBkg{background-color:rgba(232, 232, 232, 0.5);}#mx9uo5spsn4oofwu99 .cluster rect{fill:#ffffde;stroke:#aaaa33;stroke-width:1px;}#mx9uo5spsn4oofwu99 .cluster text{fill:#333;}#mx9uo5spsn4oofwu99 .cluster span{color:#333;}#mx9uo5spsn4oofwu99 div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:\"trebuchet ms\",verdana,arial,sans-serif;font-size:12px;background:hsl(80, 100%, 96.2745098039%);border:1px solid #aaaa33;border-radius:2px;pointer-events:none;z-index:100;}#mx9uo5spsn4oofwu99 .flowchartTitleText{text-anchor:middle;font-size:18px;fill:#333;}#mx9uo5spsn4oofwu99 rect.text{fill:none;stroke-width:0;}#mx9uo5spsn4oofwu99 .icon-shape,#mx9uo5spsn4oofwu99 .image-shape{background-color:rgba(232,232,232, 0.8);text-align:center;}#mx9uo5spsn4oofwu99 .icon-shape p,#mx9uo5spsn4oofwu99 .image-shape p{background-color:rgba(232,232,232, 0.8);padding:2px;}#mx9uo5spsn4oofwu99 .icon-shape rect,#mx9uo5spsn4oofwu99 .image-shape rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mx9uo5spsn4oofwu99 .label-icon{display:inline-block;height:1em;overflow:visible;vertical-align:-0.125em;}#mx9uo5spsn4oofwu99 .node .label-icon path{fill:currentColor;stroke:revert;stroke-width:revert;}#mx9uo5spsn4oofwu99 :root{--mermaid-font-family:\"trebuchet ms\",verdana,arial,sans-serif;}\u003C\u002Fstyle>\u003Cg>\u003Cmarker id=\"mx9uo5spsn4oofwu99_flowchart-v2-pointEnd\" class=\"marker flowchart-v2\" viewBox=\"0 0 10 10\" refX=\"5\" refY=\"5\" markerUnits=\"userSpaceOnUse\" markerWidth=\"8\" markerHeight=\"8\" orient=\"auto\">\u003Cpath d=\"M 0 0 L 10 5 L 0 10 z\" class=\"arrowMarkerPath\" style=\"stroke-width: 1; stroke-dasharray: 1, 0;\">\u003C\u002Fpath>\u003C\u002Fmarker>\u003Cmarker id=\"mx9uo5spsn4oofwu99_flowchart-v2-pointStart\" class=\"marker flowchart-v2\" viewBox=\"0 0 10 10\" refX=\"4.5\" refY=\"5\" markerUnits=\"userSpaceOnUse\" markerWidth=\"8\" markerHeight=\"8\" orient=\"auto\">\u003Cpath d=\"M 0 5 L 10 10 L 10 0 z\" class=\"arrowMarkerPath\" style=\"stroke-width: 1; stroke-dasharray: 1, 0;\">\u003C\u002Fpath>\u003C\u002Fmarker>\u003Cmarker id=\"mx9uo5spsn4oofwu99_flowchart-v2-circleEnd\" class=\"marker flowchart-v2\" viewBox=\"0 0 10 10\" refX=\"11\" refY=\"5\" markerUnits=\"userSpaceOnUse\" markerWidth=\"11\" markerHeight=\"11\" orient=\"auto\">\u003Ccircle cx=\"5\" cy=\"5\" r=\"5\" class=\"arrowMarkerPath\" style=\"stroke-width: 1; stroke-dasharray: 1, 0;\">\u003C\u002Fcircle>\u003C\u002Fmarker>\u003Cmarker id=\"mx9uo5spsn4oofwu99_flowchart-v2-circleStart\" class=\"marker flowchart-v2\" viewBox=\"0 0 10 10\" refX=\"-1\" refY=\"5\" markerUnits=\"userSpaceOnUse\" markerWidth=\"11\" markerHeight=\"11\" orient=\"auto\">\u003Ccircle cx=\"5\" cy=\"5\" r=\"5\" class=\"arrowMarkerPath\" style=\"stroke-width: 1; stroke-dasharray: 1, 0;\">\u003C\u002Fcircle>\u003C\u002Fmarker>\u003Cmarker id=\"mx9uo5spsn4oofwu99_flowchart-v2-crossEnd\" class=\"marker cross flowchart-v2\" viewBox=\"0 0 11 11\" refX=\"12\" refY=\"5.2\" markerUnits=\"userSpaceOnUse\" markerWidth=\"11\" markerHeight=\"11\" orient=\"auto\">\u003Cpath d=\"M 1,1 l 9,9 M 10,1 l -9,9\" class=\"arrowMarkerPath\" style=\"stroke-width: 2; stroke-dasharray: 1, 0;\">\u003C\u002Fpath>\u003C\u002Fmarker>\u003Cmarker id=\"mx9uo5spsn4oofwu99_flowchart-v2-crossStart\" class=\"marker cross flowchart-v2\" viewBox=\"0 0 11 11\" refX=\"-1\" refY=\"5.2\" markerUnits=\"userSpaceOnUse\" markerWidth=\"11\" markerHeight=\"11\" orient=\"auto\">\u003Cpath d=\"M 1,1 l 9,9 M 10,1 l -9,9\" class=\"arrowMarkerPath\" style=\"stroke-width: 2; stroke-dasharray: 1, 0;\">\u003C\u002Fpath>\u003C\u002Fmarker>\u003Cg class=\"root\">\u003Cg class=\"clusters\">\u003Cg class=\"cluster\" id=\"DATA\" data-look=\"classic\">\u003Crect style=\"\" x=\"161.10416412353516\" y=\"573\" width=\"537.7291717529297\" height=\"131.23220825195312\">\u003C\u002Frect>\u003Cg class=\"cluster-label\" transform=\"translate(405.96875, 573)\">\u003CforeignObject width=\"48\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"nodeLabel\">\u003Cp>数据层\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"cluster\" id=\"GATEWAY\" data-look=\"classic\">\u003Crect style=\"\" x=\"718.8333358764648\" y=\"395\" width=\"508.09896087646484\" height=\"309.2322082519531\">\u003C\u002Frect>\u003Cg class=\"cluster-label\" transform=\"translate(945.236982345581, 395)\">\u003CforeignObject width=\"55.29166793823242\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"nodeLabel\">\u003Cp>LiteLLM\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"cluster\" id=\"SEABRID\" data-look=\"classic\">\u003Crect style=\"\" x=\"8\" y=\"162\" width=\"656.4375\" height=\"361\">\u003C\u002Frect>\u003Cg class=\"cluster-label\" transform=\"translate(295.40103912353516, 162)\">\u003CforeignObject width=\"81.63542175292969\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"nodeLabel\">\u003Cp>SEABRID OS\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"cluster\" id=\"USER\" data-look=\"classic\">\u003Crect style=\"\" x=\"227.15104293823242\" y=\"8\" width=\"984.5364646911621\" height=\"104\">\u003C\u002Frect>\u003Cg class=\"cluster-label\" transform=\"translate(695.4192752838135, 8)\">\u003CforeignObject width=\"48\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"nodeLabel\">\u003Cp>使用者\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"edgePaths\">\u003Cpath d=\"M332.151,87L332.151,91.167C332.151,95.333,332.151,103.667,332.151,112C332.151,120.333,332.151,128.667,332.151,137C332.151,145.333,332.151,153.667,342.647,161.766C353.144,169.866,374.137,177.731,384.633,181.664L395.13,185.597\" id=\"L_ADMIN_UI_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_ADMIN_UI_0\" data-points=\"W3sieCI6MzMyLjE1MTA0MjkzODIzMjQsInkiOjg3fSx7IngiOjMzMi4xNTEwNDI5MzgyMzI0LCJ5IjoxMTJ9LHsieCI6MzMyLjE1MTA0MjkzODIzMjQsInkiOjEzN30seyJ4IjozMzIuMTUxMDQyOTM4MjMyNCwieSI6MTYyfSx7IngiOjM5OC44NzUzMDExNDEwMDUzLCJ5IjoxODd9XQ==\" marker-end=\"url(#mx9uo5spsn4oofwu99_flowchart-v2-pointEnd)\">\u003C\u002Fpath>\u003Cpath d=\"M596.651,87L596.651,91.167C596.651,95.333,596.651,103.667,596.651,112C596.651,120.333,596.651,128.667,596.651,137C596.651,145.333,596.651,153.667,587.194,161.745C577.737,169.824,558.822,177.647,549.365,181.559L539.908,185.471\" id=\"L_DEV_UI_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_DEV_UI_0\" data-points=\"W3sieCI6NTk2LjY1MTA0MjkzODIzMjQsInkiOjg3fSx7IngiOjU5Ni42NTEwNDI5MzgyMzI0LCJ5IjoxMTJ9LHsieCI6NTk2LjY1MTA0MjkzODIzMjQsInkiOjEzN30seyJ4Ijo1OTYuNjUxMDQyOTM4MjMyNCwieSI6MTYyfSx7IngiOjUzNi4yMTE4Mzk2MDI1NDM3LCJ5IjoxODd9XQ==\" marker-end=\"url(#mx9uo5spsn4oofwu99_flowchart-v2-pointEnd)\">\u003C\u002Fpath>\u003Cpath d=\"M470.938,241L470.938,245.167C470.938,249.333,470.938,257.667,470.938,265.333C470.938,273,470.938,280,470.938,283.5L470.938,287\" id=\"L_UI_ADMINAPI_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_UI_ADMINAPI_0\" data-points=\"W3sieCI6NDcwLjkzNzUsInkiOjI0MX0seyJ4Ijo0NzAuOTM3NSwieSI6MjY2fSx7IngiOjQ3MC45Mzc1LCJ5IjoyOTF9XQ==\" marker-end=\"url(#mx9uo5spsn4oofwu99_flowchart-v2-pointEnd)\">\u003C\u002Fpath>\u003Cpath d=\"M370.528,335.464L337.435,341.22C304.342,346.976,238.155,358.488,205.062,368.411C171.969,378.333,171.969,386.667,171.969,396.333C171.969,406,171.969,417,171.969,422.5L171.969,428\" id=\"L_ADMINAPI_IAM_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_ADMINAPI_IAM_0\" data-points=\"W3sieCI6Mzc0LjQ2ODc1LCJ5IjozMzQuNzc4OTI3NTYzNDk5NX0seyJ4IjoxNzEuOTY4NzUsInkiOjM3MH0seyJ4IjoxNzEuOTY4NzUsInkiOjM5NX0seyJ4IjoxNzEuOTY4NzUsInkiOjQzMn1d\" marker-start=\"url(#mx9uo5spsn4oofwu99_flowchart-v2-pointStart)\" marker-end=\"url(#mx9uo5spsn4oofwu99_flowchart-v2-pointEnd)\">\u003C\u002Fpath>\u003Cpath d=\"M476.885,348.928L477.561,352.44C478.236,355.952,479.587,362.976,480.262,370.655C480.938,378.333,480.938,386.667,480.938,394.333C480.938,402,480.938,409,480.938,412.5L480.938,416\" id=\"L_ADMINAPI_BIZ_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_ADMINAPI_BIZ_0\" data-points=\"W3sieCI6NDc2LjEyOTgwNzY5MjMwNzcsInkiOjM0NX0seyJ4Ijo0ODAuOTM3NSwieSI6MzcwfSx7IngiOjQ4MC45Mzc1LCJ5IjozOTV9LHsieCI6NDgwLjkzNzUsInkiOjQyMH1d\" marker-start=\"url(#mx9uo5spsn4oofwu99_flowchart-v2-pointStart)\" marker-end=\"url(#mx9uo5spsn4oofwu99_flowchart-v2-pointEnd)\">\u003C\u002Fpath>\u003Cpath d=\"M536.212,345L546.285,349.167C556.358,353.333,576.505,361.667,586.578,370C596.651,378.333,596.651,386.667,622.203,397.483C647.755,408.299,698.859,421.597,724.41,428.247L749.962,434.896\" id=\"L_ADMINAPI_MGMT_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_ADMINAPI_MGMT_0\" data-points=\"W3sieCI6NTM2LjIxMTgzOTYwMjU0MzcsInkiOjM0NX0seyJ4Ijo1OTYuNjUxMDQyOTM4MjMyNCwieSI6MzcwfSx7IngiOjU5Ni42NTEwNDI5MzgyMzI0LCJ5IjozOTV9LHsieCI6NzUzLjgzMzMzNTg3NjQ2NDgsInkiOjQzNS45MDMzNDU3MzYyNjYzfV0=\" marker-end=\"url(#mx9uo5spsn4oofwu99_flowchart-v2-pointEnd)\">\u003C\u002Fpath>\u003Cpath d=\"M1055.969,87L1055.969,91.167C1055.969,95.333,1055.969,103.667,1055.969,112C1055.969,120.333,1055.969,128.667,1055.969,137C1055.969,145.333,1055.969,153.667,1055.969,166.5C1055.969,179.333,1055.969,196.667,1055.969,214C1055.969,231.333,1055.969,248.667,1055.969,266C1055.969,283.333,1055.969,300.667,1055.969,318C1055.969,335.333,1055.969,352.667,1055.969,365.5C1055.969,378.333,1055.969,386.667,1055.969,396.333C1055.969,406,1055.969,417,1055.969,422.5L1055.969,428\" id=\"L_AGENT_DP_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_AGENT_DP_0\" data-points=\"W3sieCI6MTA1NS45Njg3NTc2MjkzOTQ1LCJ5Ijo4N30seyJ4IjoxMDU1Ljk2ODc1NzYyOTM5NDUsInkiOjExMn0seyJ4IjoxMDU1Ljk2ODc1NzYyOTM5NDUsInkiOjEzN30seyJ4IjoxMDU1Ljk2ODc1NzYyOTM5NDUsInkiOjE2Mn0seyJ4IjoxMDU1Ljk2ODc1NzYyOTM5NDUsInkiOjIxNH0seyJ4IjoxMDU1Ljk2ODc1NzYyOTM5NDUsInkiOjI2Nn0seyJ4IjoxMDU1Ljk2ODc1NzYyOTM5NDUsInkiOjMxOH0seyJ4IjoxMDU1Ljk2ODc1NzYyOTM5NDUsInkiOjM3MH0seyJ4IjoxMDU1Ljk2ODc1NzYyOTM5NDUsInkiOjM5NX0seyJ4IjoxMDU1Ljk2ODc1NzYyOTM5NDUsInkiOjQzMn1d\" marker-end=\"url(#mx9uo5spsn4oofwu99_flowchart-v2-pointEnd)\">\u003C\u002Fpath>\u003Cpath d=\"M842.589,486L842.589,492.167C842.589,498.333,842.589,510.667,842.589,521C842.589,531.333,842.589,539.667,842.589,548C842.589,556.333,842.589,564.667,761.217,578.211C679.845,591.756,517.102,610.512,435.731,619.89L354.359,629.268\" id=\"L_MGMT_LDB_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_MGMT_LDB_0\" data-points=\"W3sieCI6ODQyLjU4ODU0Njc1MjkyOTcsInkiOjQ4Nn0seyJ4Ijo4NDIuNTg4NTQ2NzUyOTI5NywieSI6NTIzfSx7IngiOjg0Mi41ODg1NDY3NTI5Mjk3LCJ5Ijo1NDh9LHsieCI6ODQyLjU4ODU0Njc1MjkyOTcsInkiOjU3M30seyJ4IjozNTAuMzg1NDE0MTIzNTM1MTYsInkiOjYyOS43MjU3NTA2MDEzODgxfV0=\" marker-end=\"url(#mx9uo5spsn4oofwu99_flowchart-v2-pointEnd)\">\u003C\u002Fpath>\u003Cpath d=\"M1060.188,486L1061.151,492.167C1062.115,498.333,1064.042,510.667,1065.005,521C1065.969,531.333,1065.969,539.667,1065.969,548C1065.969,556.333,1065.969,564.667,1065.969,574.603C1065.969,584.539,1065.969,596.077,1065.969,601.847L1065.969,607.616\" id=\"L_DP_ROUTER_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_DP_ROUTER_0\" data-points=\"W3sieCI6MTA2MC4xODc1MDc2MjkzOTQ1LCJ5Ijo0ODZ9LHsieCI6MTA2NS45Njg3NTc2MjkzOTQ1LCJ5Ijo1MjN9LHsieCI6MTA2NS45Njg3NTc2MjkzOTQ1LCJ5Ijo1NDh9LHsieCI6MTA2NS45Njg3NTc2MjkzOTQ1LCJ5Ijo1NzN9LHsieCI6MTA2NS45Njg3NTc2MjkzOTQ1LCJ5Ijo2MTEuNjE2MTA0MTI1OTc2Nn1d\" marker-end=\"url(#mx9uo5spsn4oofwu99_flowchart-v2-pointEnd)\">\u003C\u002Fpath>\u003Cpath d=\"M1065.969,665.616L1065.969,672.052C1065.969,678.488,1065.969,691.36,1065.969,701.963C1065.969,712.566,1065.969,720.899,1065.969,728.566C1065.969,736.232,1065.969,743.232,1065.969,746.732L1065.969,750.232\" id=\"L_ROUTER_MODELS_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_ROUTER_MODELS_0\" data-points=\"W3sieCI6MTA2NS45Njg3NTc2MjkzOTQ1LCJ5Ijo2NjUuNjE2MTA0MTI1OTc2Nn0seyJ4IjoxMDY1Ljk2ODc1NzYyOTM5NDUsInkiOjcwNC4yMzIyMDgyNTE5NTMxfSx7IngiOjEwNjUuOTY4NzU3NjI5Mzk0NSwieSI6NzI5LjIzMjIwODI1MTk1MzF9LHsieCI6MTA2NS45Njg3NTc2MjkzOTQ1LCJ5Ijo3NTQuMjMyMjA4MjUxOTUzMX1d\" marker-end=\"url(#mx9uo5spsn4oofwu99_flowchart-v2-pointEnd)\">\u003C\u002Fpath>\u003Cpath d=\"M1051.75,486L1050.786,492.167C1049.823,498.333,1047.896,510.667,1046.932,521C1045.969,531.333,1045.969,539.667,1045.969,548C1045.969,556.333,1045.969,564.667,982.938,578.963C919.907,593.259,793.845,613.517,730.814,623.646L667.783,633.776\" id=\"L_DP_CACHE_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_DP_CACHE_0\" data-points=\"W3sieCI6MTA1MS43NTAwMDc2MjkzOTQ1LCJ5Ijo0ODZ9LHsieCI6MTA0NS45Njg3NTc2MjkzOTQ1LCJ5Ijo1MjN9LHsieCI6MTA0NS45Njg3NTc2MjkzOTQ1LCJ5Ijo1NDh9LHsieCI6MTA0NS45Njg3NTc2MjkzOTQ1LCJ5Ijo1NzN9LHsieCI6NjYzLjgzMzMzNTg3NjQ2NDgsInkiOjYzNC40MTAyMTE5MjQ2MTUzfV0=\" marker-end=\"url(#mx9uo5spsn4oofwu99_flowchart-v2-pointEnd)\">\u003C\u002Fpath>\u003Cpath d=\"M1010.959,486L1000.679,492.167C990.399,498.333,969.839,510.667,959.559,521C949.279,531.333,949.279,539.667,949.279,548C949.279,556.333,949.279,564.667,850.127,578.457C750.975,592.247,552.671,611.495,453.519,621.119L354.367,630.742\" id=\"L_DP_LDB_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_DP_LDB_0\" data-points=\"W3sieCI6MTAxMC45NTg4NjkzOTc2NDAyLCJ5Ijo0ODZ9LHsieCI6OTQ5LjI3ODY1MjE5MTE2MjEsInkiOjUyM30seyJ4Ijo5NDkuMjc4NjUyMTkxMTYyMSwieSI6NTQ4fSx7IngiOjk0OS4yNzg2NTIxOTExNjIxLCJ5Ijo1NzN9LHsieCI6MzUwLjM4NTQxNDEyMzUzNTE2LCJ5Ijo2MzEuMTI4ODA1Njk0ODM3OX1d\" marker-end=\"url(#mx9uo5spsn4oofwu99_flowchart-v2-pointEnd)\">\u003C\u002Fpath>\u003Cpath d=\"M480.938,498L480.938,502.167C480.938,506.333,480.938,514.667,480.938,523C480.938,531.333,480.938,539.667,480.938,548C480.938,556.333,480.938,564.667,480.938,572.333C480.938,580,480.938,587,480.938,590.5L480.938,594\" id=\"L_BIZ_ADB_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_BIZ_ADB_0\" data-points=\"W3sieCI6NDgwLjkzNzUsInkiOjQ5OH0seyJ4Ijo0ODAuOTM3NSwieSI6NTIzfSx7IngiOjQ4MC45Mzc1LCJ5Ijo1NDh9LHsieCI6NDgwLjkzNzUsInkiOjU3M30seyJ4Ijo0ODAuOTM3NSwieSI6NTk4fV0=\" marker-end=\"url(#mx9uo5spsn4oofwu99_flowchart-v2-pointEnd)\">\u003C\u002Fpath>\u003C\u002Fg>\u003Cg class=\"edgeLabels\">\u003Cg class=\"edgeLabel\">\u003Cg class=\"label\" data-id=\"L_ADMIN_UI_0\" transform=\"translate(0, 0)\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"edgeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"edgeLabel\">\u003Cg class=\"label\" data-id=\"L_DEV_UI_0\" transform=\"translate(0, 0)\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"edgeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"edgeLabel\">\u003Cg class=\"label\" data-id=\"L_UI_ADMINAPI_0\" transform=\"translate(0, 0)\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"edgeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"edgeLabel\">\u003Cg class=\"label\" data-id=\"L_ADMINAPI_IAM_0\" transform=\"translate(0, 0)\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"edgeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"edgeLabel\">\u003Cg class=\"label\" data-id=\"L_ADMINAPI_BIZ_0\" transform=\"translate(0, 0)\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"edgeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"edgeLabel\">\u003Cg class=\"label\" data-id=\"L_ADMINAPI_MGMT_0\" transform=\"translate(0, 0)\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"edgeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"edgeLabel\">\u003Cg class=\"label\" data-id=\"L_AGENT_DP_0\" transform=\"translate(0, 0)\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"edgeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"edgeLabel\">\u003Cg class=\"label\" data-id=\"L_MGMT_LDB_0\" transform=\"translate(0, 0)\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"edgeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"edgeLabel\">\u003Cg class=\"label\" data-id=\"L_DP_ROUTER_0\" transform=\"translate(0, 0)\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"edgeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"edgeLabel\">\u003Cg class=\"label\" data-id=\"L_ROUTER_MODELS_0\" transform=\"translate(0, 0)\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"edgeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"edgeLabel\">\u003Cg class=\"label\" data-id=\"L_DP_CACHE_0\" transform=\"translate(0, 0)\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"edgeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"edgeLabel\">\u003Cg class=\"label\" data-id=\"L_DP_LDB_0\" transform=\"translate(0, 0)\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"edgeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"edgeLabel\">\u003Cg class=\"label\" data-id=\"L_BIZ_ADB_0\" transform=\"translate(0, 0)\">\u003CforeignObject width=\"0\" height=\"0\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"edgeLabel\">\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"nodes\">\u003Cg class=\"node default\" id=\"flowchart-ADMIN-0\" transform=\"translate(332.1510429382324, 60)\">\u003Crect class=\"basic label-container\" style=\"\" x=\"-70\" y=\"-27\" width=\"140\" height=\"54\">\u003C\u002Frect>\u003Cg class=\"label\" style=\"\" transform=\"translate(-40, -12)\">\u003Crect>\u003C\u002Frect>\u003CforeignObject width=\"80\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"nodeLabel\">\u003Cp>平台管理员\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"node default\" id=\"flowchart-DEV-1\" transform=\"translate(596.6510429382324, 60)\">\u003Crect class=\"basic label-container\" style=\"\" x=\"-62\" y=\"-27\" width=\"124\" height=\"54\">\u003C\u002Frect>\u003Cg class=\"label\" style=\"\" transform=\"translate(-32, -12)\">\u003Crect>\u003C\u002Frect>\u003CforeignObject width=\"64\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"nodeLabel\">\u003Cp>开发人员\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"node default\" id=\"flowchart-AGENT-2\" transform=\"translate(1055.9687576293945, 60)\">\u003Crect class=\"basic label-container\" style=\"\" x=\"-120.71875\" y=\"-27\" width=\"241.4375\" height=\"54\">\u003C\u002Frect>\u003Cg class=\"label\" style=\"\" transform=\"translate(-90.71875, -12)\">\u003Crect>\u003C\u002Frect>\u003CforeignObject width=\"181.4375\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"nodeLabel\">\u003Cp>DeepSeek Harness Agents\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"node default\" id=\"flowchart-UI-3\" transform=\"translate(470.9375, 214)\">\u003Crect class=\"basic label-container\" style=\"\" x=\"-89.52083587646484\" y=\"-27\" width=\"179.0416717529297\" height=\"54\">\u003C\u002Frect>\u003Cg class=\"label\" style=\"\" transform=\"translate(-59.520835876464844, -12)\">\u003Crect>\u003C\u002Frect>\u003CforeignObject width=\"119.04167175292969\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"nodeLabel\">\u003Cp>Vue3 管理工作台\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"node default\" id=\"flowchart-IAM-4\" transform=\"translate(171.96875, 459)\">\u003Crect class=\"basic label-container\" style=\"\" x=\"-128.96875\" y=\"-27\" width=\"257.9375\" height=\"54\">\u003C\u002Frect>\u003Cg class=\"label\" style=\"\" transform=\"translate(-98.96875, -12)\">\u003Crect>\u003C\u002Frect>\u003CforeignObject width=\"197.9375\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"nodeLabel\">\u003Cp>企业 IAM \u002F Tenant \u002F Project\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"node default\" id=\"flowchart-ADMINAPI-5\" transform=\"translate(470.9375, 318)\">\u003Crect class=\"basic label-container\" style=\"\" x=\"-96.46875\" y=\"-27\" width=\"192.9375\" height=\"54\">\u003C\u002Frect>\u003Cg class=\"label\" style=\"\" transform=\"translate(-66.46875, -12)\">\u003Crect>\u003C\u002Frect>\u003CforeignObject width=\"132.9375\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"nodeLabel\">\u003Cp>LLM Admin Service\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"node default\" id=\"flowchart-BIZ-6\" transform=\"translate(480.9375, 459)\">\u003Crect class=\"basic label-container\" style=\"\" x=\"-130\" y=\"-39\" width=\"260\" height=\"78\">\u003C\u002Frect>\u003Cg class=\"label\" style=\"\" transform=\"translate(-100, -24)\">\u003Crect>\u003C\u002Frect>\u003CforeignObject width=\"200\" height=\"48\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table; white-space: break-spaces; line-height: 1.5; max-width: 200px; text-align: center; width: 200px;\">\u003Cspan class=\"nodeLabel\">\u003Cp>Agent \u002F 项目 \u002F 预算业务映射\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"node default\" id=\"flowchart-MGMT-7\" transform=\"translate(842.5885467529297, 459)\">\u003Crect class=\"basic label-container\" style=\"\" x=\"-88.75521087646484\" y=\"-27\" width=\"177.5104217529297\" height=\"54\">\u003C\u002Frect>\u003Cg class=\"label\" style=\"\" transform=\"translate(-58.755210876464844, -12)\">\u003Crect>\u003C\u002Frect>\u003CforeignObject width=\"117.51042175292969\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"nodeLabel\">\u003Cp>Management API\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"node default\" id=\"flowchart-DP-8\" transform=\"translate(1055.9687576293945, 459)\">\u003Crect class=\"basic label-container\" style=\"\" x=\"-74.625\" y=\"-27\" width=\"149.25\" height=\"54\">\u003C\u002Frect>\u003Cg class=\"label\" style=\"\" transform=\"translate(-44.625, -12)\">\u003Crect>\u003C\u002Frect>\u003CforeignObject width=\"89.25\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"nodeLabel\">\u003Cp>Gateway API\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"node default\" id=\"flowchart-ROUTER-9\" transform=\"translate(1065.9687576293945, 638.6161041259766)\">\u003Crect class=\"basic label-container\" style=\"\" x=\"-125.96354675292969\" y=\"-27\" width=\"251.92709350585938\" height=\"54\">\u003C\u002Frect>\u003Cg class=\"label\" style=\"\" transform=\"translate(-95.96354675292969, -12)\">\u003Crect>\u003C\u002Frect>\u003CforeignObject width=\"191.92709350585938\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"nodeLabel\">\u003Cp>Router \u002F Provider Adapters\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"node default\" id=\"flowchart-LDB-10\" transform=\"translate(273.24478912353516, 638.6161041259766)\">\u003Cpath d=\"M0,13.810562828689717 a77.140625,13.810562828689717 0,0,0 154.28125,0 a77.140625,13.810562828689717 0,0,0 -154.28125,0 l0,52.81056282868972 a77.140625,13.810562828689717 0,0,0 154.28125,0 l0,-52.81056282868972\" class=\"basic label-container\" style=\"\" transform=\"translate(-77.140625, -40.215844243034574)\">\u003C\u002Fpath>\u003Cg class=\"label\" style=\"\" transform=\"translate(-69.640625, -2)\">\u003Crect>\u003C\u002Frect>\u003CforeignObject width=\"139.28125\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"nodeLabel\">\u003Cp>LiteLLM PostgreSQL\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"node default\" id=\"flowchart-ADB-11\" transform=\"translate(480.9375, 638.6161041259766)\">\u003Cpath d=\"M0,14.07740498555663 a80.55208587646484,14.07740498555663 0,0,0 161.1041717529297,0 a80.55208587646484,14.07740498555663 0,0,0 -161.1041717529297,0 l0,53.077404985556626 a80.55208587646484,14.07740498555663 0,0,0 161.1041717529297,0 l0,-53.077404985556626\" class=\"basic label-container\" style=\"\" transform=\"translate(-80.55208587646484, -40.61610747833494)\">\u003C\u002Fpath>\u003Cg class=\"label\" style=\"\" transform=\"translate(-73.05208587646484, -2)\">\u003Crect>\u003C\u002Frect>\u003CforeignObject width=\"146.1041717529297\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"nodeLabel\">\u003Cp>SEABRID Business DB\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"node default\" id=\"flowchart-CACHE-12\" transform=\"translate(637.6614608764648, 638.6161041259766)\">\u003Cpath d=\"M0,7.378854625550661 a26.171875,7.378854625550661 0,0,0 52.34375,0 a26.171875,7.378854625550661 0,0,0 -52.34375,0 l0,46.37885462555066 a26.171875,7.378854625550661 0,0,0 52.34375,0 l0,-46.37885462555066\" class=\"basic label-container\" style=\"\" transform=\"translate(-26.171875, -30.56828193832599)\">\u003C\u002Fpath>\u003Cg class=\"label\" style=\"\" transform=\"translate(-18.671875, -2)\">\u003Crect>\u003C\u002Frect>\u003CforeignObject width=\"37.34375\" height=\"24\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\">\u003Cspan class=\"nodeLabel\">\u003Cp>Redis\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"node default\" id=\"flowchart-MODELS-13\" transform=\"translate(1065.9687576293945, 793.2322082519531)\">\u003Crect class=\"basic label-container\" style=\"\" x=\"-130\" y=\"-39\" width=\"260\" height=\"78\">\u003C\u002Frect>\u003Cg class=\"label\" style=\"\" transform=\"translate(-100, -24)\">\u003Crect>\u003C\u002Frect>\u003CforeignObject width=\"200\" height=\"48\">\u003Cdiv xmlns=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxhtml\" style=\"display: table; white-space: break-spaces; line-height: 1.5; max-width: 200px; text-align: center; width: 200px;\">\u003Cspan class=\"nodeLabel\">\u003Cp>DeepSeek \u002F OpenAI \u002F Claude \u002F Gemini \u002F Local\u003C\u002Fp>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002FforeignObject>\u003C\u002Fg>\u003C\u002Fg>\u003C\u002Fg>\u003C\u002Fg>\u003C\u002Fg>\u003C\u002Fsvg>\u003Cdiv class=\"md-editor-mermaid-action\">\u003Cspan class=\"md-editor-mermaid-copy\">\u003Csvg xmlns=\"http:\u002F\u002Fwww.w3.org\u002F2000\u002Fsvg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"lucide lucide-copy md-editor-icon\">\u003Crect width=\"14\" height=\"14\" x=\"8\" y=\"8\" rx=\"2\" ry=\"2\">\u003C\u002Frect>\u003Cpath d=\"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2\">\u003C\u002Fpath>\u003C\u002Fsvg>\u003C\u002Fspan>\u003Cspan class=\"md-editor-mermaid-zoom\">\u003Csvg xmlns=\"http:\u002F\u002Fwww.w3.org\u002F2000\u002Fsvg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"lucide lucide-pin-off md-editor-icon\">\u003Cpath d=\"M12 17v5\">\u003C\u002Fpath>\u003Cpath d=\"M15 9.34V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H7.89\">\u003C\u002Fpath>\u003Cpath d=\"m2 2 20 20\">\u003C\u002Fpath>\u003Cpath d=\"M9 9v1.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h11\">\u003C\u002Fpath>\u003C\u002Fsvg>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002Fp>\u003Ch3 data-line=\"1106\" id=\"16.3 Agent Key 生命周期\">16.3 Agent Key 生命周期\u003C\u002Fh3>\n\u003Cp class=\"md-editor-mermaid\" data-processed=\"\" data-content=\"sequenceDiagram\n    participant OS as SEABRID OS\n    participant IAM as SEABRID IAM\n    participant ADMIN as LLM Admin Service\n    participant LLM as LiteLLM Management API\n    participant DB as SEABRID Business DB\n    participant AGENT as SEABRID Agent\n\n    OS-&gt;&gt;IAM: 校验用户 \u002F 项目权限\n    OS-&gt;&gt;ADMIN: 申请 Agent 模型访问凭证\n    ADMIN-&gt;&gt;LLM: 创建 Virtual Key \u002F 限定模型和预算\n    LLM--&gt;&gt;ADMIN: 返回 Key 和 Key ID\n    ADMIN-&gt;&gt;DB: 保存 Key ID、所属 Agent、项目和状态\n    ADMIN--&gt;&gt;OS: 返回受控凭证\n    OS-&gt;&gt;AGENT: 安全注入 Virtual Key + Gateway URL\n    AGENT-&gt;&gt;LLM: 模型调用\n    LLM--&gt;&gt;AGENT: 统一模型响应\n    OS-&gt;&gt;ADMIN: Agent 停用 \u002F 项目关闭\n    ADMIN-&gt;&gt;LLM: 删除或禁用 Virtual Key\n    ADMIN-&gt;&gt;DB: 更新凭证状态\" data-line=\"1108\">\u003Csvg id=\"mx9uoqmhcydfayzoh95\" width=\"100%\" xmlns=\"http:\u002F\u002Fwww.w3.org\u002F2000\u002Fsvg\" xmlns:xlink=\"http:\u002F\u002Fwww.w3.org\u002F1999\u002Fxlink\" style=\"max-width: 1458px;\" viewBox=\"-50 -10 1458 795\" role=\"graphics-document document\" aria-roledescription=\"sequence\">\u003Cg>\u003Crect x=\"1208\" y=\"709\" fill=\"#eaeaea\" stroke=\"#666\" width=\"150\" height=\"65\" name=\"AGENT\" rx=\"3\" ry=\"3\" class=\"actor actor-bottom\">\u003C\u002Frect>\u003Ctext x=\"1283\" y=\"741.5\" dominant-baseline=\"central\" alignment-baseline=\"central\" class=\"actor actor-box\" style=\"text-anchor: middle; font-size: 16px; font-weight: 400;\">\u003Ctspan x=\"1283\" dy=\"0\">SEABRID Agent\u003C\u002Ftspan>\u003C\u002Ftext>\u003C\u002Fg>\u003Cg>\u003Crect x=\"974\" y=\"709\" fill=\"#eaeaea\" stroke=\"#666\" width=\"184\" height=\"65\" name=\"DB\" rx=\"3\" ry=\"3\" class=\"actor actor-bottom\">\u003C\u002Frect>\u003Ctext x=\"1066\" y=\"741.5\" dominant-baseline=\"central\" alignment-baseline=\"central\" class=\"actor actor-box\" style=\"text-anchor: middle; font-size: 16px; font-weight: 400;\">\u003Ctspan x=\"1066\" dy=\"0\">SEABRID Business DB\u003C\u002Ftspan>\u003C\u002Ftext>\u003C\u002Fg>\u003Cg>\u003Crect x=\"707\" y=\"709\" fill=\"#eaeaea\" stroke=\"#666\" width=\"217\" height=\"65\" name=\"LLM\" rx=\"3\" ry=\"3\" class=\"actor actor-bottom\">\u003C\u002Frect>\u003Ctext x=\"815.5\" y=\"741.5\" dominant-baseline=\"central\" alignment-baseline=\"central\" class=\"actor actor-box\" style=\"text-anchor: middle; font-size: 16px; font-weight: 400;\">\u003Ctspan x=\"815.5\" dy=\"0\">LiteLLM Management API\u003C\u002Ftspan>\u003C\u002Ftext>\u003C\u002Fg>\u003Cg>\u003Crect x=\"414\" y=\"709\" fill=\"#eaeaea\" stroke=\"#666\" width=\"167\" height=\"65\" name=\"ADMIN\" rx=\"3\" ry=\"3\" class=\"actor actor-bottom\">\u003C\u002Frect>\u003Ctext x=\"497.5\" y=\"741.5\" dominant-baseline=\"central\" alignment-baseline=\"central\" class=\"actor actor-box\" style=\"text-anchor: middle; font-size: 16px; font-weight: 400;\">\u003Ctspan x=\"497.5\" dy=\"0\">LLM Admin Service\u003C\u002Ftspan>\u003C\u002Ftext>\u003C\u002Fg>\u003Cg>\u003Crect x=\"214\" y=\"709\" fill=\"#eaeaea\" stroke=\"#666\" width=\"150\" height=\"65\" name=\"IAM\" rx=\"3\" ry=\"3\" class=\"actor actor-bottom\">\u003C\u002Frect>\u003Ctext x=\"289\" y=\"741.5\" dominant-baseline=\"central\" alignment-baseline=\"central\" class=\"actor actor-box\" style=\"text-anchor: middle; font-size: 16px; font-weight: 400;\">\u003Ctspan x=\"289\" dy=\"0\">SEABRID IAM\u003C\u002Ftspan>\u003C\u002Ftext>\u003C\u002Fg>\u003Cg>\u003Crect x=\"0\" y=\"709\" fill=\"#eaeaea\" stroke=\"#666\" width=\"150\" height=\"65\" name=\"OS\" rx=\"3\" ry=\"3\" class=\"actor actor-bottom\">\u003C\u002Frect>\u003Ctext x=\"75\" y=\"741.5\" dominant-baseline=\"central\" alignment-baseline=\"central\" class=\"actor actor-box\" style=\"text-anchor: middle; font-size: 16px; font-weight: 400;\">\u003Ctspan x=\"75\" dy=\"0\">SEABRID OS\u003C\u002Ftspan>\u003C\u002Ftext>\u003C\u002Fg>\u003Cg>\u003Cline id=\"actor73\" x1=\"1283\" y1=\"65\" x2=\"1283\" y2=\"709\" class=\"actor-line 200\" stroke-width=\"0.5px\" stroke=\"#999\" name=\"AGENT\">\u003C\u002Fline>\u003Cg id=\"root-73\">\u003Crect x=\"1208\" y=\"0\" fill=\"#eaeaea\" stroke=\"#666\" width=\"150\" height=\"65\" name=\"AGENT\" rx=\"3\" ry=\"3\" class=\"actor actor-top\">\u003C\u002Frect>\u003Ctext x=\"1283\" y=\"32.5\" dominant-baseline=\"central\" alignment-baseline=\"central\" class=\"actor actor-box\" style=\"text-anchor: middle; font-size: 16px; font-weight: 400;\">\u003Ctspan x=\"1283\" dy=\"0\">SEABRID Agent\u003C\u002Ftspan>\u003C\u002Ftext>\u003C\u002Fg>\u003C\u002Fg>\u003Cg>\u003Cline id=\"actor72\" x1=\"1066\" y1=\"65\" x2=\"1066\" y2=\"709\" class=\"actor-line 200\" stroke-width=\"0.5px\" stroke=\"#999\" name=\"DB\">\u003C\u002Fline>\u003Cg id=\"root-72\">\u003Crect x=\"974\" y=\"0\" fill=\"#eaeaea\" stroke=\"#666\" width=\"184\" height=\"65\" name=\"DB\" rx=\"3\" ry=\"3\" class=\"actor actor-top\">\u003C\u002Frect>\u003Ctext x=\"1066\" y=\"32.5\" dominant-baseline=\"central\" alignment-baseline=\"central\" class=\"actor actor-box\" style=\"text-anchor: middle; font-size: 16px; font-weight: 400;\">\u003Ctspan x=\"1066\" dy=\"0\">SEABRID Business DB\u003C\u002Ftspan>\u003C\u002Ftext>\u003C\u002Fg>\u003C\u002Fg>\u003Cg>\u003Cline id=\"actor71\" x1=\"815.5\" y1=\"65\" x2=\"815.5\" y2=\"709\" class=\"actor-line 200\" stroke-width=\"0.5px\" stroke=\"#999\" name=\"LLM\">\u003C\u002Fline>\u003Cg id=\"root-71\">\u003Crect x=\"707\" y=\"0\" fill=\"#eaeaea\" stroke=\"#666\" width=\"217\" height=\"65\" name=\"LLM\" rx=\"3\" ry=\"3\" class=\"actor actor-top\">\u003C\u002Frect>\u003Ctext x=\"815.5\" y=\"32.5\" dominant-baseline=\"central\" alignment-baseline=\"central\" class=\"actor actor-box\" style=\"text-anchor: middle; font-size: 16px; font-weight: 400;\">\u003Ctspan x=\"815.5\" dy=\"0\">LiteLLM Management API\u003C\u002Ftspan>\u003C\u002Ftext>\u003C\u002Fg>\u003C\u002Fg>\u003Cg>\u003Cline id=\"actor70\" x1=\"497.5\" y1=\"65\" x2=\"497.5\" y2=\"709\" class=\"actor-line 200\" stroke-width=\"0.5px\" stroke=\"#999\" name=\"ADMIN\">\u003C\u002Fline>\u003Cg id=\"root-70\">\u003Crect x=\"414\" y=\"0\" fill=\"#eaeaea\" stroke=\"#666\" width=\"167\" height=\"65\" name=\"ADMIN\" rx=\"3\" ry=\"3\" class=\"actor actor-top\">\u003C\u002Frect>\u003Ctext x=\"497.5\" y=\"32.5\" dominant-baseline=\"central\" alignment-baseline=\"central\" class=\"actor actor-box\" style=\"text-anchor: middle; font-size: 16px; font-weight: 400;\">\u003Ctspan x=\"497.5\" dy=\"0\">LLM Admin Service\u003C\u002Ftspan>\u003C\u002Ftext>\u003C\u002Fg>\u003C\u002Fg>\u003Cg>\u003Cline id=\"actor69\" x1=\"289\" y1=\"65\" x2=\"289\" y2=\"709\" class=\"actor-line 200\" stroke-width=\"0.5px\" stroke=\"#999\" name=\"IAM\">\u003C\u002Fline>\u003Cg id=\"root-69\">\u003Crect x=\"214\" y=\"0\" fill=\"#eaeaea\" stroke=\"#666\" width=\"150\" height=\"65\" name=\"IAM\" rx=\"3\" ry=\"3\" class=\"actor actor-top\">\u003C\u002Frect>\u003Ctext x=\"289\" y=\"32.5\" dominant-baseline=\"central\" alignment-baseline=\"central\" class=\"actor actor-box\" style=\"text-anchor: middle; font-size: 16px; font-weight: 400;\">\u003Ctspan x=\"289\" dy=\"0\">SEABRID IAM\u003C\u002Ftspan>\u003C\u002Ftext>\u003C\u002Fg>\u003C\u002Fg>\u003Cg>\u003Cline id=\"actor68\" x1=\"75\" y1=\"65\" x2=\"75\" y2=\"709\" class=\"actor-line 200\" stroke-width=\"0.5px\" stroke=\"#999\" name=\"OS\">\u003C\u002Fline>\u003Cg id=\"root-68\">\u003Crect x=\"0\" y=\"0\" fill=\"#eaeaea\" stroke=\"#666\" width=\"150\" height=\"65\" name=\"OS\" rx=\"3\" ry=\"3\" class=\"actor actor-top\">\u003C\u002Frect>\u003Ctext x=\"75\" y=\"32.5\" dominant-baseline=\"central\" alignment-baseline=\"central\" class=\"actor actor-box\" style=\"text-anchor: middle; font-size: 16px; font-weight: 400;\">\u003Ctspan x=\"75\" dy=\"0\">SEABRID OS\u003C\u002Ftspan>\u003C\u002Ftext>\u003C\u002Fg>\u003C\u002Fg>\u003Cstyle>#mx9uoqmhcydfayzoh95{font-family:\"trebuchet ms\",verdana,arial,sans-serif;font-size:16px;fill:#333;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#mx9uoqmhcydfayzoh95 .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#mx9uoqmhcydfayzoh95 .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#mx9uoqmhcydfayzoh95 .error-icon{fill:#552222;}#mx9uoqmhcydfayzoh95 .error-text{fill:#552222;stroke:#552222;}#mx9uoqmhcydfayzoh95 .edge-thickness-normal{stroke-width:1px;}#mx9uoqmhcydfayzoh95 .edge-thickness-thick{stroke-width:3.5px;}#mx9uoqmhcydfayzoh95 .edge-pattern-solid{stroke-dasharray:0;}#mx9uoqmhcydfayzoh95 .edge-thickness-invisible{stroke-width:0;fill:none;}#mx9uoqmhcydfayzoh95 .edge-pattern-dashed{stroke-dasharray:3;}#mx9uoqmhcydfayzoh95 .edge-pattern-dotted{stroke-dasharray:2;}#mx9uoqmhcydfayzoh95 .marker{fill:#333333;stroke:#333333;}#mx9uoqmhcydfayzoh95 .marker.cross{stroke:#333333;}#mx9uoqmhcydfayzoh95 svg{font-family:\"trebuchet ms\",verdana,arial,sans-serif;font-size:16px;}#mx9uoqmhcydfayzoh95 p{margin:0;}#mx9uoqmhcydfayzoh95 .actor{stroke:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);fill:#ECECFF;}#mx9uoqmhcydfayzoh95 text.actor&gt;tspan{fill:black;stroke:none;}#mx9uoqmhcydfayzoh95 .actor-line{stroke:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);}#mx9uoqmhcydfayzoh95 .innerArc{stroke-width:1.5;stroke-dasharray:none;}#mx9uoqmhcydfayzoh95 .messageLine0{stroke-width:1.5;stroke-dasharray:none;stroke:#333;}#mx9uoqmhcydfayzoh95 .messageLine1{stroke-width:1.5;stroke-dasharray:2,2;stroke:#333;}#mx9uoqmhcydfayzoh95 #arrowhead path{fill:#333;stroke:#333;}#mx9uoqmhcydfayzoh95 .sequenceNumber{fill:white;}#mx9uoqmhcydfayzoh95 #sequencenumber{fill:#333;}#mx9uoqmhcydfayzoh95 #crosshead path{fill:#333;stroke:#333;}#mx9uoqmhcydfayzoh95 .messageText{fill:#333;stroke:none;}#mx9uoqmhcydfayzoh95 .labelBox{stroke:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);fill:#ECECFF;}#mx9uoqmhcydfayzoh95 .labelText,#mx9uoqmhcydfayzoh95 .labelText&gt;tspan{fill:black;stroke:none;}#mx9uoqmhcydfayzoh95 .loopText,#mx9uoqmhcydfayzoh95 .loopText&gt;tspan{fill:black;stroke:none;}#mx9uoqmhcydfayzoh95 .loopLine{stroke-width:2px;stroke-dasharray:2,2;stroke:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);fill:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);}#mx9uoqmhcydfayzoh95 .note{stroke:#aaaa33;fill:#fff5ad;}#mx9uoqmhcydfayzoh95 .noteText,#mx9uoqmhcydfayzoh95 .noteText&gt;tspan{fill:black;stroke:none;}#mx9uoqmhcydfayzoh95 .activation0{fill:#f4f4f4;stroke:#666;}#mx9uoqmhcydfayzoh95 .activation1{fill:#f4f4f4;stroke:#666;}#mx9uoqmhcydfayzoh95 .activation2{fill:#f4f4f4;stroke:#666;}#mx9uoqmhcydfayzoh95 .actorPopupMenu{position:absolute;}#mx9uoqmhcydfayzoh95 .actorPopupMenuPanel{position:absolute;fill:#ECECFF;box-shadow:0px 8px 16px 0px rgba(0,0,0,0.2);filter:drop-shadow(3px 5px 2px rgb(0 0 0 \u002F 0.4));}#mx9uoqmhcydfayzoh95 .actor-man line{stroke:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);fill:#ECECFF;}#mx9uoqmhcydfayzoh95 .actor-man circle,#mx9uoqmhcydfayzoh95 line{stroke:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);fill:#ECECFF;stroke-width:2px;}#mx9uoqmhcydfayzoh95 :root{--mermaid-font-family:\"trebuchet ms\",verdana,arial,sans-serif;}\u003C\u002Fstyle>\u003Cg>\u003C\u002Fg>\u003Cdefs>\u003Csymbol id=\"computer\" width=\"24\" height=\"24\">\u003Cpath transform=\"scale(.5)\" d=\"M2 2v13h20v-13h-20zm18 11h-16v-9h16v9zm-10.228 6l.466-1h3.524l.467 1h-4.457zm14.228 3h-24l2-6h2.104l-1.33 4h18.45l-1.297-4h2.073l2 6zm-5-10h-14v-7h14v7z\">\u003C\u002Fpath>\u003C\u002Fsymbol>\u003C\u002Fdefs>\u003Cdefs>\u003Csymbol id=\"database\" fill-rule=\"evenodd\" clip-rule=\"evenodd\">\u003Cpath transform=\"scale(.5)\" d=\"M12.258.001l.256.004.255.005.253.008.251.01.249.012.247.015.246.016.242.019.241.02.239.023.236.024.233.027.231.028.229.031.225.032.223.034.22.036.217.038.214.04.211.041.208.043.205.045.201.046.198.048.194.05.191.051.187.053.183.054.18.056.175.057.172.059.168.06.163.061.16.063.155.064.15.066.074.033.073.033.071.034.07.034.069.035.068.035.067.035.066.035.064.036.064.036.062.036.06.036.06.037.058.037.058.037.055.038.055.038.053.038.052.038.051.039.05.039.048.039.047.039.045.04.044.04.043.04.041.04.04.041.039.041.037.041.036.041.034.041.033.042.032.042.03.042.029.042.027.042.026.043.024.043.023.043.021.043.02.043.018.044.017.043.015.044.013.044.012.044.011.045.009.044.007.045.006.045.004.045.002.045.001.045v17l-.001.045-.002.045-.004.045-.006.045-.007.045-.009.044-.011.045-.012.044-.013.044-.015.044-.017.043-.018.044-.02.043-.021.043-.023.043-.024.043-.026.043-.027.042-.029.042-.03.042-.032.042-.033.042-.034.041-.036.041-.037.041-.039.041-.04.041-.041.04-.043.04-.044.04-.045.04-.047.039-.048.039-.05.039-.051.039-.052.038-.053.038-.055.038-.055.038-.058.037-.058.037-.06.037-.06.036-.062.036-.064.036-.064.036-.066.035-.067.035-.068.035-.069.035-.07.034-.071.034-.073.033-.074.033-.15.066-.155.064-.16.063-.163.061-.168.06-.172.059-.175.057-.18.056-.183.054-.187.053-.191.051-.194.05-.198.048-.201.046-.205.045-.208.043-.211.041-.214.04-.217.038-.22.036-.223.034-.225.032-.229.031-.231.028-.233.027-.236.024-.239.023-.241.02-.242.019-.246.016-.247.015-.249.012-.251.01-.253.008-.255.005-.256.004-.258.001-.258-.001-.256-.004-.255-.005-.253-.008-.251-.01-.249-.012-.247-.015-.245-.016-.243-.019-.241-.02-.238-.023-.236-.024-.234-.027-.231-.028-.228-.031-.226-.032-.223-.034-.22-.036-.217-.038-.214-.04-.211-.041-.208-.043-.204-.045-.201-.046-.198-.048-.195-.05-.19-.051-.187-.053-.184-.054-.179-.056-.176-.057-.172-.059-.167-.06-.164-.061-.159-.063-.155-.064-.151-.066-.074-.033-.072-.033-.072-.034-.07-.034-.069-.035-.068-.035-.067-.035-.066-.035-.064-.036-.063-.036-.062-.036-.061-.036-.06-.037-.058-.037-.057-.037-.056-.038-.055-.038-.053-.038-.052-.038-.051-.039-.049-.039-.049-.039-.046-.039-.046-.04-.044-.04-.043-.04-.041-.04-.04-.041-.039-.041-.037-.041-.036-.041-.034-.041-.033-.042-.032-.042-.03-.042-.029-.042-.027-.042-.026-.043-.024-.043-.023-.043-.021-.043-.02-.043-.018-.044-.017-.043-.015-.044-.013-.044-.012-.044-.011-.045-.009-.044-.007-.045-.006-.045-.004-.045-.002-.045-.001-.045v-17l.001-.045.002-.045.004-.045.006-.045.007-.045.009-.044.011-.045.012-.044.013-.044.015-.044.017-.043.018-.044.02-.043.021-.043.023-.043.024-.043.026-.043.027-.042.029-.042.03-.042.032-.042.033-.042.034-.041.036-.041.037-.041.039-.041.04-.041.041-.04.043-.04.044-.04.046-.04.046-.039.049-.039.049-.039.051-.039.052-.038.053-.038.055-.038.056-.038.057-.037.058-.037.06-.037.061-.036.062-.036.063-.036.064-.036.066-.035.067-.035.068-.035.069-.035.07-.034.072-.034.072-.033.074-.033.151-.066.155-.064.159-.063.164-.061.167-.06.172-.059.176-.057.179-.056.184-.054.187-.053.19-.051.195-.05.198-.048.201-.046.204-.045.208-.043.211-.041.214-.04.217-.038.22-.036.223-.034.226-.032.228-.031.231-.028.234-.027.236-.024.238-.023.241-.02.243-.019.245-.016.247-.015.249-.012.251-.01.253-.008.255-.005.256-.004.258-.001.258.001zm-9.258 20.499v.01l.001.021.003.021.004.022.005.021.006.022.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.023.018.024.019.024.021.024.022.025.023.024.024.025.052.049.056.05.061.051.066.051.07.051.075.051.079.052.084.052.088.052.092.052.097.052.102.051.105.052.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.048.144.049.147.047.152.047.155.047.16.045.163.045.167.043.171.043.176.041.178.041.183.039.187.039.19.037.194.035.197.035.202.033.204.031.209.03.212.029.216.027.219.025.222.024.226.021.23.02.233.018.236.016.24.015.243.012.246.01.249.008.253.005.256.004.259.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.021.224-.024.22-.026.216-.027.212-.028.21-.031.205-.031.202-.034.198-.034.194-.036.191-.037.187-.039.183-.04.179-.04.175-.042.172-.043.168-.044.163-.045.16-.046.155-.046.152-.047.148-.048.143-.049.139-.049.136-.05.131-.05.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.053.083-.051.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.05.023-.024.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.023.01-.022.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.127l-.077.055-.08.053-.083.054-.085.053-.087.052-.09.052-.093.051-.095.05-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.045-.118.044-.12.043-.122.042-.124.042-.126.041-.128.04-.13.04-.132.038-.134.038-.135.037-.138.037-.139.035-.142.035-.143.034-.144.033-.147.032-.148.031-.15.03-.151.03-.153.029-.154.027-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.01-.179.008-.179.008-.181.006-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.006-.179-.008-.179-.008-.178-.01-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.027-.153-.029-.151-.03-.15-.03-.148-.031-.146-.032-.145-.033-.143-.034-.141-.035-.14-.035-.137-.037-.136-.037-.134-.038-.132-.038-.13-.04-.128-.04-.126-.041-.124-.042-.122-.042-.12-.044-.117-.043-.116-.045-.113-.045-.112-.046-.109-.047-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.05-.093-.052-.09-.051-.087-.052-.085-.053-.083-.054-.08-.054-.077-.054v4.127zm0-5.654v.011l.001.021.003.021.004.021.005.022.006.022.007.022.009.022.01.022.011.023.012.023.013.023.015.024.016.023.017.024.018.024.019.024.021.024.022.024.023.025.024.024.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.052.11.051.114.051.119.052.123.05.127.051.131.05.135.049.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.044.171.042.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.022.23.02.233.018.236.016.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.012.241-.015.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.048.139-.05.136-.049.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.051.051-.049.023-.025.023-.024.021-.025.02-.024.019-.024.018-.024.017-.024.015-.023.014-.023.013-.024.012-.022.01-.023.01-.023.008-.022.006-.022.006-.022.004-.021.004-.022.001-.021.001-.021v-4.139l-.077.054-.08.054-.083.054-.085.052-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.044-.118.044-.12.044-.122.042-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.035-.143.033-.144.033-.147.033-.148.031-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.009-.179.009-.179.007-.181.007-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.007-.179-.007-.179-.009-.178-.009-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.031-.146-.033-.145-.033-.143-.033-.141-.035-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.04-.126-.041-.124-.042-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.051-.093-.051-.09-.051-.087-.053-.085-.052-.083-.054-.08-.054-.077-.054v4.139zm0-5.666v.011l.001.02.003.022.004.021.005.022.006.021.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.024.018.023.019.024.021.025.022.024.023.024.024.025.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.051.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.043.171.043.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.021.23.02.233.018.236.017.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.013.241-.014.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.049.139-.049.136-.049.131-.051.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.049.023-.025.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.022.01-.023.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.153l-.077.054-.08.054-.083.053-.085.053-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.048-.105.048-.106.048-.109.046-.111.046-.114.046-.115.044-.118.044-.12.043-.122.043-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.034-.143.034-.144.033-.147.032-.148.032-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.024-.161.024-.162.023-.163.023-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.01-.178.01-.179.009-.179.007-.181.006-.182.006-.182.004-.184.003-.184.001-.185.001-.185-.001-.184-.001-.184-.003-.182-.004-.182-.006-.181-.006-.179-.007-.179-.009-.178-.01-.176-.01-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.023-.162-.023-.161-.024-.159-.024-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.032-.146-.032-.145-.033-.143-.034-.141-.034-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.041-.126-.041-.124-.041-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.048-.105-.048-.102-.048-.1-.05-.097-.049-.095-.051-.093-.051-.09-.052-.087-.052-.085-.053-.083-.053-.08-.054-.077-.054v4.153zm8.74-8.179l-.257.004-.254.005-.25.008-.247.011-.244.012-.241.014-.237.016-.233.018-.231.021-.226.022-.224.023-.22.026-.216.027-.212.028-.21.031-.205.032-.202.033-.198.034-.194.036-.191.038-.187.038-.183.04-.179.041-.175.042-.172.043-.168.043-.163.045-.16.046-.155.046-.152.048-.148.048-.143.048-.139.049-.136.05-.131.05-.126.051-.123.051-.118.051-.114.052-.11.052-.106.052-.101.052-.096.052-.092.052-.088.052-.083.052-.079.052-.074.051-.07.052-.065.051-.06.05-.056.05-.051.05-.023.025-.023.024-.021.024-.02.025-.019.024-.018.024-.017.023-.015.024-.014.023-.013.023-.012.023-.01.023-.01.022-.008.022-.006.023-.006.021-.004.022-.004.021-.001.021-.001.021.001.021.001.021.004.021.004.022.006.021.006.023.008.022.01.022.01.023.012.023.013.023.014.023.015.024.017.023.018.024.019.024.02.025.021.024.023.024.023.025.051.05.056.05.06.05.065.051.07.052.074.051.079.052.083.052.088.052.092.052.096.052.101.052.106.052.11.052.114.052.118.051.123.051.126.051.131.05.136.05.139.049.143.048.148.048.152.048.155.046.16.046.163.045.168.043.172.043.175.042.179.041.183.04.187.038.191.038.194.036.198.034.202.033.205.032.21.031.212.028.216.027.22.026.224.023.226.022.231.021.233.018.237.016.241.014.244.012.247.011.25.008.254.005.257.004.26.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.022.224-.023.22-.026.216-.027.212-.028.21-.031.205-.032.202-.033.198-.034.194-.036.191-.038.187-.038.183-.04.179-.041.175-.042.172-.043.168-.043.163-.045.16-.046.155-.046.152-.048.148-.048.143-.048.139-.049.136-.05.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.05.051-.05.023-.025.023-.024.021-.024.02-.025.019-.024.018-.024.017-.023.015-.024.014-.023.013-.023.012-.023.01-.023.01-.022.008-.022.006-.023.006-.021.004-.022.004-.021.001-.021.001-.021-.001-.021-.001-.021-.004-.021-.004-.022-.006-.021-.006-.023-.008-.022-.01-.022-.01-.023-.012-.023-.013-.023-.014-.023-.015-.024-.017-.023-.018-.024-.019-.024-.02-.025-.021-.024-.023-.024-.023-.025-.051-.05-.056-.05-.06-.05-.065-.051-.07-.052-.074-.051-.079-.052-.083-.052-.088-.052-.092-.052-.096-.052-.101-.052-.106-.052-.11-.052-.114-.052-.118-.051-.123-.051-.126-.051-.131-.05-.136-.05-.139-.049-.143-.048-.148-.048-.152-.048-.155-.046-.16-.046-.163-.045-.168-.043-.172-.043-.175-.042-.179-.041-.183-.04-.187-.038-.191-.038-.194-.036-.198-.034-.202-.033-.205-.032-.21-.031-.212-.028-.216-.027-.22-.026-.224-.023-.226-.022-.231-.021-.233-.018-.237-.016-.241-.014-.244-.012-.247-.011-.25-.008-.254-.005-.257-.004-.26-.001-.26.001z\">\u003C\u002Fpath>\u003C\u002Fsymbol>\u003C\u002Fdefs>\u003Cdefs>\u003Csymbol id=\"clock\" width=\"24\" height=\"24\">\u003Cpath transform=\"scale(.5)\" d=\"M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm5.848 12.459c.202.038.202.333.001.372-1.907.361-6.045 1.111-6.547 1.111-.719 0-1.301-.582-1.301-1.301 0-.512.77-5.447 1.125-7.445.034-.192.312-.181.343.014l.985 6.238 5.394 1.011z\">\u003C\u002Fpath>\u003C\u002Fsymbol>\u003C\u002Fdefs>\u003Cdefs>\u003Cmarker id=\"arrowhead\" refX=\"7.9\" refY=\"5\" markerUnits=\"userSpaceOnUse\" markerWidth=\"12\" markerHeight=\"12\" orient=\"auto-start-reverse\">\u003Cpath d=\"M -1 0 L 10 5 L 0 10 z\">\u003C\u002Fpath>\u003C\u002Fmarker>\u003C\u002Fdefs>\u003Cdefs>\u003Cmarker id=\"crosshead\" markerWidth=\"15\" markerHeight=\"8\" orient=\"auto\" refX=\"4\" refY=\"4.5\">\u003Cpath fill=\"none\" stroke=\"#000000\" stroke-width=\"1pt\" d=\"M 1,2 L 6,7 M 6,2 L 1,7\" style=\"stroke-dasharray: 0, 0;\">\u003C\u002Fpath>\u003C\u002Fmarker>\u003C\u002Fdefs>\u003Cdefs>\u003Cmarker id=\"filled-head\" refX=\"15.5\" refY=\"7\" markerWidth=\"20\" markerHeight=\"28\" orient=\"auto\">\u003Cpath d=\"M 18,7 L9,13 L14,7 L9,1 Z\">\u003C\u002Fpath>\u003C\u002Fmarker>\u003C\u002Fdefs>\u003Cdefs>\u003Cmarker id=\"sequencenumber\" refX=\"15\" refY=\"15\" markerWidth=\"60\" markerHeight=\"40\" orient=\"auto\">\u003Ccircle cx=\"15\" cy=\"15\" r=\"6\">\u003C\u002Fcircle>\u003C\u002Fmarker>\u003C\u002Fdefs>\u003Ctext x=\"181\" y=\"80\" text-anchor=\"middle\" dominant-baseline=\"middle\" alignment-baseline=\"middle\" class=\"messageText\" dy=\"1em\" style=\"font-size: 16px; font-weight: 400;\">校验用户 \u002F 项目权限\u003C\u002Ftext>\u003Cline x1=\"76\" y1=\"117\" x2=\"285\" y2=\"117\" class=\"messageLine0\" stroke-width=\"2\" stroke=\"none\" marker-end=\"url(#arrowhead)\" style=\"fill: none;\">\u003C\u002Fline>\u003Ctext x=\"285\" y=\"132\" text-anchor=\"middle\" dominant-baseline=\"middle\" alignment-baseline=\"middle\" class=\"messageText\" dy=\"1em\" style=\"font-size: 16px; font-weight: 400;\">申请 Agent 模型访问凭证\u003C\u002Ftext>\u003Cline x1=\"76\" y1=\"169\" x2=\"493.5\" y2=\"169\" class=\"messageLine0\" stroke-width=\"2\" stroke=\"none\" marker-end=\"url(#arrowhead)\" style=\"fill: none;\">\u003C\u002Fline>\u003Ctext x=\"655\" y=\"184\" text-anchor=\"middle\" dominant-baseline=\"middle\" alignment-baseline=\"middle\" class=\"messageText\" dy=\"1em\" style=\"font-size: 16px; font-weight: 400;\">创建 Virtual Key \u002F 限定模型和预算\u003C\u002Ftext>\u003Cline x1=\"498.5\" y1=\"221\" x2=\"811.5\" y2=\"221\" class=\"messageLine0\" stroke-width=\"2\" stroke=\"none\" marker-end=\"url(#arrowhead)\" style=\"fill: none;\">\u003C\u002Fline>\u003Ctext x=\"658\" y=\"236\" text-anchor=\"middle\" dominant-baseline=\"middle\" alignment-baseline=\"middle\" class=\"messageText\" dy=\"1em\" style=\"font-size: 16px; font-weight: 400;\">返回 Key 和 Key ID\u003C\u002Ftext>\u003Cline x1=\"814.5\" y1=\"273\" x2=\"501.5\" y2=\"273\" class=\"messageLine1\" stroke-width=\"2\" stroke=\"none\" marker-end=\"url(#arrowhead)\" style=\"stroke-dasharray: 3, 3; fill: none;\">\u003C\u002Fline>\u003Ctext x=\"780\" y=\"288\" text-anchor=\"middle\" dominant-baseline=\"middle\" alignment-baseline=\"middle\" class=\"messageText\" dy=\"1em\" style=\"font-size: 16px; font-weight: 400;\">保存 Key ID、所属 Agent、项目和状态\u003C\u002Ftext>\u003Cline x1=\"498.5\" y1=\"325\" x2=\"1062\" y2=\"325\" class=\"messageLine0\" stroke-width=\"2\" stroke=\"none\" marker-end=\"url(#arrowhead)\" style=\"fill: none;\">\u003C\u002Fline>\u003Ctext x=\"288\" y=\"340\" text-anchor=\"middle\" dominant-baseline=\"middle\" alignment-baseline=\"middle\" class=\"messageText\" dy=\"1em\" style=\"font-size: 16px; font-weight: 400;\">返回受控凭证\u003C\u002Ftext>\u003Cline x1=\"496.5\" y1=\"377\" x2=\"79\" y2=\"377\" class=\"messageLine1\" stroke-width=\"2\" stroke=\"none\" marker-end=\"url(#arrowhead)\" style=\"stroke-dasharray: 3, 3; fill: none;\">\u003C\u002Fline>\u003Ctext x=\"678\" y=\"392\" text-anchor=\"middle\" dominant-baseline=\"middle\" alignment-baseline=\"middle\" class=\"messageText\" dy=\"1em\" style=\"font-size: 16px; font-weight: 400;\">安全注入 Virtual Key + Gateway URL\u003C\u002Ftext>\u003Cline x1=\"76\" y1=\"429\" x2=\"1279\" y2=\"429\" class=\"messageLine0\" stroke-width=\"2\" stroke=\"none\" marker-end=\"url(#arrowhead)\" style=\"fill: none;\">\u003C\u002Fline>\u003Ctext x=\"1051\" y=\"444\" text-anchor=\"middle\" dominant-baseline=\"middle\" alignment-baseline=\"middle\" class=\"messageText\" dy=\"1em\" style=\"font-size: 16px; font-weight: 400;\">模型调用\u003C\u002Ftext>\u003Cline x1=\"1282\" y1=\"481\" x2=\"819.5\" y2=\"481\" class=\"messageLine0\" stroke-width=\"2\" stroke=\"none\" marker-end=\"url(#arrowhead)\" style=\"fill: none;\">\u003C\u002Fline>\u003Ctext x=\"1048\" y=\"496\" text-anchor=\"middle\" dominant-baseline=\"middle\" alignment-baseline=\"middle\" class=\"messageText\" dy=\"1em\" style=\"font-size: 16px; font-weight: 400;\">统一模型响应\u003C\u002Ftext>\u003Cline x1=\"816.5\" y1=\"533\" x2=\"1279\" y2=\"533\" class=\"messageLine1\" stroke-width=\"2\" stroke=\"none\" marker-end=\"url(#arrowhead)\" style=\"stroke-dasharray: 3, 3; fill: none;\">\u003C\u002Fline>\u003Ctext x=\"285\" y=\"548\" text-anchor=\"middle\" dominant-baseline=\"middle\" alignment-baseline=\"middle\" class=\"messageText\" dy=\"1em\" style=\"font-size: 16px; font-weight: 400;\">Agent 停用 \u002F 项目关闭\u003C\u002Ftext>\u003Cline x1=\"76\" y1=\"585\" x2=\"493.5\" y2=\"585\" class=\"messageLine0\" stroke-width=\"2\" stroke=\"none\" marker-end=\"url(#arrowhead)\" style=\"fill: none;\">\u003C\u002Fline>\u003Ctext x=\"655\" y=\"600\" text-anchor=\"middle\" dominant-baseline=\"middle\" alignment-baseline=\"middle\" class=\"messageText\" dy=\"1em\" style=\"font-size: 16px; font-weight: 400;\">删除或禁用 Virtual Key\u003C\u002Ftext>\u003Cline x1=\"498.5\" y1=\"637\" x2=\"811.5\" y2=\"637\" class=\"messageLine0\" stroke-width=\"2\" stroke=\"none\" marker-end=\"url(#arrowhead)\" style=\"fill: none;\">\u003C\u002Fline>\u003Ctext x=\"780\" y=\"652\" text-anchor=\"middle\" dominant-baseline=\"middle\" alignment-baseline=\"middle\" class=\"messageText\" dy=\"1em\" style=\"font-size: 16px; font-weight: 400;\">更新凭证状态\u003C\u002Ftext>\u003Cline x1=\"498.5\" y1=\"689\" x2=\"1062\" y2=\"689\" class=\"messageLine0\" stroke-width=\"2\" stroke=\"none\" marker-end=\"url(#arrowhead)\" style=\"fill: none;\">\u003C\u002Fline>\u003C\u002Fsvg>\u003Cdiv class=\"md-editor-mermaid-action\">\u003Cspan class=\"md-editor-mermaid-copy\">\u003Csvg xmlns=\"http:\u002F\u002Fwww.w3.org\u002F2000\u002Fsvg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"lucide lucide-copy md-editor-icon\">\u003Crect width=\"14\" height=\"14\" x=\"8\" y=\"8\" rx=\"2\" ry=\"2\">\u003C\u002Frect>\u003Cpath d=\"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2\">\u003C\u002Fpath>\u003C\u002Fsvg>\u003C\u002Fspan>\u003Cspan class=\"md-editor-mermaid-zoom\">\u003Csvg xmlns=\"http:\u002F\u002Fwww.w3.org\u002F2000\u002Fsvg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"lucide lucide-pin-off md-editor-icon\">\u003Cpath d=\"M12 17v5\">\u003C\u002Fpath>\u003Cpath d=\"M15 9.34V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H7.89\">\u003C\u002Fpath>\u003Cpath d=\"m2 2 20 20\">\u003C\u002Fpath>\u003Cpath d=\"M9 9v1.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h11\">\u003C\u002Fpath>\u003C\u002Fsvg>\u003C\u002Fspan>\u003C\u002Fdiv>\u003C\u002Fp>\u003Cp data-line=\"1131\">实施时不要把完整 Virtual Key 写入普通业务表或日志；建议只在创建时安全交付，业务侧保留 Key ID、脱敏值和关联关系。\u003C\u002Fp>\n\u003Ch3 data-line=\"1133\" id=\"16.4 SEABRID 的分阶段实施\">16.4 SEABRID 的分阶段实施\u003C\u002Fh3>\n\u003Ctable data-line=\"1135\">\n\u003Cthead data-line=\"1135\">\n\u003Ctr data-line=\"1135\">\n\u003Cth>阶段\u003C\u002Fth>\n\u003Cth>目标\u003C\u002Fth>\n\u003Cth>交付\u003C\u002Fth>\n\u003C\u002Ftr>\n\u003C\u002Fthead>\n\u003Ctbody data-line=\"1137\">\n\u003Ctr data-line=\"1137\">\n\u003Ctd>V1.0\u003C\u002Ftd>\n\u003Ctd>基础 Gateway\u003C\u002Ftd>\n\u003Ctd>Docker、PostgreSQL、Provider UI、模型调用\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr data-line=\"1138\">\n\u003Ctd>V1.1\u003C\u002Ftd>\n\u003Ctd>企业身份与 Key\u003C\u002Ftd>\n\u003Ctd>Tenant \u002F Project \u002F Agent 与 Virtual Key 映射\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr data-line=\"1139\">\n\u003Ctd>V1.2\u003C\u002Ftd>\n\u003Ctd>Token 预算治理\u003C\u002Ftd>\n\u003Ctd>团队预算、项目预算、Agent 限额和费用统计\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr data-line=\"1140\">\n\u003Ctd>V1.3\u003C\u002Ftd>\n\u003Ctd>自定义管理界面\u003C\u002Ftd>\n\u003Ctd>Vue3 + Element Plus + Management API\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr data-line=\"1141\">\n\u003Ctd>V1.4\u003C\u002Ftd>\n\u003Ctd>可用性与扩展\u003C\u002Ftd>\n\u003Ctd>Redis HA、Fallback、监控、备份和灰度升级\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr data-line=\"1142\">\n\u003Ctd>V2.0\u003C\u002Ftd>\n\u003Ctd>规模化部署\u003C\u002Ftd>\n\u003Ctd>Gateway \u002F Backend \u002F UI 组件化和多实例\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003C\u002Ftbody>\n\u003C\u002Ftable>\n\u003Chr data-line=\"1144\">\n\u003Ch2 data-line=\"1146\" id=\"17. 架构评审结论\">17. 架构评审结论\u003C\u002Fh2>\n\u003Ch3 data-line=\"1148\" id=\"17.1 技术结论\">17.1 技术结论\u003C\u002Fh3>\n\u003Cul data-line=\"1150\">\n\u003Cli data-line=\"1150\">LiteLLM 是成熟的多模型 API Gateway \u002F AI Gateway，不是完整企业 AI OS。\u003C\u002Fli>\n\u003Cli data-line=\"1151\">SDK、Proxy、Router、Provider Adapter、管理 API 和账务系统构成其核心。\u003C\u002Fli>\n\u003Cli data-line=\"1152\">Virtual Key 是应用接入和用量治理的重要对象。\u003C\u002Fli>\n\u003Cli data-line=\"1153\">PostgreSQL 是管理和账务持久化核心；Redis 在多实例和高并发场景中承担共享缓存、限流及队列能力。\u003C\u002Fli>\n\u003Cli data-line=\"1154\">官方正在推进 Rust 化，但必须依据版本支持矩阵判断哪些请求实际走 Rust。\u003C\u002Fli>\n\u003Cli data-line=\"1155\">组件化部署解决数据面与控制面共享资源导致的故障耦合问题。\u003C\u002Fli>\n\u003Cli data-line=\"1156\">对 SEABRID 来说，应将 LiteLLM 定位为独立 LLM Gateway，企业 IAM 和 Agent 资产仍由 SEABRID OS 管理。\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Ch3 data-line=\"1158\" id=\"17.2 最重要的设计原则\">17.2 最重要的设计原则\u003C\u002Fh3>\n\u003Col data-line=\"1160\">\n\u003Cli data-line=\"1160\">\u003Cstrong>不修改 LiteLLM 核心源码\u003C\u002Fstrong>：尽可能通过官方 API、配置、Hook 和扩展点集成。\u003C\u002Fli>\n\u003Cli data-line=\"1161\">\u003Cstrong>不让 Harness 直连供应商\u003C\u002Fstrong>：Harness 只持有 LiteLLM Virtual Key。\u003C\u002Fli>\n\u003Cli data-line=\"1162\">\u003Cstrong>不把 LiteLLM 当作企业主数据源\u003C\u002Fstrong>：租户、项目和用户主数据由 SEABRID 管理。\u003C\u002Fli>\n\u003Cli data-line=\"1163\">\u003Cstrong>不混用配置事实来源\u003C\u002Fstrong>：YAML、数据库和管理 API 各自有明确职责。\u003C\u002Fli>\n\u003Cli data-line=\"1164\">\u003Cstrong>不忽略异步账务\u003C\u002Fstrong>：必须验证 Spend 写入延迟、失败恢复和对账。\u003C\u002Fli>\n\u003Cli data-line=\"1165\">\u003Cstrong>不盲目上微服务\u003C\u002Fstrong>：单机先用单体部署，业务规模增长后再拆分组件。\u003C\u002Fli>\n\u003C\u002Fol>\n\u003Chr data-line=\"1167\">\n\u003Ch2 data-line=\"1169\" id=\"18. 技术分享建议（约 45–60 分钟）\">18. 技术分享建议（约 45–60 分钟）\u003C\u002Fh2>\n\u003Ctable data-line=\"1171\">\n\u003Cthead data-line=\"1171\">\n\u003Ctr data-line=\"1171\">\n\u003Cth>分享章节\u003C\u002Fth>\n\u003Cth style=\"text-align:right\">建议时长\u003C\u002Fth>\n\u003Cth>重点\u003C\u002Fth>\n\u003C\u002Ftr>\n\u003C\u002Fthead>\n\u003Ctbody data-line=\"1173\">\n\u003Ctr data-line=\"1173\">\n\u003Ctd>1. 为什么需要 LLM Gateway\u003C\u002Ftd>\n\u003Ctd style=\"text-align:right\">5 分钟\u003C\u002Ftd>\n\u003Ctd>多模型厂商接入痛点\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr data-line=\"1174\">\n\u003Ctd>2. LiteLLM 项目整体架构\u003C\u002Ftd>\n\u003Ctd style=\"text-align:right\">8 分钟\u003C\u002Ftd>\n\u003Ctd>SDK、Gateway、Control Plane\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr data-line=\"1175\">\n\u003Ctd>3. 源码结构与技术栈\u003C\u002Ftd>\n\u003Ctd style=\"text-align:right\">8 分钟\u003C\u002Ftd>\n\u003Ctd>目录、模块边界\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr data-line=\"1176\">\n\u003Ctd>4. 一次请求的完整链路\u003C\u002Ftd>\n\u003Ctd style=\"text-align:right\">8 分钟\u003C\u002Ftd>\n\u003Ctd>Auth → Router → Provider → Spend\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr data-line=\"1177\">\n\u003Ctd>5. Provider 与 Router 设计\u003C\u002Ftd>\n\u003Ctd style=\"text-align:right\">8 分钟\u003C\u002Ftd>\n\u003Ctd>统一协议、重试、Fallback\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr data-line=\"1178\">\n\u003Ctd>6. 数据和多租户治理\u003C\u002Ftd>\n\u003Ctd style=\"text-align:right\">7 分钟\u003C\u002Ftd>\n\u003Ctd>PostgreSQL、Redis、Virtual Key\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr data-line=\"1179\">\n\u003Ctd>7. Rust 化与组件化部署\u003C\u002Ftd>\n\u003Ctd style=\"text-align:right\">8 分钟\u003C\u002Ftd>\n\u003Ctd>性能与故障隔离\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr data-line=\"1180\">\n\u003Ctd>8. SEABRID OS 集成\u003C\u002Ftd>\n\u003Ctd style=\"text-align:right\">5 分钟\u003C\u002Ftd>\n\u003Ctd>企业 IAM + Harness + Gateway\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003C\u002Ftbody>\n\u003C\u002Ftable>\n\u003Ch3 data-line=\"1182\" id=\"推荐分享的五张核心图\">推荐分享的五张核心图\u003C\u002Fh3>\n\u003Col data-line=\"1184\">\n\u003Cli data-line=\"1184\">LiteLLM 总体架构图。\u003C\u002Fli>\n\u003Cli data-line=\"1185\">一次模型调用 Sequence Diagram。\u003C\u002Fli>\n\u003Cli data-line=\"1186\">Provider Adapter 与 Router 关系图。\u003C\u002Fli>\n\u003Cli data-line=\"1187\">PostgreSQL \u002F Redis \u002F Spend 异步账务图。\u003C\u002Fli>\n\u003Cli data-line=\"1188\">SEABRID OS + DeepSeek Harness + LiteLLM 集成架构图。\u003C\u002Fli>\n\u003C\u002Fol>\n\u003Chr data-line=\"1190\">\n\u003Ch2 data-line=\"1192\" id=\"19. 官方资料与源码定位\">19. 官方资料与源码定位\u003C\u002Fh2>\n\u003Ch3 data-line=\"1194\" id=\"GitHub 源码\">GitHub 源码\u003C\u002Fh3>\n\u003Cul data-line=\"1196\">\n\u003Cli data-line=\"1196\">\u003Ca href=\"https:\u002F\u002Fgithub.com\u002FBerriAI\u002Flitellm\">LiteLLM GitHub 仓库\u003C\u002Fa>\u003C\u002Fli>\n\u003Cli data-line=\"1197\">\u003Ca href=\"https:\u002F\u002Fgithub.com\u002FBerriAI\u002Flitellm\u002Fblob\u002Fmain\u002Fpyproject.toml\">pyproject.toml：依赖与技术栈\u003C\u002Fa>\u003C\u002Fli>\n\u003Cli data-line=\"1198\">\u003Ca href=\"https:\u002F\u002Fgithub.com\u002FBerriAI\u002Flitellm\u002Fblob\u002Fmain\u002Flitellm\u002Fproxy\u002Fproxy_server.py\">Proxy Server\u003C\u002Fa>\u003C\u002Fli>\n\u003Cli data-line=\"1199\">\u003Ca href=\"https:\u002F\u002Fgithub.com\u002FBerriAI\u002Flitellm\u002Fblob\u002Fmain\u002Flitellm\u002Fproxy\u002Fauth\u002Fuser_api_key_auth.py\">Proxy Key Authentication\u003C\u002Fa>\u003C\u002Fli>\n\u003Cli data-line=\"1200\">\u003Ca href=\"https:\u002F\u002Fgithub.com\u002FBerriAI\u002Flitellm\u002Fblob\u002Fmain\u002Flitellm\u002Frouter.py\">Router\u003C\u002Fa>\u003C\u002Fli>\n\u003Cli data-line=\"1201\">\u003Ca href=\"https:\u002F\u002Fgithub.com\u002FBerriAI\u002Flitellm\u002Fblob\u002Fmain\u002Flitellm\u002Frouter_core.py\">Router Core\u003C\u002Fa>\u003C\u002Fli>\n\u003Cli data-line=\"1202\">\u003Ca href=\"https:\u002F\u002Fgithub.com\u002FBerriAI\u002Flitellm\u002Fblob\u002Fmain\u002Flitellm\u002Fmain.py\">SDK Main\u003C\u002Fa>\u003C\u002Fli>\n\u003Cli data-line=\"1203\">\u003Ca href=\"https:\u002F\u002Fgithub.com\u002FBerriAI\u002Flitellm\u002Fblob\u002Fmain\u002Flitellm\u002Flitellm_core_utils\u002Fget_llm_provider_logic.py\">Provider Resolver\u003C\u002Fa>\u003C\u002Fli>\n\u003Cli data-line=\"1204\">\u003Ca href=\"https:\u002F\u002Fgithub.com\u002FBerriAI\u002Flitellm\u002Fblob\u002Fmain\u002Flitellm\u002Fllms\u002Fcustom_llm.py\">Custom LLM Adapter\u003C\u002Fa>\u003C\u002Fli>\n\u003Cli data-line=\"1205\">\u003Ca href=\"https:\u002F\u002Fgithub.com\u002FBerriAI\u002Flitellm\u002Fblob\u002Fmain\u002Flitellm\u002Fproxy\u002Fdb\u002Fdb_spend_update_writer.py\">Spend Update Writer\u003C\u002Fa>\u003C\u002Fli>\n\u003Cli data-line=\"1206\">\u003Ca href=\"https:\u002F\u002Fgithub.com\u002FBerriAI\u002Flitellm\u002Fblob\u002Fmain\u002Flitellm\u002Fproxy\u002Fhooks\u002Fproxy_track_cost_callback.py\">Cost Callback\u003C\u002Fa>\u003C\u002Fli>\n\u003Cli data-line=\"1207\">\u003Ca href=\"https:\u002F\u002Fgithub.com\u002FBerriAI\u002Flitellm\u002Ftree\u002Fmain\u002Flitellm\u002Frust\">Rust Workspace\u003C\u002Fa>\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Ch3 data-line=\"1209\" id=\"官方架构文档\">官方架构文档\u003C\u002Fh3>\n\u003Cul data-line=\"1211\">\n\u003Cli data-line=\"1211\">\u003Ca href=\"https:\u002F\u002Fdocs.litellm.ai\u002Fdocs\u002Fproxy\u002Farchitecture\">Life of a Request\u003C\u002Fa>\u003C\u002Fli>\n\u003Cli data-line=\"1212\">\u003Ca href=\"https:\u002F\u002Fdocs.litellm.ai\u002Fdocs\u002Fproxy\u002Fconfiguration\u002Foverview\">Configuration Overview\u003C\u002Fa>\u003C\u002Fli>\n\u003Cli data-line=\"1213\">\u003Ca href=\"https:\u002F\u002Fdocs.litellm.ai\u002Fdocs\u002Fproxy\u002Fconfiguration\u002Fui\">Admin UI\u003C\u002Fa>\u003C\u002Fli>\n\u003Cli data-line=\"1214\">\u003Ca href=\"https:\u002F\u002Fdocs.litellm.ai\u002Fdocs\u002Fproviders\">Provider List\u003C\u002Fa>\u003C\u002Fli>\n\u003Cli data-line=\"1215\">\u003Ca href=\"https:\u002F\u002Fdocs.litellm.ai\u002Frust-migration\">Rust Migration\u003C\u002Fa>\u003C\u002Fli>\n\u003Cli data-line=\"1216\">\u003Ca href=\"https:\u002F\u002Fdocs.litellm.ai\u002Fblog\u002Fcomponentized-deployment\">Componentized Deployment\u003C\u002Fa>\u003C\u002Fli>\n\u003Cli data-line=\"1217\">\u003Ca href=\"https:\u002F\u002Fdocs.litellm.ai\u002Fdocs\u002Fproxy\u002Fdeploy\u002Farchitecture\">Reference Architectures\u003C\u002Fa>\u003C\u002Fli>\n\u003Cli data-line=\"1218\">\u003Ca href=\"https:\u002F\u002Fdocs.litellm.ai\u002Frelease_notes\u002Fv1.112.0\u002Fv1-112-0\">v1.112.0 Release Notes\u003C\u002Fa>\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Ch3 data-line=\"1220\" id=\"研究限制\">研究限制\u003C\u002Fh3>\n\u003Cp data-line=\"1222\">本文是基于可访问的官方默认分支源码文件、项目依赖声明和官方架构文档所做的架构级分析。LiteLLM 处于持续演进状态，特别是 Rust Gateway、数据库访问层、组件化部署和企业功能。若要形成代码级审计报告，还应固定具体 Git Tag \u002F Commit，逐个追踪目标版本的函数调用、Schema Migration、测试用例和运行配置。\u003C\u002Fp>\n\u003Cp data-line=\"1224\">\u003Cstrong>建议正式分享时固定两个对照版本：v1.112.0（当前中文部署基线）与研究时的最新稳定版本，并把版本差异单独列为一页。\u003C\u002Fstrong>\u003C\u002Fp>\n",37715,125,"0","",2,0,13,"模型,API,Provider,Key,LiteLLM","研究用途：技术架构评审、研发团队分享、技术选型 研究对象：BerriAI\u002FLiteLLM 官方开源仓库 源码基线：GitHub 默认分支；本次读取的 pyproject.toml 标示版本为 1.114.0 版本说明：此前部署讨论采用 v1.112.0。本文将默认分支的新架构与 v1.112.0 的已知能力分开说明，不把新版本能力倒推到旧版本。 0.","2026-12-05 11:12:15"]