Skip to content

Commit e1088af

Browse files
committed
fix: replace illegal characters
Replace illegal characters when building request model path.
1 parent 8b9960d commit e1088af

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

astrbot/core/provider/sources/nvidia_rerank_source.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def _get_endpoint(self) -> str:
5656
model_path = "nvidia"
5757
logger.debug(f"[NVIDIA Rerank] Building endpoint for model: {self.model}")
5858
if "/" in self.model:
59-
model_path = self.model.strip("/")
59+
model_path = self.model.strip("/").replace(".", "_")
6060
endpoint = self.model_endpoint.lstrip("/")
6161
return f"{self.base_url}/{model_path}/{endpoint}"
6262

0 commit comments

Comments
 (0)