class_docstr: Chat completion.
class_docstr_tok: ["Chat","completion","."]
docstr: Complete this chat completion.
  
  :param prompt: text prompt to generate completions for
  :returns chat reply
docstr_tok: ["Complete","this","chat","completion",".",":","param","prompt",":","text","prompt","to","generate","completions","for",":","returns","chat","reply"]
code: def chat_sync(self, prompt: str) -> Dict[str, str]:
      """
      Complete this chat completion.
  
      :param prompt: text prompt to generate completions for
      :returns chat reply
      """
      reply = self._predict(prompt)
      self._update_history(prompt, reply)
      return {"user": prompt, "gpt": reply}
  
imports: import abc
  import ast
  import collections
  from typing import Any, AsyncGenerator, Dict, Generator, List, Optional, OrderedDict, Union
  from h2ogpt_client._gradio_client import GradioClientWrapper
  from h2ogpt_client._h2ogpt_enums import DocumentSubset, LangChainAction, LangChainMode, PromptType
  from h2ogpt_client._models import Model
label_desc: Use image node_id 2 for calling the ChatCompletion obj's underlying member method code with example usage: obj.chat_sync(prompt) and returns: dict