oss-model-connector/ossmodelconnector/oss_model_connector.py [26:46]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    def __init__(
        self,
        endpoint: str,
        cred_path: str = "",
        config_path: str = "",
        cred_provider: Any = None,
    ):
        """
        Initializes the connector with endpoint and optional credential information.

        Args:
            endpoint(str): The OSS endpoint to connect to.
            cred_path(str, optional): Path to the credential file. Defaults to "".
            config_path(str, optional): Path to the configuration file. Defaults to "".
            cred_provider(Any, optional): Credential provider. Defaults to None.

        Raises:
            ValueError: If endpoint or credential is not provided.
        """
        if not endpoint:
            raise ValueError("endpoint must be non-empty")
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



oss-torch-connector/osstorchconnector/oss_checkpoint.py [15:23]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    def __init__(
        self,
        endpoint: str,
        cred_path: str = "",
        config_path: str = "",
        cred_provider: Any = None,
    ):
        if not endpoint:
            raise ValueError("endpoint must be non-empty")
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



