code: def run_client_chat(
      prompt="",
      stream_output=None,
      max_new_tokens=128,
      langchain_mode="Disabled",
      langchain_action=LangChainAction.QUERY.value,
      langchain_agents=[],
      prompt_type=None,
      prompt_dict=None,
      version=None,
      h2ogpt_key=None,
      chat_conversation=None,
      system_prompt="",
      document_choice=[],
      document_content_substrings=[],
      document_content_substrings_op="and",
      document_source_substrings=[],
      document_source_substrings_op="and",
      top_k_docs=3,
      max_time=20,
      repetition_penalty=1.0,
      do_sample=True,
  ):
      client = get_client(serialize=False)
  
      kwargs, args = get_args(
          prompt,
          prompt_type,
          chat=True,
          stream_output=stream_output,
          max_new_tokens=max_new_tokens,
          langchain_mode=langchain_mode,
          langchain_action=langchain_action,
          langchain_agents=langchain_agents,
          prompt_dict=prompt_dict,
          version=version,
          h2ogpt_key=h2ogpt_key,
          chat_conversation=chat_conversation,
          system_prompt=system_prompt,
          document_choice=document_choice,
          document_source_substrings=document_source_substrings,
          document_source_substrings_op=document_source_substrings_op,
          document_content_substrings=document_content_substrings,
          document_content_substrings_op=document_content_substrings_op,
          top_k_docs=top_k_docs,
          max_time=max_time,
          repetition_penalty=repetition_penalty,
          do_sample=do_sample,
      )
      return run_client(client, prompt, args, kwargs)
  
imports: import ast
  import time
  import os
  import markdown
  import pytest
  from bs4 import BeautifulSoup
  from src.utils import is_gradio_version4
  from tests.utils import get_inf_server
label_desc: Use image node_id 14 for calling a global function with example usage: run_client_chat(prompt, stream_output, max_new_tokens, langchain_mode, langchain_action, langchain_agents, prompt_type, prompt_dict, version, h2ogpt_key, chat_conversation, system_prompt, document_choice, document_content_substrings, document_content_substrings_op, document_source_substrings, document_source_substrings_op, top_k_docs, max_time, repetition_penalty, do_sample) and returns: run_client