mirror of
https://github.com/j93es/browser-use-oauth.git
synced 2026-06-04 04:01:51 +09:00
[Enhancement] LMNR 초기화 시 BASEURL 환경변수 추가
This commit is contained in:
parent
ed120f7a69
commit
546d9c061a
1 changed files with 2 additions and 2 deletions
4
main.py
4
main.py
|
|
@ -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:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue