How to disable --auto-truncate via the `text-embeddings-router` CLI?
### System Info
- os: Linux 6.18.7-arch1-1 x86_64
- runtime environment: docker `1.9`
### Information
- [x] Docker
- [ ] The CLI directly
### Tasks
- [x] An officially supported command
- [ ] My own modifications
### Reproduction
The [README](https://github.com/huggingface/text-embeddings-inference#:~:text=%5Bdefault%3A%2032%5D-,%2D%2Dauto%2Dtruncate,-Control%20automatic%20truncation) 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:
```bash
$ 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.
1 条评论