edit : imagen -> gemini로 변경, bingimg -> 사용불가 , 벡터검색api 이미지저장이아닌 데이터 전송하는 api 추가 , vactor -> vector 오타 수정

This commit is contained in:
2025-07-30 13:29:24 +09:00
parent 8e28a22825
commit 44bd86562d
45 changed files with 507 additions and 223 deletions

View File

@@ -40,6 +40,14 @@ async def lifespan(app: FastAPI):
# When service starts.
LOG.info(f"REST start (port : {conf().REST_SERVER_PORT})")
import os
import const
if os.path.exists(const.TEMP_FOLDER):
for _file in os.scandir(const.TEMP_FOLDER):
os.remove(_file)
LOG.info(f"temp folder clean")
yield
# When service is stopped.