docs: README补端点/路径职责约定章节——端点纯连接点可互换,profile.path承载完整相对路径(含版本段),normalize_endpoints/_norm_relative_path归一,配套pipeline-llm 3ea03be

This commit is contained in:
yumoqing 2026-09-12 15:25:45 +08:00
parent 706ccdba90
commit 3de7d027ed

View File

@ -33,6 +33,18 @@
所有工具仅 `owner.superuser` / `owner.admin` 可用,**代码层硬门禁**(每个 handler 入口校验
RBAC 角色),不依赖 prompt。菜单入口同样 Jinja `{% if is_admin %}` 门控。
## 端点/路径职责约定2026-09-12 端点可互换重构,配套 pipeline-llm 3ea03be
- **端点 = 纯连接点**(主机根+region+timeout不带 protocol 标签、不参与协议过滤,
对所有模型可互换;账号 endpoint_ids 空 = 选用全部端点。
- **请求形态完全由模型适配模板 profile.path 承载**path 是从主机根起的完整相对路径
(含版本段,如 /compatible-mode/v1/chat/completions运行时 url = 端点主机根 + path
模型禁把端点写进 path。
- extract 提取提示词base_url 只提主机根禁路径段chat_path 必须含版本段。
- apply 落库:端点经 normalize_endpoints 归一主机根 + 同(主机根,region)去重 + timeout 取 max
path 经 _norm_relative_path 归一(全 URL 剥 scheme+host保留版本段
裸域拦截与协议补绑自检已删。
## 定价真实性规则
- 定价只允许来自文档原文,文档没写一律 null禁止编造