Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
emrgnt-cmplxty committed Jan 9, 2025
1 parent 6092ad8 commit a66b2a3
Show file tree
Hide file tree
Showing 11 changed files with 643 additions and 28 deletions.
10 changes: 10 additions & 0 deletions js/sdk/src/v3/clients/users.ts
Original file line number Diff line number Diff line change
Expand Up @@ -527,4 +527,14 @@ export class UsersClient {
return this.client.makeRequest("GET", `users/${options.id}/limits`);
}

@feature("users.oauthGoogleAuthorize")
async oauthGoogleAuthorize(): Promise<{ redirect_url: string }> {
// For GET requests, we set the method to "GET" and pass no data
return this.client.makeRequest("GET", "users/oauth/google/authorize");
}

@feature("users.oauthGithubAuthorize")
async oauthGithubAuthorize(): Promise<{ redirect_url: string }> {
return this.client.makeRequest("GET", "users/oauth/github/authorize");
}
}
2 changes: 1 addition & 1 deletion py/core/base/providers/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
class AppConfig(R2RSerializable):
project_name: Optional[str] = None
default_max_documents_per_user: Optional[int] = 100
default_max_chunks_per_user: Optional[int] = 100_000
default_max_chunks_per_user: Optional[int] = 10_000
default_max_collections_per_user: Optional[int] = 10
default_max_upload_size: int = 2_000_000 # e.g. ~2 MB

Expand Down
Loading

0 comments on commit a66b2a3

Please sign in to comment.