Skip to content

Commit 76077d2

Browse files
aseembits93Saga4
authored andcommitted
Update cfapi.py
1 parent 281c8a8 commit 76077d2

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

codeflash/api/cfapi.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ def suggest_changes(
156156
"coverage_message": coverage_message,
157157
"replayTests": replay_tests,
158158
"concolicTests": concolic_tests,
159-
"optimization_impact": optimization_impact,
159+
"optimizationImpact": optimization_impact,
160160
}
161161
return make_cfapi_request(endpoint="/suggest-pr-changes", method="POST", payload=payload)
162162

@@ -173,7 +173,6 @@ def create_pr(
173173
coverage_message: str,
174174
replay_tests: str = "",
175175
concolic_tests: str = "",
176-
optimization_impact: str = "",
177176
) -> Response:
178177
"""Create a pull request, targeting the specified branch. (usually 'main').
179178
@@ -198,7 +197,6 @@ def create_pr(
198197
"coverage_message": coverage_message,
199198
"replayTests": replay_tests,
200199
"concolicTests": concolic_tests,
201-
"optimization_impact": optimization_impact,
202200
}
203201
return make_cfapi_request(endpoint="/create-pr", method="POST", payload=payload)
204202

@@ -214,7 +212,6 @@ def create_staging(
214212
replay_tests: str,
215213
concolic_tests: str,
216214
root_dir: Path,
217-
optimization_impact: str = "",
218215
) -> Response:
219216
"""Create a staging pull request, targeting the specified branch. (usually 'staging').
220217
@@ -255,7 +252,6 @@ def create_staging(
255252
"coverage_message": coverage_message,
256253
"replayTests": replay_tests,
257254
"concolicTests": concolic_tests,
258-
"optimization_impact": optimization_impact,
259255
}
260256

261257
return make_cfapi_request(endpoint="/create-staging", method="POST", payload=payload)

0 commit comments

Comments
 (0)