From 6e743770286209413e667577f27a04b323d85d12 Mon Sep 17 00:00:00 2001 From: imnyang Date: Sun, 15 Jun 2025 03:04:36 +0900 Subject: [PATCH] =?UTF-8?q?[Enhancement]=20LMNR=20=EC=B4=88=EA=B8=B0?= =?UTF-8?q?=ED=99=94=20=EB=A1=9C=EC=A7=81=20=EA=B0=9C=EC=84=A0:=20HTTP=20?= =?UTF-8?q?=EB=B0=8F=20gRPC=20=ED=8F=AC=ED=8A=B8=20=EC=84=A4=EC=A0=95=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index dd02b74..5588c9e 100644 --- a/main.py +++ b/main.py @@ -43,7 +43,15 @@ backend_url = os.getenv("BACKEND_URL", "http://localhost:11081") if os.getenv("LMNR_PROJECT_API_KEY") and os.getenv("LMNR_BASEURL"): from lmnr import Laminar # 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"), base_url=os.getenv("LMNR_BASEURL")) # you can also pass project api key here + if os.getenv("LMNR_HTTP_PORT") and os.getenv("LMNR_GRPC_PORT"): + Laminar.initialize( + project_api_key=os.getenv("LMNR_PROJECT_API_KEY"), + base_url=os.getenv("LMNR_BASEURL"), + http_port=int(os.getenv("LMNR_HTTP_PORT", "0")), + grpc_port=int(os.getenv("LMNR_GRPC_PORT", "0")) + ) + else: + 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("🔧 환경 설정:") try: