New

Add New Model

Allows adding new models to the model list in the config.yaml

POST/model/new
Authorization
Body
model_name*Model Name
litellm_params*LiteLLM_Params

LiteLLM Params with 'model' requirement - used for completions

model_info*ModelInfo
Other propertiesany
Response

Successful Response

Body
any
Request
const response = await fetch('/model/new', {
    method: 'POST',
    headers: {
      "Content-Type": "application/json"
    },
    body: JSON.stringify({
      "model_name": "text",
      "litellm_params": {
        "model": "text"
      },
      "model_info": {
        "id": "text"
      }
    }),
});
const data = await response.json();
Response
{
  "detail": [
    {
      "loc": [
        "text"
      ],
      "msg": "text",
      "type": "text"
    }
  ]
}