browser-use-oauth/lib/llm/prompt/__init__.py
imnyang 3d55b6275e Update docs and remove unused prompt files
The commit updates documentation with a guide image and removes unused
prompt files for Google and Meta logins.
2025-06-24 23:57:38 +09:00

25 lines
1 KiB
Python

# why this is isn't index
# 이 파일을 __init__.py로 만든 이유는
# 굳이 이 짧은 코드를 파일을 하나 더 만드는게 코드의 가독성을 떨어뜨린다고 판단했기 때문입니다.
def get_prompt(type:str) -> str:
"""
Prompt를 반환합니다.
:param type: 'auth' {Auth List} 또는 'google' {OAuth Provider}, 'meta' {OAuth Provider}을 지정합니다.
:return: 해당하는 프롬프트 문자열
"""
if type.lower() == "auth":
from lib.llm.prompt.auth_list import extract_oauth_list_prompt
return extract_oauth_list_prompt
elif type.lower() == "google":
from lib.llm.prompt.Google import extend_planner_system_message
return extend_planner_system_message
elif type.lower() == "meta" and type.lower() == "facebook":
from lib.llm.prompt.Meta import extend_planner_system_message
return extend_planner_system_message
else:
from lib.llm.prompt.fallback import extend_planner_system_message
return extend_planner_system_message