From 0be85e9536f9846bcaa95eda48462ee76c2adbfb Mon Sep 17 00:00:00 2001 From: snaily Date: Fri, 14 Mar 2025 13:43:17 +0800 Subject: [PATCH] =?UTF-8?q?feat(gemini=5Froutes):=20=E6=B7=BB=E5=8A=A0deep?= =?UTF-8?q?copy=E5=AF=BC=E5=85=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 在gemini_routes.py中添加了Python标准库copy模块中的deepcopy函数导入,用于创建对象的深度副本,确保数据操作过程中不会意外修改原始对象。 --- app/api/gemini_routes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/api/gemini_routes.py b/app/api/gemini_routes.py index 31d55ed..46df9d6 100644 --- a/app/api/gemini_routes.py +++ b/app/api/gemini_routes.py @@ -1,6 +1,6 @@ from fastapi import APIRouter, Depends, HTTPException from fastapi.responses import StreamingResponse, JSONResponse - +from copy import deepcopy from app.core.config import settings from app.core.logger import get_gemini_logger from app.core.security import SecurityService