Skip to content

How to disable --auto-truncate via the text-embeddings-router CLI? #833

Description

@slavistan

System Info

  • os: Linux 6.18.7-arch1-1 x86_64
  • runtime environment: docker 1.9

Information

  • Docker
  • The CLI directly

Tasks

  • An officially supported command
  • My own modifications

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions