From 6b45367cc7322d9a00d0fbbc3ed11d13d48d87d8 Mon Sep 17 00:00:00 2001 From: somebody Date: Tue, 7 Mar 2023 17:07:01 -0600 Subject: [PATCH] Model: Rename "Colab" to "Basic API" --- modeling/inference_models/{colab.py => basic_api.py} | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) rename modeling/inference_models/{colab.py => basic_api.py} (91%) diff --git a/modeling/inference_models/colab.py b/modeling/inference_models/basic_api.py similarity index 91% rename from modeling/inference_models/colab.py rename to modeling/inference_models/basic_api.py index c42807da..9f1a147f 100644 --- a/modeling/inference_models/colab.py +++ b/modeling/inference_models/basic_api.py @@ -15,11 +15,11 @@ from modeling.inference_model import ( ) -class ColabException(Exception): - """To be used for errors when using the Colab API as an interface.""" +class BasicAPIException(Exception): + """To be used for errors when using the Basic API as an interface.""" -class ColabInferenceModel(InferenceModel): +class BasicAPIInferenceModel(InferenceModel): def __init__(self) -> None: super().__init__() @@ -65,7 +65,7 @@ class ColabInferenceModel(InferenceModel): req = requests.post(utils.koboldai_vars.colaburl, json=reqdata) if req.status_code != 200: - raise ColabException(f"Bad status code {req.status_code}") + raise BasicAPIException(f"Bad status code {req.status_code}") # Deal with the response js = req.json()["data"]