docstr: The max length of the model input. Similar to MT-NLG, Cohere does not predict the logprob of
  the first input token so `max_sequence_length` is one token shorter than `max_request_length`.
docstr_tok: ["The","max","length","of","the","model","input",".","Similar","to","MT-NLG",",","Cohere","does","not","predict","the","logprob","of","the","first","input","token","so","`","max_sequence_length","`","is","one","token","shorter","than","`","max_request_length","`","."]
code: def max_sequence_length(self) -> int:
      """
      The max length of the model input. Similar to MT-NLG, Cohere does not predict the logprob of
      the first input token so `max_sequence_length` is one token shorter than `max_request_length`.
      """
      return self.max_request_length - 1
  
imports: from typing import List, Optional
  from helm.proxy.clients.cohere_client import CohereClient
  from .local_window_service import LocalWindowService
  from .tokenizer_service import TokenizerService
  from .window_service import EncodeResult
  from helm.common.tokenization_request import TokenizationRequest, TokenizationRequestResult, TokenizationToken
label_desc: Use image node_id 3 for calling the CohereWindowService obj's underlying member method code with example usage: obj.max_sequence_length() and returns: unknown