System Info
- os: Linux 6.18.7-arch1-1 x86_64
- runtime environment: docker
1.9
Information
Tasks
Reproduction
The README states that the text-embeddings-router CLI provides the --auto-truncate parameter, set to true by default. I would like to disable automatic truncation by the server but can't seem to do it:
$ text-embeddings-router --auto-truncate false --model-id foo
# error: unexpected argument 'false' found
#
# Usage: text-embeddings-router [OPTIONS] --model-id <MODEL_ID>
#
# For more information, try '--help'.
I tried a bunch of other idiomatic CLI formats for boolean flags (e.g. --no-auto-truncate, --auto-truncate off, --auto-truncate 0) but none worked. Setting the envvar AUTO_TRUNCATE=false does the job, but it's awkward to have to mix CLI parameters and environment variables.
How can I configure the --auto-truncate setting via the command-line?
Expected behavior
I would have expected --auto-truncate {true,false} to work.
System Info
1.9Information
Tasks
Reproduction
The README states that the text-embeddings-router CLI provides the
--auto-truncateparameter, set to true by default. I would like to disable automatic truncation by the server but can't seem to do it:I tried a bunch of other idiomatic CLI formats for boolean flags (e.g.
--no-auto-truncate,--auto-truncate off,--auto-truncate 0) but none worked. Setting the envvar AUTO_TRUNCATE=false does the job, but it's awkward to have to mix CLI parameters and environment variables.How can I configure the
--auto-truncatesetting via the command-line?Expected behavior
I would have expected
--auto-truncate {true,false}to work.