Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

enhance(ai-help): add model to issue reports #10925

Merged
merged 2 commits into from
Apr 15, 2024

Conversation

caugner
Copy link
Contributor

@caugner caugner commented Apr 15, 2024

Summary

(MP-1037)

Problem

When users report issues with AI Help answers, we don't know if these answers were generated by GPT-3.5 or GPT-4.

Solution

Add a parameter to the issue template links to record the used model.


How did you test this change?

Verified locally by running yari alongside rumba and clicking on the issue report link, both with a free user and a paying subscriber, and observed the field to be pre-filled with "gpt-3.5" and "gpt-4" respectively.

@caugner caugner requested a review from a team as a code owner April 15, 2024 15:03
@github-actions github-actions bot added plus work around features related to MDN Plus plus:ai-help labels Apr 15, 2024
Comment on lines +1086 to +1087
const user = useUserData();
const isSubscriber = useMemo(() => isPlusSubscriber(user), [user]);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mirrored from here:

const user = useUserData();
const isSubscriber = useMemo(() => isPlusSubscriber(user), [user]);

As `[].join("\n")` is never `null`, this wasn't working so far.
@@ -1105,8 +1108,10 @@ function ReportIssueOnGitHubLink({
(source) =>
`- [${source.title}](https://developer.mozilla.org${source.url})`
)
.join("\n") ?? "(None)"
.join("\n") || "(None)"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Related bug fix.

@caugner caugner merged commit 3765a90 into main Apr 15, 2024
15 checks passed
@caugner caugner deleted the MP-1037-record-model-in-ai-feedback-issues branch April 15, 2024 16:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
plus:ai-help plus work around features related to MDN Plus
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants