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 1919from optimizely .helpers .enums import Errors
2020from optimizely .exceptions import CmabFetchError , CmabInvalidResponseError
2121
22- # CMAB_PREDICTION_ENDPOINT is the endpoint for CMAB predictions
23- CMAB_PREDICTION_ENDPOINT = "https://prediction.cmab.optimizely.com/predict/%s"
24-
2522# Default constants for CMAB requests
2623DEFAULT_MAX_RETRIES = 3
2724DEFAULT_INITIAL_BACKOFF = 0.1 # in seconds (100 ms)
@@ -87,7 +84,7 @@ def fetch_decision(
8784 Returns:
8885 str: The variation ID.
8986 """
90- url = CMAB_PREDICTION_ENDPOINT % rule_id
87+ url = f"https://prediction.cmab.optimizely.com/predict/ { rule_id } "
9188 cmab_attributes = [
9289 {"id" : key , "value" : value , "type" : "custom_attribute" }
9390 for key , value in attributes .items ()
You can’t perform that action at this time.
0 commit comments