code: def does_support_json_mode(inference_server, model_name):
      if any(
          [
              inference_server.startswith(x)
              for x in ["openai_azure", "openai_azure_chat"]
          ]
      ):
          return model_name.lower() in openai_supports_json_mode
      elif any(
          [
              inference_server.startswith(x)
              for x in ["openai", "openai_chat"]
          ]
      ):
          # assume OpenAI serves updated models
          return True
      else:
          return False
  
file_path: h2ogpt/src/enums.py
imports: from enum import Enum
label_desc: Use image node_id 2 for calling a global function with example usage: does_support_json_mode(inference_server, model_name) and returns: unknown, True, False