truss predict [OPTIONS]

Options

--remote
TEXT

Name of the remote in .trussrc to patch changes to.

-d, --data
TEXT

String formatted as json that represents request.

-f, --file
PATH

Path to json file containing the request.

--model_version
TEXT

ID of model version to invoke.

--model
TEXT

ID of model to invoke.

--help

Show help message and exit.

Arguments

TARGET_DIRECTORY
Optional

A Truss directory. If none, use current directory.

Examples

truss predict -d '{"prompt": "What is the meaning of life?"}'
truss predict --published -f my-prompt.json