Skip to content

Commit a416dab

Browse files
ergunshDevtools-frontend LUCI CQ
authored andcommitted
[FreestylerEval] Use current_message for request input
After changing the request shape we send, we needed to update eval UI to use the new structure. Bug: none Change-Id: Ie19fa03d9ec521a36de18cfb1643c0b8166bf27e Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6063637 Commit-Queue: Alex Rudenko <[email protected]> Reviewed-by: Alex Rudenko <[email protected]> Auto-Submit: Ergün Erdoğmuş <[email protected]> Commit-Queue: Ergün Erdoğmuş <[email protected]>
1 parent 9ccbf7c commit a416dab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/freestyler/eval/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ const API = {
155155
const examplesMap = {};
156156
for (const example of examples) {
157157
const exampleId = example.exampleId;
158-
const request = example.request.input;
158+
const request = example.request.input || example.request.current_message.parts[0].text;
159159
const response = example.response;
160160
if (!examplesMap[exampleId]) {
161161
examplesMap[exampleId] = [];

0 commit comments

Comments
 (0)