Bound the complete remote request and its retries by an overall deadline
This commit is contained in:
parent
21f23458d4
commit
bc25eeb06a
1 changed files with 36 additions and 7 deletions
|
|
@ -17,7 +17,7 @@ def call_remote_great_ai(
|
|||
base_uri: str,
|
||||
data: Mapping[str, Any],
|
||||
retry_count: int = 4,
|
||||
timeout_in_seconds: Optional[int] = 300,
|
||||
timeout_in_seconds: Optional[float] = 300,
|
||||
model_class: Optional[Type[T]] = None,
|
||||
) -> Trace[T]:
|
||||
"""Communicate with a GreatAI object through an HTTP request.
|
||||
|
|
|
|||
Loading…
Reference in a new issue