class_docstr: Request object for text generation (only for internal use).
  
  Args:
      inputs (`str`):
          The prompt for text generation.
      parameters (`Optional[TextGenerationParameters]`, *optional*):
          Generation parameters.
      stream (`bool`, *optional*):
          Whether to stream output tokens. Defaults to False.
class_docstr_tok: ["Request","object","for","text","generation","(","only","for","internal","use",")",".","Args",":","inputs","(","`","str","`",")",":","The","prompt","for","text","generation",".","parameters","(","`","Optional","[","TextGenerationParameters","]","`",",","*","optional","*",")",":","Generation","parameters",".","stream","(","`","bool","`",",","*","optional","*",")",":","Whether","to","stream","output","tokens",".","Defaults","to","False","."]
code: def valid_input(cls, v):
      if not v:
          raise ValueError("`inputs` cannot be empty")
      return v
  
imports: import warnings
  from dataclasses import field
  from enum import Enum
  from typing import List, NoReturn, Optional
  from requests import HTTPError
  from ..utils import is_pydantic_available
label_desc: Use image node_id 1 for calling the TextGenerationRequest obj's underlying member method code with example usage: obj.valid_input(cls, v) and returns: v