Skip to content

Commit e0501c2

Browse files
committed
docs: add comment for model_path process
1 parent 5cb7e01 commit e0501c2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

astrbot/core/provider/sources/nvidia_rerank_source.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ def _get_endpoint(self) -> str:
5959
model_path = "nvidia"
6060
logger.debug(f"[NVIDIA Rerank] Building endpoint for model: {self.model}")
6161
if "/" in self.model:
62+
"""遵循NVIDIA API的URL规则,替换模型名中特殊字符"""
6263
model_path = self.model.strip("/").replace(".", "_")
6364
endpoint = self.model_endpoint.lstrip("/")
6465
return f"{self.base_url}/{model_path}/{endpoint}"

0 commit comments

Comments
 (0)