code: def add_new_model():
      import streamlit as st
      import json, requests, uuid
  
      model_name = st.text_input(
          "Model Name - user-facing model name",
          placeholder="gpt-3.5-turbo",
      )
      st.subheader("LiteLLM Params")
      litellm_model_name = st.text_input(
          "Model", placeholder="azure/gpt-35-turbo-us-east"
      )
      litellm_api_key = st.text_input("API Key")
      litellm_api_base = st.text_input(
          "API Base",
          placeholder="https://my-endpoint.openai.azure.com",
      )
      litellm_api_version = st.text_input(
          "API Version", placeholder="2023-07-01-preview"
      )
      litellm_params = json.loads(
          st.text_area(
              "Additional Litellm Params (JSON dictionary). [See all possible inputs](https://github.com/BerriAI/litellm/blob/3f15d7230fe8e7492c95a752963e7fbdcaf7bf98/litellm/main.py#L293)",
              value={},
          )
      )
      st.subheader("Model Info")
      mode_options = ("completion", "embedding", "image generation")
      mode_selected = st.selectbox("Mode", mode_options)
      model_info = json.loads(
          st.text_area(
              "Additional Model Info (JSON dictionary)",
              value={},
          )
      )
  
      if st.button("Submit"):
          try:
              model_info = {
                  "model_name": model_name,
                  "litellm_params": {
                      "model": litellm_model_name,
                      "api_key": litellm_api_key,
                      "api_base": litellm_api_base,
                      "api_version": litellm_api_version,
                  },
                  "model_info": {
                      "id": str(uuid.uuid4()),
                      "mode": mode_selected,
                  },
              }
              # Make the POST request to the specified URL
              complete_url = ""
              if st.session_state["api_url"].endswith("/"):
                  complete_url = (
                      f"{st.session_state['api_url']}model/new"
                  )
              else:
                  complete_url = (
                      f"{st.session_state['api_url']}/model/new"
                  )
  
              headers = {
                  "Authorization": f"Bearer {st.session_state['proxy_key']}"
              }
              response = requests.post(
                  complete_url, json=model_info, headers=headers
              )
  
              if response.status_code == 200:
                  st.success("Model added successfully!")
              else:
                  st.error(
                      f"Failed to add model. Status code: {response.status_code}"
                  )
  
              st.success("Form submitted successfully!")
          except Exception as e:
              raise e
  
label_desc: Use image node_id 1 for calling a global function with example usage: add_new_model() without return types