mirror of
https://github.com/j93es/browser-use-oauth.git
synced 2026-06-04 10:21:52 +09:00
[Update] new logic
This commit is contained in:
parent
95d56259e7
commit
92967ed353
38 changed files with 1516 additions and 5209 deletions
16
lib/utils/env_checker.py
Normal file
16
lib/utils/env_checker.py
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
import os
|
||||
from dotenv import load_dotenv
|
||||
|
||||
load_dotenv()
|
||||
def check_env_variables():
|
||||
"""환경변수 체크 함수"""
|
||||
required_vars = [
|
||||
"BACKEND_URL",
|
||||
"GOOGLE_API_KEY",
|
||||
"GOOGLE_MODEL",
|
||||
"GOOGLE_PLANNER_MODEL"
|
||||
]
|
||||
|
||||
for var in required_vars:
|
||||
if os.getenv(var) is None:
|
||||
raise ValueError(f"{var} 환경변수가 설정되지 않았습니다.")
|
||||
Loading…
Add table
Add a link
Reference in a new issue