mirror of
https://github.com/j93es/browser-use-oauth.git
synced 2026-06-13 23:16:43 +09:00
temp_commit: 프롬프트 확장 가이드 추가 및 Google, Meta 프로바이더에 대한 SSO 로그인 리디렉션 URL 수집 로직 구현
This commit is contained in:
parent
32f2ce486e
commit
c2e610ec54
6 changed files with 248 additions and 55 deletions
|
|
@ -5,13 +5,23 @@
|
|||
def get_prompt(type:str) -> str:
|
||||
"""
|
||||
Prompt를 반환합니다.
|
||||
|
||||
:param type: 'extend_planner' 또는 'oauth_login'
|
||||
|
||||
: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
|
||||
return extend_planner_system_message
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue