get maxTokens() {
    let result
    if (this.isAi21() === true) {
      result = this.#body.maxTokens
    } else if (this.isClaude() === true) {
      result = this.#body.max_tokens_to_sample
    } else if (this.isClaude3() === true || this.isCohere() === true) {
      result = this.#body.max_tokens
    } else if (this.isLlama() === true) {
      result = this.#body.max_gen_length
    } else if (this.isTitan() === true) {
      result = this.#body.textGenerationConfig?.maxTokenCount
    }
    return result
  }
The maximum number of tokens allowed as defined by the user.

@returns {number|undefined}