#!/usr/bin/env python3 """ Lily LLM API 서버 v2 - 모듈화된 버전 """ import uvicorn import logging import warnings # 🔄 RoPE 경고 숨기기 warnings.filterwarnings("ignore", message="The attention layers in this model are transitioning") warnings.filterwarnings("ignore", message="rotary_pos_emb will be removed") warnings.filterwarnings("ignore", message="position_embeddings will be mandatory") # logging 설정 logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s') logger = logging.getLogger(__name__) from .core.app_factory import create_app # FastAPI 애플리케이션 생성 app = create_app() def run_server(): """서버 실행""" uvicorn.run( "app_v2_modular:app", host="0.0.0.0", port=8000, reload=False, workers=1 ) if __name__ == "__main__": run_server()