Skip to content

Commit fe98440

Browse files
Liviu RauDevtools-frontend LUCI CQ
authored andcommitted
Role should be 'user' for content specified by the client
This change leads to much more detailed answers in Performance panel. Bug: 498941727 Change-Id: Iea42219c9f930a44f671547564f97e269dde37b0 Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/7736550 Commit-Queue: Jack Franklin <jacktfranklin@chromium.org> Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
1 parent 5e628fd commit fe98440

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

front_end/core/host/AidaGcaTranslation.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ describe('AidaGcaTranslation', () => {
143143

144144
const expectedGcaRequest = createGcaRequest('chat_console_insights', {
145145
contents: [
146-
{role: 'model', parts: [{text: '[source: src1] Fact 1'}, {text: '[source: src2] Fact 2'}]},
146+
{role: 'user', parts: [{text: '[source: src1] Fact 1'}, {text: '[source: src2] Fact 2'}]},
147147
{role: 'user', parts: [{text: 'Hello'}]},
148148
],
149149
});

front_end/core/host/AidaGcaTranslation.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ function gcaCandidateToAidaGenerationSample(candidate: GCA.Candidate): AIDA.Gene
360360

361361
function convertAidaFactsToGcaContent(facts: AIDA.RequestFact[]): GCA.Content {
362362
return {
363-
role: 'model',
363+
role: 'user',
364364
parts: facts.map(fact => {
365365
return {text: `[source: ${fact.metadata.source}] ${fact.text}`};
366366
}),

0 commit comments

Comments
 (0)