From d2a189834b09beb53cbf8210747f806a5bd07b31 Mon Sep 17 00:00:00 2001 From: jeffwang0516 Date: Thu, 16 Nov 2023 01:41:26 +0800 Subject: [PATCH] fix(runner): remove keyword args for attrs.get() --- openllm-python/src/openllm/_deprecated.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openllm-python/src/openllm/_deprecated.py b/openllm-python/src/openllm/_deprecated.py index 37ee9cad8..3743a09c6 100644 --- a/openllm-python/src/openllm/_deprecated.py +++ b/openllm-python/src/openllm/_deprecated.py @@ -55,7 +55,7 @@ def download(): logger.warning( "'ensure_available=False' won't have any effect as LLM will always check to download the model on initialisation." ) - model_id = attrs.get('model_id', default=os.getenv('OPENLLM_MODEL_ID', llm_config['default_id'])) + model_id = attrs.get('model_id', os.getenv('OPENLLM_MODEL_ID', llm_config['default_id'])) _RUNNER_MSG = f"""\ Using 'openllm.Runner' is now deprecated. Make sure to switch to the following syntax: