mirror of
https://github.com/KoboldAI/KoboldAI-Client.git
synced 2025-06-05 21:59:24 +02:00
Custom Paths from Menu structure fixed
This commit is contained in:
@@ -19,7 +19,6 @@ model_backend_name = "OpenAI"
|
||||
class OpenAIAPIError(Exception):
|
||||
def __init__(self, error_type: str, error_message) -> None:
|
||||
super().__init__(f"{error_type}: {error_message}")
|
||||
self.source = "OpenAI"
|
||||
|
||||
|
||||
class model_backend(openai_gooseai_model_backend):
|
||||
@@ -28,6 +27,7 @@ class model_backend(openai_gooseai_model_backend):
|
||||
def __init__(self):
|
||||
super().__init__()
|
||||
self.url = "https://api.openai.com/v1/engines"
|
||||
self.source = "OpenAI"
|
||||
|
||||
def is_valid(self, model_name, model_path, menu_path):
|
||||
return model_name == "OAI"
|
Reference in New Issue
Block a user