Skip to main content
Version: 0.0.41

lhc models

Manage Lakehousecat custom models. Custom models combine a provider base model with your datasources.

Commands​

models list​

lhc models list [--type <type>] [--limit N] [--offset N]
FlagDefaultDescription
--type—Filter by model type: chat, embedding, text-to-speech, speech-to-text
--limit50Maximum number of models
--offset0Pagination offset

models get <id>​

lhc models get <model-id>

models create​

Create a new custom model:

lhc models create \
--id <model-id> \
--name <display-name> \
--base-model-id <base-model-id> \
[--type chat]
FlagRequiredDefaultDescription
--idyes—Unique identifier (no spaces)
--nameyes—Display name shown in the UI
--base-model-idyes—ID of the provider base model
--typenochatModel type

Use lhc models list to find available --base-model-id values.


models update <id>​

Rename a custom model:

lhc models update <model-id> --name "New Name"

models delete <id>​

lhc models delete <model-id>

models set-default <id>​

Set a model as the default for its type. This controls which model is pre-selected in new sessions:

lhc models set-default <model-id> --type chat
FlagRequiredDescription
--typeyesModel type: chat, embedding, text-to-speech, speech-to-text

models export <id>​

Export a custom model definition to a portable .lhc.json file. Embedded datasource references are included:

# Print to stdout
lhc models export <model-id>

# Write to file
lhc models export <model-id> -f model.lhc.json
FlagDescription
-f, --output-fileWrite output to this file (default: stdout)

models import <file>​

Import a model from a .lhc.json export file:

lhc models import model.lhc.json [--name <override-name>]
FlagDescription
--nameOverride the model name from the export file

If a model with the same name or ID already exists, the import is aborted with an HTTP 409 error and instructions for resolution.