rollback file

This commit is contained in:
Otavio Brito 2026-04-01 20:37:01 -03:00
parent 151c76a35f
commit 25085266af

View file

@ -144,6 +144,13 @@ class VertexAIPartnerModelsTokenCounter(VertexBase):
timeout=30.0,
)
# Check for errors
if response.status_code != 200:
error_text = response.text
raise ValueError(
f"Token counting request failed with status {response.status_code}: {error_text}"
)
# Parse response
result = response.json()