Skip to content

Options

Every function takes these options. Most can also come from an environment variable, and an option on the command line wins over its variable.

Each function's own options, such as --threshold for decide or --choice for choose, are on that function's page. thinkthen FUNCTION --help lists them all.

OptionWhat it doesVariable
[FILE]...Input files; default: standard inputnone
--backend <NAME>Backend name Default: systemone.THINKTHEN_BACKEND
--batch <BATCH>Texts per requestTHINKTHEN_BATCH
--color <COLOR>Diagnostic color One of: auto, always, never.THINKTHEN_COLOR, NO_COLOR
--field <FIELD>Field pointer; repeat for an object keyed by final namesTHINKTHEN_FIELD
--format <FORMAT>Output format One of: text, json. Default: text.THINKTHEN_FORMAT
--from <FROM>Input framing One of: text, lines, jsonl, csv, tsv, xlsx. Default: inferred from FILE.THINKTHEN_FROM
--json [=<JSON>]Write typed JSON LinesTHINKTHEN_JSON
--model <MODEL>Model nameTHINKTHEN_MODEL
--name <NAME>Optional execution identityTHINKTHEN_NAME
-q, --quiet [=<QUIET>]Print no answers, notices or progressTHINKTHEN_QUIET
--url <URL>Override the chosen backend addressnone
-v, --verbose [=<VERBOSE>]Print a summaryTHINKTHEN_VERBOSE
--text <TEXT>Judge this text instead of reading inputnone
-h, --helpPrint helpnone
--column <COLUMN>Field column; repeat; replaces a saved pointernone
--details [=<DETAILS>]Add status, probability, error, detail and source columnsnone
--in-place [=<IN-PLACE>]Replace source with backupnone
--into <INTO>Answer field for JSON Lines; column for tablesnone
--output <OUTPUT>Destination pathnone
--sheet <SHEET>Worksheetnone

Configuration covers the services, the models, your key and the address variables.

--in-place, --details, --json, --quiet and --verbose are off unless you give them. On the command line, the option alone turns it on, and --json=false turns it off. --json, --quiet and --verbose can also come from a variable, which takes true or false, such as THINKTHEN_JSON=true. --in-place and --details have no variable.

Without --from, a file ending in .jsonl, .csv, .tsv or .xlsx is read as that format. Anything else, standard input included, is read as one text for most functions, and as one text per line for filter, rank and annotate. File types shows each format.

JSON output lists the fields --json prints.