Skip to content

Commit ab5cc3f

Browse files
algolia-botraed667Fluf22
committed
fix(specs): remove baseRecommendRequest from trendingFacets [CR-10264] (generated)
algolia/api-clients-automation#5858 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Raed <[email protected]> Co-authored-by: Thomas Raffray <[email protected]>
1 parent 1708361 commit ab5cc3f

1 file changed

Lines changed: 0 additions & 16 deletions

File tree

algoliasearch/recommend/models/trending_facets_query.py

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,14 @@
1818
from typing_extensions import Self
1919

2020

21-
from algoliasearch.recommend.models.fallback_params import FallbackParams
22-
from algoliasearch.recommend.models.recommend_search_params import RecommendSearchParams
2321
from algoliasearch.recommend.models.trending_facets_model import TrendingFacetsModel
2422

2523
_ALIASES = {
2624
"index_name": "indexName",
2725
"threshold": "threshold",
2826
"max_recommendations": "maxRecommendations",
29-
"query_parameters": "queryParameters",
3027
"facet_name": "facetName",
3128
"model": "model",
32-
"fallback_parameters": "fallbackParameters",
3329
}
3430

3531

@@ -48,11 +44,9 @@ class TrendingFacetsQuery(BaseModel):
4844
""" Minimum score a recommendation must have to be included in the response. """
4945
max_recommendations: Optional[int] = None
5046
""" Maximum number of recommendations to retrieve. By default, all recommendations are returned and no fallback request is made. Depending on the available recommendations and the other request parameters, the actual number of recommendations may be lower than this value. """
51-
query_parameters: Optional[RecommendSearchParams] = None
5247
facet_name: str
5348
""" Facet attribute for which to retrieve trending facet values. """
5449
model: TrendingFacetsModel
55-
fallback_parameters: Optional[FallbackParams] = None
5650

5751
model_config = ConfigDict(
5852
strict=False,
@@ -89,16 +83,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
8983
if not isinstance(obj, dict):
9084
return cls.model_validate(obj)
9185

92-
obj["queryParameters"] = (
93-
RecommendSearchParams.from_dict(obj["queryParameters"])
94-
if obj.get("queryParameters") is not None
95-
else None
96-
)
9786
obj["model"] = obj.get("model")
98-
obj["fallbackParameters"] = (
99-
FallbackParams.from_dict(obj["fallbackParameters"])
100-
if obj.get("fallbackParameters") is not None
101-
else None
102-
)
10387

10488
return cls.model_validate(obj)

0 commit comments

Comments
 (0)