From 9ebeaf10fb4b2039d2b18d12877c85bbe8b6724e Mon Sep 17 00:00:00 2001 From: Hassieb Pakzad <68423100+hassiebp@users.noreply.github.com> Date: Tue, 14 Jan 2025 10:26:35 +0100 Subject: [PATCH] fix(api-models): usage unit to optional --- langfuse/api/resources/commons/types/model.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/langfuse/api/resources/commons/types/model.py b/langfuse/api/resources/commons/types/model.py index 8e9449272..54cb26bc8 100644 --- a/langfuse/api/resources/commons/types/model.py +++ b/langfuse/api/resources/commons/types/model.py @@ -31,7 +31,7 @@ class Model(pydantic_v1.BaseModel): Apply only to generations which are newer than this ISO date. """ - unit: ModelUsageUnit = pydantic_v1.Field() + unit: typing.Optional[ModelUsageUnit] = pydantic_v1.Field(default=None) """ Unit used by this model. """