def __init__(
      self,
      model_name: str,
      *,
      measurements: measurements_lib.Measurements | None = None,
      channel: str = language_model.DEFAULT_STATS_CHANNEL,
  ):
    """Initializes the instance.

    Args:
      model_name: The language model to use. For more details, see
        https://docs.aws.amazon.com/bedrock/latest/userguide/models-supported.html
      measurements: The measurements object to log usage statistics to.
      channel: The channel to write the statistics to.
    """
    self._model_name = model_name
    self._measurements = measurements
    self._channel = channel
    self._max_tokens_limit = self._get_max_tokens_limit(model_name)

    # AWS credentials are passed via environment variables, see:
    # https://boto3.amazonaws.com/v1/documentation/api/latest/guide/credentials.html
    self._client = boto3.client('bedrock-runtime')
Initializes the instance.

    Args:
      model_name: The language model to use. For more details, see
        https://docs.aws.amazon.com/bedrock/latest/userguide/models-supported.html
      measurements: The measurements object to log usage statistics to.
      channel: The channel to write the statistics to.
    
concordia/language_model/amazon_bedrock_model.py