logger.warn() is deprecated

This commit is contained in:
Nicholas Albion
2023-10-04 13:17:21 +11:00
parent 2bc5b8f11c
commit 8c26ce7674

View File

@@ -162,7 +162,7 @@ def retry_on_exception(func):
args[0]['function_buffer'] = e.doc
continue
elif isinstance(e, ValidationError):
logger.warn('Received invalid JSON response from LLM. Asking to retry...')
logger.warning('Received invalid JSON response from LLM. Asking to retry...')
logger.info(f' at {e.json_path} {e.message}')
# eg:
# json_path: '$.type'