From 3b1fb3f50045c359debd55e6f022bee3bb0d621a Mon Sep 17 00:00:00 2001 From: ADou Date: Wed, 9 Sep 2026 10:36:11 +0000 Subject: [PATCH] [None][docs] fix multimodal serve client path, base64 util, and bench doc link Signed-off-by: ADou --- docs/source/commands/trtllm-serve/trtllm-serve.rst | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/source/commands/trtllm-serve/trtllm-serve.rst b/docs/source/commands/trtllm-serve/trtllm-serve.rst index 4f0312fe139c..91a9efe93a46 100644 --- a/docs/source/commands/trtllm-serve/trtllm-serve.rst +++ b/docs/source/commands/trtllm-serve/trtllm-serve.rst @@ -115,9 +115,9 @@ Then, start the server with the configuration file: Multimodal Chat API ~~~~~~~~~~~~~~~~~~~ -You can query Completions API with any http clients, a typical example is OpenAI Python client: +You can query the Chat API with any HTTP client, a typical example is OpenAI Python client: -.. literalinclude:: ../../../../examples/serve/openai_completion_client_for_multimodal.py +.. literalinclude:: ../../../../examples/serve/openai_chat_client_for_multimodal.py :language: python :linenos: @@ -168,8 +168,8 @@ TRT-LLM multimodal supports the following modalities and data types (depending o .. note:: To convert images to base64-encoded format, use the utility function - :func:`tensorrt_llm.utils.load_base64_image`. Refer to the - `load_base64_image utility `__ + :func:`tensorrt_llm.inputs.encode_base64_image`. Refer to the + `encode_base64_image utility `__ for implementation details. **Image embeddings** @@ -352,4 +352,4 @@ This syntax section lists all command line arguments for ``trtllm-serve``'s subc :nested: full Besides the above examples, `trtllm-serve` is also used as an entrypoint for performance benchmarking. -Please refer to `Performance Benchmarking with `trtllm-serve` ` for more details. +Please refer to `Performance Benchmarking with trtllm-serve `__ for more details. \ No newline at end of file