Skip to content
Merged
Show file tree
Hide file tree
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/categorical_score.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@


class CategoricalScore(BaseScore):
value: typing.Optional[float] = pydantic_v1.Field(default=None)
value: float = pydantic_v1.Field()
"""
Only defined if a config is linked. Represents the numeric category mapping of the stringValue
Represents the numeric category mapping of the stringValue. If no config is linked, defaults to 0.
"""

string_value: str = pydantic_v1.Field(alias="stringValue")
Expand Down
4 changes: 2 additions & 2 deletions langfuse/api/resources/commons/types/categorical_score_v_1.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@


class CategoricalScoreV1(BaseScoreV1):
value: typing.Optional[float] = pydantic_v1.Field(default=None)
value: float = pydantic_v1.Field()
"""
Only defined if a config is linked. Represents the numeric category mapping of the stringValue
Represents the numeric category mapping of the stringValue. If no config is linked, defaults to 0.
"""

string_value: str = pydantic_v1.Field(alias="stringValue")
Expand Down
2 changes: 1 addition & 1 deletion langfuse/api/resources/commons/types/score.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ class Config:


class Score_Categorical(pydantic_v1.BaseModel):
value: typing.Optional[float] = None
value: float
string_value: str = pydantic_v1.Field(alias="stringValue")
id: str
trace_id: typing.Optional[str] = pydantic_v1.Field(alias="traceId", default=None)
Expand Down
2 changes: 1 addition & 1 deletion langfuse/api/resources/commons/types/score_v_1.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ class Config:


class ScoreV1_Categorical(pydantic_v1.BaseModel):
value: typing.Optional[float] = None
value: float
string_value: str = pydantic_v1.Field(alias="stringValue")
id: str
trace_id: str = pydantic_v1.Field(alias="traceId")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ class Config:

class GetScoresResponseData_Categorical(pydantic_v1.BaseModel):
trace: typing.Optional[GetScoresResponseTraceData] = None
value: typing.Optional[float] = None
value: float
string_value: str = pydantic_v1.Field(alias="stringValue")
id: str
trace_id: typing.Optional[str] = pydantic_v1.Field(alias="traceId", default=None)
Expand Down