style(model-gateway): 修掉守卫注释里的错字(声明朝 -> 声明)

This commit is contained in:
张胜宇
2026-09-20 17:53:49 +08:00
parent d5e813b726
commit d9151ac1b1
+1 -1
View File
@@ -243,7 +243,7 @@ class DatabaseModelEndpointResolver:
# `capabilities` 为 NULL/空 的端点绝不会被 `matched` 选中(不能裸奔到错误的网关方法上);
# 但整批都没声明该能力时退回全部端点,避免把这个配置缺口伪装成"没有可用端点"。
if required == "embedding" and len(matched) > 1:
# 配置守卫:声明朝 `embedding` 能力的 active 端点应**恰好 1 个**。
# 配置守卫:声明 `embedding` 能力的 active 端点应**恰好 1 个**。
# 后端会按顺序只试前 `max(1, max_attempts)`(默认 2)个端点,端点一多就会被截断;
# 更隐蔽的是模型混用——Milvus 集合里向量维度固定 1024,若两个端点背后的模型不同,
# 写入向量与查询向量就不在同一个空间,`COSINE` 相似度会整体失真: