Closed Bug 2008865 Opened 8 months ago Closed 7 months ago

[Ai Window] Switch system prompt to be loaded from remote settings (engine class' `loadPrompt(feature)`)

Categories

(Core :: Machine Learning: General, task)

task

Tracking

()

RESOLVED DUPLICATE of bug 2012830

People

(Reporter: tzhang, Assigned: omarg)

References

Details

(Whiteboard: [genai][chat])

Attachments

(1 obsolete file)

Linked to https://bugzilla.mozilla.org/show_bug.cgi?id=2005766, when initializing the engine class, the remote settings config including system prompt will be loaded and the engine exposes a method loadPrompt(feature) to access the prompt with local fallback.

The ChatConversation class is outside of the engine class, but we need async generatePrompt(prompt, pageUrl) to be able to use the system prompt in the engine instance after initialization.

Summary: [Ai Window] Switch system to be loaded from remote settings (engine class' `loadPrompt(feature)`) → [Ai Window] Switch system prompt to be loaded from remote settings (engine class' `loadPrompt(feature)`)

One option is for ChatConversation to have attribute of the engine class, and then in fetchWithHistory(conversation), we access the engine via conversation.engine.

Attachment #9540112 - Attachment is obsolete: true
Status: ASSIGNED → RESOLVED
Closed: 7 months ago
Duplicate of bug: 2012830
Resolution: --- → DUPLICATE

Being fixed as part of changes in https://bugzilla.mozilla.org/show_bug.cgi?id=2012830

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

Attachment

General

Creator:
Created:
Updated:
Size: