From af88b9b0773fe1d5f433288d987d330e6a47c20e Mon Sep 17 00:00:00 2001 From: Kuan-Chun Wang Date: Wed, 15 Nov 2023 17:59:01 +0800 Subject: [PATCH] fix(runner): remove keyword args for attrs.get() (#661) --- 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 37ee9cad..3743a09c 100644 --- a/openllm-python/src/openllm/_deprecated.py +++ b/openllm-python/src/openllm/_deprecated.py @@ -55,7 +55,7 @@ def Runner( 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: