Fix: Avoid deepcopy crash for OpenAI‑API‑compatible chat models (#17556)

This commit is contained in:
Lynn
2026-07-30 13:58:44 +08:00
committed by GitHub
parent 03a93eabf7
commit 0139d6f8c3

View File

@@ -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 = {}