We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1a5f889 commit 6d1ab9dCopy full SHA for 6d1ab9d
1 file changed
litellm/proxy/proxy_server.py
@@ -2752,15 +2752,15 @@ async def _run_direct_health_check_with_instrumentation(
2752
**_hc_filter,
2753
)
2754
except TypeError as e:
2755
- if "instrumentation_context" not in str(e):
+ unsupported_optional_kwargs = ("instrumentation_context", *_hc_filter.keys())
2756
+ if not any(kwarg_name in str(e) for kwarg_name in unsupported_optional_kwargs):
2757
raise
2758
# Backward compatibility for monkeypatched or wrapped callables
- # that do not accept instrumentation_context.
2759
+ # that do not accept newer health check kwargs.
2760
return await perform_health_check(
2761
model_list=model_list,
2762
details=details,
2763
max_concurrency=max_concurrency,
- **_hc_filter,
2764
2765
2766
0 commit comments