temp_commit: 프롬프트 확장 가이드 추가 및 Google, Meta 프로바이더에 대한 SSO 로그인 리디렉션 URL 수집 로직 구현

This commit is contained in:
암냥 2025-06-24 22:44:51 +09:00
commit c2e610ec54
6 changed files with 248 additions and 55 deletions

View file

@ -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