[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 <alexrudenko@chromium.org> Reviewed-by: Alex Rudenko <alexrudenko@chromium.org> Auto-Submit: Ergün Erdoğmuş <ergunsh@chromium.org> Commit-Queue: Ergün Erdoğmuş <ergunsh@chromium.org>
diff --git a/scripts/freestyler/eval/index.js b/scripts/freestyler/eval/index.js index dd3508a..3865cb7 100644 --- a/scripts/freestyler/eval/index.js +++ b/scripts/freestyler/eval/index.js
@@ -155,7 +155,7 @@ const examplesMap = {}; for (const example of examples) { const exampleId = example.exampleId; - const request = example.request.input; + const request = example.request.input || example.request.current_message.parts[0].text; const response = example.response; if (!examplesMap[exampleId]) { examplesMap[exampleId] = [];