[Enhancement] LMNR 초기화 시 BASEURL 환경변수 추가

This commit is contained in:
imnyang 2025-06-15 02:58:57 +09:00
commit 546d9c061a

View file

@ -40,10 +40,10 @@ if os.getenv("GOOGLE_PLANNER_MODEL") is None:
backend_url = os.getenv("BACKEND_URL", "http://localhost:11081") backend_url = os.getenv("BACKEND_URL", "http://localhost:11081")
if os.getenv("LMNR_PROJECT_API_KEY"): if os.getenv("LMNR_PROJECT_API_KEY") and os.getenv("LMNR_BASEURL"):
from lmnr import Laminar from lmnr import Laminar
# this line auto-instruments Browser Use and any browser you use (local or remote) # this line auto-instruments Browser Use and any browser you use (local or remote)
Laminar.initialize(project_api_key=os.getenv("LMNR_PROJECT_API_KEY")) # you can also pass project api key here Laminar.initialize(project_api_key=os.getenv("LMNR_PROJECT_API_KEY"), base_url=os.getenv("LMNR_BASEURL")) # you can also pass project api key here
print("🔧 환경 설정:") print("🔧 환경 설정:")
try: try: