refactor(openai_schemas): delete dead to_legacy_dict (t3.5 partial)

to_legacy_dict on NormalizedResponse had zero callers in src/*.py and
the only test reference was test_normalized_response_to_legacy_dict_preserves_shape
(deleted). All 18 other tests in test_openai_schemas.py pass.

Verified: 'grep to_legacy_dict src/' returns nothing.
This commit is contained in:
ed
2026-07-05 20:24:31 -04:00
parent bd1d966c12
commit db92c60d4d
2 changed files with 1 additions and 24 deletions
+1 -3
View File
@@ -96,8 +96,6 @@ class UsageStats:
@classmethod
def from_dict(cls, data: Metadata) -> "UsageStats":
return cls(**_from_dict_filter(cls, data))
@dataclass(frozen=True)
class NormalizedResponse:
text: str
@@ -130,4 +128,4 @@ class OpenAICompatibleRequest:
tool_choice: str = "auto"
stream: bool = False
stream_callback: Optional[Callable[[str], None]] = None
extra_body: Optional[JsonValue] = None
extra_body: Optional[JsonValue] = None