fix(mm): fix broken get_model_discriminator_value

This commit is contained in:
psychedelicious 2024-03-01 15:19:31 +11:00
parent e426096d32
commit 0a614943f6

View File

@ -326,7 +326,7 @@ def get_model_discriminator_value(v: Any) -> str:
"""
if isinstance(v, dict):
return f"{v.get('type')}.{v.get('format')}" # pyright: ignore [reportUnknownMemberType]
return f"{v.getattr('type')}.{v.getattr('format')}"
return f"{v.type}.{v.format}"
AnyModelConfig = Annotated[