mirror of
https://github.com/KoboldAI/KoboldAI-Client.git
synced 2025-06-05 21:59:24 +02:00
Fix double slashing
This commit is contained in:
@@ -25,7 +25,7 @@ class APIException(Exception):
|
||||
class APIInferenceModel(InferenceModel):
|
||||
def __init__(self, base_url: str) -> None:
|
||||
super().__init__()
|
||||
self.base_url = base_url
|
||||
self.base_url = base_url.rstrip("/")
|
||||
|
||||
def _load(self, save_model: bool, initial_load: bool) -> None:
|
||||
tokenizer_id = requests.get(f"{self.base_url}/api/v1/model").json()["result"]
|
||||
|
Reference in New Issue
Block a user