mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-08-01 13:33:48 +08:00
Fix: Avoid deepcopy crash for OpenAI‑API‑compatible chat models (#17556)
This commit is contained in:
@@ -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 = {}
|
||||
|
||||
Reference in New Issue
Block a user