Yes, that definitely is an option but still would take a bit of extra time added as the detection call would take up some time as it is executed sequentially before continuing the response. My aim, experimentally, was to accomplish everything in real time with no delay. This approach of course gives up on accuracy as both calls have to be similar in nature. If the regular response is objectionable while the detection call is not then the idea presented here will fail.
Memoai
6
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| The Prompt-Defender Initiative: Advancing GPT Safety Standards | 3 | 2432 | May 22, 2024 | |
| Challenge: Hack this prompt! | 15 | 6048 | December 28, 2025 | |
| How to prevent malicious questions / jailbreak prompts / prompt injection attacks when using API GPT3.5 | 6 | 5086 | December 28, 2025 | |
| What are the latest strategies for prevening prompt leaks? | 14 | 4972 | June 17, 2024 | |
| How to prevent API prompt from being incorrectly flagged as violating OpenAI's policy? | 3 | 323 | December 28, 2025 |