mirror of
https://github.com/j93es/browser-use-oauth.git
synced 2026-06-04 09:21:52 +09:00
feat: OAuth 리스트 추출 및 로그인 기능 개선
- README.md: uv 실행 명령어 수정 - lib/llm/prompt: OAuth 리스트 추출 및 fallback 프롬프트 추가 - lib/utils/browser_use: 프로필 생성 시 스토리지 상태 파일 처리 개선 - lib/utils/browser_use/func: 안전한 JSON 읽기 및 쓰기 함수 추가 - main.py: OAuth 리스트 추출 및 개별 로그인 시도 통합 - model.py: OAuth 모델 수정
This commit is contained in:
parent
4f90285bdd
commit
4b3637b762
8 changed files with 444 additions and 206 deletions
|
|
@ -4,8 +4,12 @@ from pydantic import BaseModel
|
|||
# 출력 모델
|
||||
class OAuth(BaseModel):
|
||||
provider: str
|
||||
oauth_uri: str
|
||||
oauth_uri: str = "" # OAuth 리스트 추출 단계에서는 URI가 없을 수 있음
|
||||
|
||||
|
||||
class OAuthList(BaseModel):
|
||||
oauth_providers: List[OAuth]
|
||||
oauth_providers: List[OAuth]
|
||||
|
||||
|
||||
# 기존 모델 유지 (backward compatibility)
|
||||
BaseModel = OAuthList
|
||||
Loading…
Add table
Add a link
Reference in a new issue