diff --git a/backend/repository/user_identity/create_user_identity.py b/backend/repository/user_identity/create_user_identity.py index 4315869a2..ccaa84bfe 100644 --- a/backend/repository/user_identity/create_user_identity.py +++ b/backend/repository/user_identity/create_user_identity.py @@ -19,5 +19,5 @@ def create_user_identity(id: UUID, openai_api_key: Optional[str]) -> UserIdentit ) user_identity = response.data[0] return UserIdentity( - id=user_identity.user_id, openai_api_key=user_identity.openai_api_key # type: ignore + id=user_identity.get('user_id'), openai_api_key=user_identity.get('openai_api_key') # type: ignore )