ignore attributes added by AuthorizedSqlStore

This commit is contained in:
Matthew Farrellee 2025-08-29 15:38:02 -04:00
parent 42d15a4516
commit da2238be37

View file

@ -94,6 +94,7 @@ def _make_file_object(
bytes: int, bytes: int,
created_at: int, created_at: int,
expires_at: int, expires_at: int,
**kwargs: Any, # here to ignore any additional fields, e.g. extra fields from AuthorizedSqlStore
) -> OpenAIFileObject: ) -> OpenAIFileObject:
""" """
Construct an OpenAIFileObject and normalize expires_at. Construct an OpenAIFileObject and normalize expires_at.