Skip to content

Commit

Permalink
fix(specs): recommend is optional (generated)
Browse files Browse the repository at this point in the history
algolia/api-clients-automation#3967

Co-authored-by: algolia-bot <accounts+algolia-api-client-bot@algolia.com>
  • Loading branch information
algolia-bot committed Oct 14, 2024
1 parent 1896c7f commit d580e74
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion algoliasearch/recommend/models/recommend_hit.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class RecommendHit(BaseModel):
""" Snippets that show the context around a matching search query. """
ranking_info: Optional[RankingInfo] = None
distinct_seq_id: Optional[int] = None
score: float
score: Optional[float] = None
""" Recommendation score. """

model_config = ConfigDict(
Expand Down
2 changes: 1 addition & 1 deletion algoliasearch/recommend/models/trending_facet_hit.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class TrendingFacetHit(BaseModel):
Trending facet hit.
"""

score: float
score: Optional[float] = None
""" Recommendation score. """
facet_name: str
""" Facet attribute. To be used in combination with `facetValue`. If specified, only recommendations matching the facet filter will be returned. """
Expand Down

0 comments on commit d580e74

Please sign in to comment.