docstr: Run on new LLM token. Only available when streaming is enabled.
docstr_tok: ["Run","on","new","LLM","token",".","Only","available","when","streaming","is","enabled","."]
code: def on_llm_new_token(self, token: str, **kwargs: Any) -> None:
      """Run on new LLM token. Only available when streaming is enabled."""
      # streaming to std already occurs without this
      # sys.stdout.write(token)
      # sys.stdout.flush()
      pass
  
imports: import inspect
  import os
  from typing import Dict, Any, Optional, List, Iterator
  from langchain.callbacks.manager import CallbackManagerForLLMRun
  from langchain.schema.output import GenerationChunk
  from langchain.llms import gpt4all
  from pydantic.v1 import root_validator
  from utils import FakeTokenizer, url_alive, download_simple, clear_torch_cache, n_gpus_global
  from langchain.callbacks.streaming_stdout import StreamingStdOutCallbackHandler
  from langchain.llms import LlamaCpp
label_desc: Use image node_id 1 for calling the H2OStreamingStdOutCallbackHandler obj's underlying member method code with example usage: obj.on_llm_new_token(token) without return types