Document max_token_size=0 behavior in openai_embed

This commit is contained in:
yangdx
2025-12-22 20:33:57 +08:00
parent dca23e2a30
commit 67e8a2b105

View File

@@ -750,6 +750,7 @@ async def openai_embed(
**IMPORTANT**: This parameter is automatically injected by the EmbeddingFunc wrapper
when the underlying function signature supports it (via inspect.signature check).
The value is controlled by the @wrap_embedding_func_with_attrs decorator.
Set max_token_size=0 to disable truncation.
client_configs: Additional configuration options for the AsyncOpenAI/AsyncAzureOpenAI client.
These will override any default configurations but will be overridden by
explicit parameters (api_key, base_url). Supports proxy configuration,