mirror of
https://github.com/j93es/browser-use-oauth.git
synced 2026-06-04 06:31:51 +09:00
- Removed old llm_login and session scripts, replacing them with a new structure for handling SSO login and session management. - Introduced a new prompt system for collecting SSO redirect URLs, ensuring compliance with security protocols. - Implemented a robust backend notification system for tracking scan initiation. - Enhanced browser profile configuration and resource management for improved session handling. - Added utility functions for environment variable checks and logging. - Updated the overall architecture to improve maintainability and readability.
12 lines
No EOL
335 B
Python
12 lines
No EOL
335 B
Python
from dotenv import load_dotenv
|
|
import os
|
|
|
|
from lib.llm.prompt import llm_login, session
|
|
|
|
load_dotenv(override=True)
|
|
|
|
def extend_planner_system_message():
|
|
if os.getenv("PROVIDOR_CREDENTIALS_IN_LLM", "False").lower() == "true":
|
|
return llm_login.extend_planner_system_message
|
|
else:
|
|
return session.extend_planner_system_message |