File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change 19
19
from optimizely .helpers .enums import Errors
20
20
from optimizely .exceptions import CmabFetchError , CmabInvalidResponseError
21
21
22
- # CMAB_PREDICTION_ENDPOINT is the endpoint for CMAB predictions
23
- CMAB_PREDICTION_ENDPOINT = "https://prediction.cmab.optimizely.com/predict/%s"
24
-
25
22
# Default constants for CMAB requests
26
23
DEFAULT_MAX_RETRIES = 3
27
24
DEFAULT_INITIAL_BACKOFF = 0.1 # in seconds (100 ms)
@@ -87,7 +84,7 @@ def fetch_decision(
87
84
Returns:
88
85
str: The variation ID.
89
86
"""
90
- url = CMAB_PREDICTION_ENDPOINT % rule_id
87
+ url = f"https://prediction.cmab.optimizely.com/predict/ { rule_id } "
91
88
cmab_attributes = [
92
89
{"id" : key , "value" : value , "type" : "custom_attribute" }
93
90
for key , value in attributes .items ()
You can’t perform that action at this time.
0 commit comments