code: def run_client_nochat_api_lean_morestuff(
      prompt,
      prompt_type="human_bot",
      max_new_tokens=512,
      version=None,
      h2ogpt_key=None,
  ):
      kwargs = dict(
          instruction="",
          iinput="",
          context="",
          stream_output=False,
          prompt_type=prompt_type,
          temperature=0.1,
          top_p=0.75,
          top_k=40,
          penalty_alpha=0,
          num_beams=1,
          max_new_tokens=1024,
          min_new_tokens=0,
          early_stopping=False,
          max_time=20,
          repetition_penalty=1.0,
          num_return_sequences=1,
          do_sample=True,
          chat=False,
          instruction_nochat=prompt,
          iinput_nochat="",
          langchain_mode="Disabled",
          add_chat_history_to_context=True,
          langchain_action=LangChainAction.QUERY.value,
          langchain_agents=[],
          top_k_docs=4,
          document_subset=DocumentSubset.Relevant.name,
          document_choice=[],
          document_source_substrings=[],
          document_source_substrings_op="and",
          document_content_substrings=[],
          document_content_substrings_op="and",
          h2ogpt_key=h2ogpt_key,
          add_search_to_context=False,
      )
  
      api_name = "/submit_nochat_api"  # NOTE: like submit_nochat but stable API for string dict passing
      client = get_client(serialize=not is_gradio_version4)
      res = client.predict(
          str(dict(kwargs)),
          api_name=api_name,
      )
      print("Raw client result: %s" % res, flush=True)
      res_dict = dict(
          prompt=kwargs["instruction_nochat"],
          response=md_to_text(ast.literal_eval(res)["response"]),
          sources=ast.literal_eval(res)["sources"],
          h2ogpt_key=h2ogpt_key,
      )
      print(res_dict)
      return res_dict, client
  
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 11 for calling a global function with example usage: run_client_nochat_api_lean_morestuff(prompt, prompt_type, max_new_tokens, version, h2ogpt_key) and returns: res_dict,  client