Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions langfuse/api/resources/commons/types/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,14 @@ class Model(pydantic_v1.BaseModel):
Regex pattern which matches this model definition to generation.model. Useful in case of fine-tuned models. If you want to exact match, use `(?i)^modelname$`
"""

start_date: typing.Optional[dt.date] = pydantic_v1.Field(
start_date: typing.Optional[dt.datetime] = pydantic_v1.Field(
alias="startDate", default=None
)
"""
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.
"""
Comment on lines +34 to 37
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

logic: Making unit optional may affect cost calculations if code assumes unit is always present. Ensure all consumers handle None case.

Expand Down