Skip to content

Commit

Permalink
message content field as to camel case field (#221)
Browse files Browse the repository at this point in the history
  • Loading branch information
dtria91 authored Dec 19, 2024
1 parent 50832ac commit ebea477
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions api/app/models/metrics/model_quality_dto.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,8 @@ class TokenData(BaseModel):
message_content: str
probs: List[TokenProb]

model_config = ConfigDict(populate_by_name=True, alias_generator=to_camel)


class MeanPerFile(BaseModel):
prob_tot_mean: float
Expand Down
2 changes: 2 additions & 0 deletions sdk/radicalbit_platform_sdk/models/dataset_model_quality.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,8 @@ class TokenData(BaseModel):
message_content: str
probs: List[TokenProb]

model_config = ConfigDict(populate_by_name=True, alias_generator=to_camel)


class MeanPerFile(BaseModel):
prob_tot_mean: float
Expand Down

0 comments on commit ebea477

Please sign in to comment.