ai_api_client_sdk.models.model module¶
- class ai_api_client_sdk.models.model.Model(executable_id: str, model: str, description: str = None, versions: List[ModelVersion] = None, display_name: str = None, access_type: str = None, provider: str = None, allowed_scenarios: List[ModelBaseDataAllowedScenarios] = None, **kwargs)¶
Bases:
objectThe Model object defines a model :param executable_id: ID of the executable :type executable_id: str :param model: Unique name of the model :type model: str :param description: Description of the model, defaults to None :type description: str, optional :param versions: List of available model versions, defaults to None :type versions: List[class:ai_api_client_sdk.models.model_version.ModelVersion], optional :param display_name: Display name of the model, defaults to None :type display_name: str, optional :param access_type: Access type of the model, defaults to None :type access_type: str, optional :param provider: Provider of the model, defaults to None :type provider: str, optional :param allowed_scenarios: List of allowed scenarios for the model, defaults to None :type allowed_scenarios:
List[ai_api_client_sdk.models.model_base_data_allowed_scenarios.ModelBaseDataAllowedScenarios], optional
- Parameters:
**kwargs – The keyword arguments are there in case there are additional attributes returned from server
- __init__(executable_id: str, model: str, description: str = None, versions: List[ModelVersion] = None, display_name: str = None, access_type: str = None, provider: str = None, allowed_scenarios: List[ModelBaseDataAllowedScenarios] = None, **kwargs)¶
- static from_dict(model_dict: Dict[str, Any])¶
Returns a
ai_api_client_sdk.models.model.Modelobject, created from the values in the dict provided as parameter- Parameters:
model_dict (Dict[str, Any]) – Dict which includes the necessary values to create the object
- Returns:
An object, created from the values provided
- Return type:
class:ai_api_client_sdk.models.model.Model