Closed Bug 2008658 Opened 28 days ago Closed 23 days ago

Messages array in Chat.sys.mjs is incorrect

Categories

(Core :: Machine Learning: Frontend, defect)

defect

Tracking

()

RESOLVED FIXED
148 Branch
Tracking Status
firefox148 --- fixed

People

(Reporter: omarg, Assigned: omarg)

References

(Blocks 1 open bug)

Details

(Whiteboard: [genai][chat])

Attachments

(2 files, 1 obsolete file)

  • Fix missing role values in assistant messages passed in ChatConversation.getMessagesInOpenAiFormat()
  • Remove previously injected messages and recalculate on each submission
  • Fix tool_calls key to the correct level
Blocks: 2009198
Attachment #9536427 - Attachment is obsolete: true
Pushed by ogonzalez@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/a7adf02cc574 https://hg.mozilla.org/integration/autoland/rev/8a7bad82af50 fixes messages array for OpenAI api format r=tzhang,ai-frontend-reviewers,ai-models-reviewers
Pushed by smolnar@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/3dc471cd51b1 https://hg.mozilla.org/integration/autoland/rev/dcbd28585876 Revert "Bug 2008658 - fixes messages array for OpenAI api format r=tzhang,ai-frontend-reviewers,ai-models-reviewers" for causing xpc failures @ test_Tools_GetOpenTabs.js

I am commenting out the failed assertions and noting the changes in Bug 2009194 where the issue for these failures is being fixed.

Flags: needinfo?(ogonzalez)
Attachment #9536425 - Attachment description: Bug 2008658 - fixes messages array for OpenAI api format r=tzhang,bjohns → Bug 2008658 - fixes messages array for OpenAI api format r=tzhang,ai-frontend-reviewers,ai-models-reviewers
Pushed by ogonzalez@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/f30a4105039d https://hg.mozilla.org/integration/autoland/rev/bd13b8fd9287 fixes messages array for OpenAI api format r=tzhang,ai-frontend-reviewers,ai-models-reviewers
Status: NEW → RESOLVED
Closed: 23 days ago
Resolution: --- → FIXED
Target Milestone: --- → 148 Branch
QA Whiteboard: [qa-triage-done-c149/b148]

A patch has been attached on this bug, which was already closed. Filing a separate bug will ensure better tracking. If this was not by mistake and further action is needed, please alert the appropriate party. (Or: if the patch doesn't change behavior -- e.g. landing a test case, or fixing a typo -- then feel free to disregard this message)

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: