mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-30 01:52:18 +00:00
style(a2a): black-format watsonx orchestrate handler for CI py312
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
0fea4f90ef
commit
7b3a110f34
1 changed files with 3 additions and 1 deletions
|
|
@ -44,7 +44,9 @@ class WatsonxOrchestrateHandler:
|
|||
return hashlib.sha256(material.encode()).hexdigest()
|
||||
|
||||
@staticmethod
|
||||
def _cp4d_token_ttl_seconds(expiration: Any, now_wall: Optional[float] = None) -> int:
|
||||
def _cp4d_token_ttl_seconds(
|
||||
expiration: Any, now_wall: Optional[float] = None
|
||||
) -> int:
|
||||
# CP4D returns expiration as absolute Unix epoch seconds, not a duration.
|
||||
expires_at = int(expiration)
|
||||
wall = now_wall if now_wall is not None else time.time()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue