Fix deprecation warning

This commit is contained in:
allegroai 2022-03-24 19:36:00 +02:00
parent b26bc09ade
commit 8142796e15
2 changed files with 2 additions and 2 deletions

View File

@ -125,7 +125,7 @@ def get_http_session_with_retry(
session.trust_env = False
if backoff_max is not None:
Retry.BACKOFF_MAX = backoff_max
Retry.DEFAULT_BACKOFF_MAX = backoff_max
retry = Retry(
total=total, connect=connect, read=read, redirect=redirect, status=status,

View File

@ -35,7 +35,7 @@ class ModelsList(UserList):
class TaskModels(UserDict):
_input_models_re = re.compile(pattern=r"((?i)(Using model id: )(\w+)?)", flags=0)
_input_models_re = re.compile(pattern=r"((Using model id: )(\w+)?)", flags=re.IGNORECASE)
@property
def input(self):