Skip to content

Commit

Permalink
add throttle_cache_multiplier with value 2.0 to prevent the 429 error…
Browse files Browse the repository at this point in the history
… of wca model calls
  • Loading branch information
mabulgu committed Feb 13, 2025
1 parent a5991aa commit 4b00132
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ansible_ai_connect/ai/api/wca/model_id_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@
class WCAModelIdView(RetrieveAPIView, CreateAPIView):
required_scopes = ["read", "write"]
throttle_cache_key_suffix = "_wca_model_id"
throttle_cache_multiplier = 2.0
permission_classes = PERMISSION_CLASSES

@extend_schema(
Expand Down

0 comments on commit 4b00132

Please sign in to comment.