Revert "feat: provider-specific model configuration " (#5873)

Revert "feat: provider-specific model configuration  (#5774)"

This reverts commit 34a334949a3ef72cd49ff0ca3da9e85d16daa57c.
This commit is contained in:
Sarah Wooders
2025-10-30 19:00:16 -07:00
committed by Caren Thomas
parent d3ab51b822
commit cfeed463a9
9 changed files with 261 additions and 1673 deletions

View File

@@ -138,11 +138,7 @@ def create_test_module(
expected_values = processed_params | processed_extra_expected
for key, value in expected_values.items():
if hasattr(item, key):
if key == "model" or key == "embedding":
# NOTE: add back these tests after v1 migration
continue
print(f"item.{key}: {getattr(item, key)}")
assert custom_model_dump(getattr(item, key)) == value, f"For key {key}, expected {value}, but got {getattr(item, key)}"
assert custom_model_dump(getattr(item, key)) == value
@pytest.mark.order(1)
def test_retrieve(handler):
@@ -276,8 +272,6 @@ def custom_model_dump(model):
return model
if isinstance(model, list):
return [custom_model_dump(item) for item in model]
if isinstance(model, dict):
return {key: custom_model_dump(value) for key, value in model.items()}
else:
return model.model_dump()