Skip to content

Commit 67e8a2b

Browse files
committed
Document max_token_size=0 behavior in openai_embed
1 parent dca23e2 commit 67e8a2b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lightrag/llm/openai.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -750,6 +750,7 @@ async def openai_embed(
750750
**IMPORTANT**: This parameter is automatically injected by the EmbeddingFunc wrapper
751751
when the underlying function signature supports it (via inspect.signature check).
752752
The value is controlled by the @wrap_embedding_func_with_attrs decorator.
753+
Set max_token_size=0 to disable truncation.
753754
client_configs: Additional configuration options for the AsyncOpenAI/AsyncAzureOpenAI client.
754755
These will override any default configurations but will be overridden by
755756
explicit parameters (api_key, base_url). Supports proxy configuration,

0 commit comments

Comments
 (0)