Update a custom model
curl --request PATCH \
--url https://paradigm.lighton.ai/api/v3/company/models/{uuid} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"id": "a08cff52-1a96-49f4-9f28-84a060b9264c",
"name": "Gemma 4 (local LM Studio)",
"technical_name": "custom-42-a08cff52-1a96-49f4-9f28-84a060b9264c",
"litellm_model": "openai/google/gemma-4-e4b",
"model_type": "Large Language Model",
"endpoint": "http://host.docker.internal:1234/v1",
"enabled": true,
"is_default": false,
"temperature": 0.2,
"required_temperature": null,
"max_temperature": null
}
'import requests
url = "https://paradigm.lighton.ai/api/v3/company/models/{uuid}"
payload = {
"id": "a08cff52-1a96-49f4-9f28-84a060b9264c",
"name": "Gemma 4 (local LM Studio)",
"technical_name": "custom-42-a08cff52-1a96-49f4-9f28-84a060b9264c",
"litellm_model": "openai/google/gemma-4-e4b",
"model_type": "Large Language Model",
"endpoint": "http://host.docker.internal:1234/v1",
"enabled": True,
"is_default": False,
"temperature": 0.2,
"required_temperature": None,
"max_temperature": None
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
id: 'a08cff52-1a96-49f4-9f28-84a060b9264c',
name: 'Gemma 4 (local LM Studio)',
technical_name: 'custom-42-a08cff52-1a96-49f4-9f28-84a060b9264c',
litellm_model: 'openai/google/gemma-4-e4b',
model_type: 'Large Language Model',
endpoint: 'http://host.docker.internal:1234/v1',
enabled: true,
is_default: false,
temperature: 0.2,
required_temperature: null,
max_temperature: null
})
};
fetch('https://paradigm.lighton.ai/api/v3/company/models/{uuid}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "a08cff52-1a96-49f4-9f28-84a060b9264c",
"name": "Gemma 4 (local LM Studio)",
"technical_name": "custom-42-a08cff52-1a96-49f4-9f28-84a060b9264c",
"litellm_model": "openai/google/gemma-4-e4b",
"model_type": "Large Language Model",
"endpoint": "http://host.docker.internal:1234/v1",
"enabled": true,
"is_default": false,
"temperature": 0.2,
"required_temperature": null,
"max_temperature": null
}Models
Update a custom model
Update a custom ML model’s name or temperature, or promote it to the company default. Everything else is fixed at creation: the litellm_model, the model type, the endpoint, and the API key cannot be changed, because the credential is write-only in the gateway and cannot be rewritten without first being read back. Register a new model to change any of them. A model whose provider accepts exactly one temperature keeps that one whatever is submitted. Requires company admin role.
PATCH
/
api
/
v3
/
company
/
models
/
{uuid}
Update a custom model
curl --request PATCH \
--url https://paradigm.lighton.ai/api/v3/company/models/{uuid} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"id": "a08cff52-1a96-49f4-9f28-84a060b9264c",
"name": "Gemma 4 (local LM Studio)",
"technical_name": "custom-42-a08cff52-1a96-49f4-9f28-84a060b9264c",
"litellm_model": "openai/google/gemma-4-e4b",
"model_type": "Large Language Model",
"endpoint": "http://host.docker.internal:1234/v1",
"enabled": true,
"is_default": false,
"temperature": 0.2,
"required_temperature": null,
"max_temperature": null
}
'import requests
url = "https://paradigm.lighton.ai/api/v3/company/models/{uuid}"
payload = {
"id": "a08cff52-1a96-49f4-9f28-84a060b9264c",
"name": "Gemma 4 (local LM Studio)",
"technical_name": "custom-42-a08cff52-1a96-49f4-9f28-84a060b9264c",
"litellm_model": "openai/google/gemma-4-e4b",
"model_type": "Large Language Model",
"endpoint": "http://host.docker.internal:1234/v1",
"enabled": True,
"is_default": False,
"temperature": 0.2,
"required_temperature": None,
"max_temperature": None
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
id: 'a08cff52-1a96-49f4-9f28-84a060b9264c',
name: 'Gemma 4 (local LM Studio)',
technical_name: 'custom-42-a08cff52-1a96-49f4-9f28-84a060b9264c',
litellm_model: 'openai/google/gemma-4-e4b',
model_type: 'Large Language Model',
endpoint: 'http://host.docker.internal:1234/v1',
enabled: true,
is_default: false,
temperature: 0.2,
required_temperature: null,
max_temperature: null
})
};
fetch('https://paradigm.lighton.ai/api/v3/company/models/{uuid}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "a08cff52-1a96-49f4-9f28-84a060b9264c",
"name": "Gemma 4 (local LM Studio)",
"technical_name": "custom-42-a08cff52-1a96-49f4-9f28-84a060b9264c",
"litellm_model": "openai/google/gemma-4-e4b",
"model_type": "Large Language Model",
"endpoint": "http://host.docker.internal:1234/v1",
"enabled": true,
"is_default": false,
"temperature": 0.2,
"required_temperature": null,
"max_temperature": null
}Authorizations
Body
application/jsonapplication/x-www-form-urlencodedmultipart/form-data