From 0139d6f8c3fe41a8e71d6a06892fa281c3e430de Mon Sep 17 00:00:00 2001 From: Lynn Date: Thu, 30 Jul 2026 13:58:44 +0800 Subject: [PATCH] =?UTF-8?q?Fix:=20Avoid=20deepcopy=20crash=20for=20OpenAI?= =?UTF-8?q?=E2=80=91API=E2=80=91compatible=20chat=20models=20(#17556)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rag/advanced_rag/agentic_rag.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/rag/advanced_rag/agentic_rag.py b/rag/advanced_rag/agentic_rag.py index 149687402b..ac617d1c7e 100644 --- a/rag/advanced_rag/agentic_rag.py +++ b/rag/advanced_rag/agentic_rag.py @@ -30,7 +30,6 @@ model (no tool schema is bound onto it) and its ``async_chat*`` calls take the fast non-tool-calling path. """ -from copy import deepcopy import logging import re from typing import Any, List @@ -83,7 +82,7 @@ class RAGTools: thinking_mode: str = "medium", ): self.tenant_ids = tenant_ids - self.chat_mdl = deepcopy(chat_mdl) + self.chat_mdl = chat_mdl self.embed_mdl = embed_mdl self.thinking_mode = thinking_mode self.field_map = {}