Introduction of Partner Model, adding code to Tenant model
This commit is contained in:
@@ -136,3 +136,14 @@ class EveAIInvalidEmbeddingModel(EveAIException):
|
||||
# Construct the message dynamically
|
||||
message = f"Tenant with ID '{tenant_id}' has no or an invalid embedding model in Catalog {catalog_id}."
|
||||
super().__init__(message, status_code, payload)
|
||||
|
||||
|
||||
class EveAIDoublePartner(EveAIException):
|
||||
"""Raised when there is already a partner defined for a given tenant (while registering a partner)"""
|
||||
|
||||
def __init__(self, tenant_id, status_code=400, payload=None):
|
||||
self.tenant_id = tenant_id
|
||||
# Construct the message dynamically
|
||||
message = f"Tenant with ID '{tenant_id}' is already defined as a Partner."
|
||||
super().__init__(message, status_code, payload)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user