Custom Paths from Menu structure fixed

This commit is contained in:
ebolam
2023-05-19 18:28:47 -04:00
parent 6df5fe4ad0
commit a1ee6849dc
4 changed files with 4 additions and 8 deletions

View File

@@ -31,11 +31,6 @@ class model_backend(InferenceModel):
return model_name == "OAI" or model_name == "GooseAI"
def get_requested_parameters(self, model_name, model_path, menu_path):
try:
print(self.source)
except:
print(vars(self))
raise
if os.path.exists("settings/{}.model_backend.settings".format(self.source)) and 'colaburl' not in vars(self):
with open("settings/{}.model_backend.settings".format(self.source), "r") as f:
self.key = json.load(f)['key']