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

fix(atomic): make sure to escape any HTML generated by the AI model #4100

Merged
merged 5 commits into from
Jul 4, 2024

Conversation

lbergeron
Copy link
Contributor

@lbergeron lbergeron commented Jun 17, 2024

SVCC-3883

An issue was reported where the AI model would generate an answer containing HTML elements (as examples). For instance, the generated answer would only contain an opening tag. The HTML element was not escaped and prevented the answer from being entirely displayed.

This PR fixes the issue by escaping any HTML coming from the AI model.

@developer-experience-bot
Copy link
Contributor

developer-experience-bot bot commented Jun 17, 2024

Pull Request Report

PR Title

✅ Title follows the conventional commit spec.

Live demo links

Bundle Size

File Old (kb) New (kb) Change (%)
case-assist 205.9 205.9 0
commerce 299.8 299.8 0
search 374.7 374.7 0
insight 354.9 354.9 0
product-listing 267.4 267.4 0
product-recommendation 172.1 172.1 0
recommendation 218.9 218.9 0
ssr 367.3 367.3 0

SSR Progress

Use case SSR (#) CSR (#) Progress (%)
search 39 44 89
recommendation 0 4 0
product-recommendation 0 10 0
product-listing 0 13 0
case-assist 0 6 0
insight 0 27 0
commerce 0 15 0
Detailed logs search : buildInteractiveResult
search : buildInteractiveInstantResult
search : buildInteractiveRecentResult
search : buildInteractiveCitation
search : buildGeneratedAnswer
recommendation : missing SSR support
product-recommendation : missing SSR support
product-listing : missing SSR support
case-assist : missing SSR support
insight : missing SSR support
commerce : missing SSR support

@lbergeron lbergeron added this pull request to the merge queue Jun 19, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jun 19, 2024
@lbergeron lbergeron added this pull request to the merge queue Jun 20, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jun 20, 2024
@lbergeron lbergeron enabled auto-merge July 3, 2024 17:50
@lbergeron lbergeron added this pull request to the merge queue Jul 3, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to Branch Protection failures Jul 3, 2024
You're not authorized to push to this branch. Visit "About protected branches" for more information.
@lbergeron lbergeron enabled auto-merge July 3, 2024 18:56
@lbergeron lbergeron added this pull request to the merge queue Jul 4, 2024
Merged via the queue into master with commit 18d9646 Jul 4, 2024
86 of 87 checks passed
@lbergeron lbergeron deleted the fix/SVCC-3883 branch July 4, 2024 17:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants