ScottLogic / prompt-injection

Application which investigates defensive measures against prompt injection attacks on an LLM, with a focus on the exposure of external tools.
MIT License
13 stars 9 forks source link

Streamline frontend change level network calls 🛠🛠🛠 #824

Closed pmarsh-scottlogic closed 4 months ago

pmarsh-scottlogic commented 5 months ago

Here's what happens when I change from sandbox to level 1:

These three are also called when you refresh.

🔧 These should be combined.

AC:

GIVEN frontend in preview mode (so that react doesn't do its double render thing) npm run preview WHEN the user changes from one level to another (check specifically switching in and out of sandbox) THEN there should be only one api call made of type fetch

Here's how you quickly find out in Chrome what api calls are being made that are fetch type. Note that the CombinedFonts call is of type xhr, therefore we ignore it.

image