Skip to content

Commit a1aff08

Browse files
committed
change back to original limit
1 parent 2633230 commit a1aff08

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/proxy/clients/perspective_api_client.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@ class PerspectiveAPIClient:
2828
"""
2929

3030
ORGANIZATION = "perspectiveapi"
31-
MAX_TEXT_LENGTH: int = 15_000 # Cap text at 15,000 characters long before sending the request
31+
32+
# Maximum allowed text length by Perspective API
33+
MAX_TEXT_LENGTH: int = 20_480
3234

3335
@staticmethod
3436
def create_request_body(text: str, attributes: List[str], languages: List[str]) -> Dict:

0 commit comments

Comments
 (0)