File tree Expand file tree Collapse file tree 2 files changed +14
-1
lines changed
Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change 949949 flags = FLAG_AUTOMATOR_MODIFIABLE ,
950950)
951951
952+ # Rollout rate to route issue summary requests to the summarization URL
953+ register (
954+ "issues.summary.summarization-url-rollout-rate" ,
955+ type = Float ,
956+ default = 0.0 ,
957+ flags = FLAG_AUTOMATOR_MODIFIABLE ,
958+ )
959+
952960register (
953961 "issues.priority.projects-allowlist" ,
954962 type = Sequence ,
Original file line number Diff line number Diff line change @@ -161,8 +161,13 @@ def _call_seer(
161161 option = orjson .OPT_NON_STR_KEYS ,
162162 )
163163
164+ url = settings .SEER_AUTOFIX_URL
165+ # Route to summarization URL based on rollout rate
166+ if in_random_rollout ("issues.summary.summarization-url-rollout-rate" ):
167+ url = settings .SEER_SUMMARIZATION_URL
168+
164169 response = requests .post (
165- f"{ settings . SEER_AUTOFIX_URL } { path } " ,
170+ f"{ url } { path } " ,
166171 data = body ,
167172 headers = {
168173 "content-type" : "application/json;charset=utf-8" ,
You can’t perform that action at this time.
0 commit comments