Skip to content

Commit 0703b5a

Browse files
authored
fix(api-models): usage unit to optional (#1073)
1 parent f74efc9 commit 0703b5a

File tree

1 file changed

+1
-1
lines changed
  • langfuse/api/resources/commons/types

1 file changed

+1
-1
lines changed

langfuse/api/resources/commons/types/model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class Model(pydantic_v1.BaseModel):
3131
Apply only to generations which are newer than this ISO date.
3232
"""
3333

34-
unit: ModelUsageUnit = pydantic_v1.Field()
34+
unit: typing.Optional[ModelUsageUnit] = pydantic_v1.Field(default=None)
3535
"""
3636
Unit used by this model.
3737
"""

0 commit comments

Comments
 (0)