style(openai_like): apply ruff format to dynamic_config and tests

This commit is contained in:
ANISAYAK MITRA 2026-10-25 01:19:47 +05:30
parent 2e20b2754f
commit b82926d7e2
2 changed files with 1 additions and 5 deletions

View file

@ -123,9 +123,7 @@ def create_config_class(provider: SimpleProviderConfig):
# State 4 (provider explicitly disabled) vs State 1 & 2 (unmapped / missing metadata):
# Preserves tool parameters unless provider_info explicitly sets supports_function_calling to False
return not (
provider.provider_info and provider.provider_info.get("supports_function_calling") is False
)
return not (provider.provider_info and provider.provider_info.get("supports_function_calling") is False)
_supports_fc: Final = _check_supports_fc()

View file

@ -23,7 +23,6 @@ def _isolate_generated_class_cache():
class TestClassCaching:
def test_cache_is_keyed_on_slug_not_on_the_provider_instance(self):
first = create_responses_config_class(_provider("cache_by_slug"))
second = create_responses_config_class(_provider("cache_by_slug"))
@ -206,4 +205,3 @@ class TestFunctionCallingParams:
params = config.get_supported_openai_params("any-model")
for tool_param in ("tools", "tool_choice", "function_call", "functions", "parallel_tool_calls"):
assert tool_param not in params