From 99c22438660f681847d93798b60b84ad4a674256 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20MANSUY?= Date: Thu, 4 Dec 2025 19:14:28 +0800 Subject: [PATCH] cherry-pick 6e2946e7 --- lightrag/llm/openai.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lightrag/llm/openai.py b/lightrag/llm/openai.py index d2181506..e045aa13 100644 --- a/lightrag/llm/openai.py +++ b/lightrag/llm/openai.py @@ -814,7 +814,7 @@ async def azure_openai_complete( return result -@wrap_embedding_func_with_attrs(embedding_dim=1536) +@wrap_embedding_func_with_attrs(embedding_dim=1536, max_token_size=8192) async def azure_openai_embed( texts: list[str], model: str | None = None,