chore: Remove deprecated score & threshold from prompt injection docs#801
Draft
chore: Remove deprecated score & threshold from prompt injection docs#801
Conversation
…ection docs Agent-Logs-Url: https://github.com/arcjet/arcjet-docs/sessions/416ca157-cbe5-4864-98d2-8e6a7317e34c Co-authored-by: qw-in <19194187+qw-in@users.noreply.github.com>
Copilot created this pull request from a session on behalf of
qw-in
April 7, 2026 16:06
View session
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this comment.
Pull request overview
This PR updates the prompt injection detection documentation to reflect the deprecation of score/threshold, clarifying that Arcjet now makes ALLOW/DENY decisions automatically.
Changes:
- Replaces “scores/scoring” language with “analyzes/analysis” across prompt injection intro and “how it works” sections.
- Removes
thresholdreferences from framework code snippets (Next.js, Flask, FastAPI). - Replaces threshold-focused configuration guidance with
detectPromptInjectionMessage+mode, and adds deprecation callouts.
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| src/snippets/ai-protection/prompt-injection/python-flask/Example.py | Removes deprecated threshold snippet and updates comment wording to “check” vs “score”. |
| src/snippets/ai-protection/prompt-injection/python-fastapi/Example.py | Removes deprecated threshold snippet and updates comment wording to “check” vs “score”. |
| src/snippets/ai-protection/prompt-injection/nextjs/ChatRoute.ts | Removes deprecated threshold comment from detectPromptInjection config example. |
| src/content/docs/prompt-injection/quick-start.mdx | Updates intro prose from “scores” to “analyzes”. |
| src/content/docs/prompt-injection/index.mdx | Updates “how it works” flow to analysis + ALLOW/DENY decision, removes threshold section, adds deprecation note. |
| src/content/docs/ai-protection/prompt-injection.mdx | Removes threshold config docs, updates detectPromptInjectionMessage language, adds deprecation note. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
…reenshots Agent-Logs-Url: https://github.com/arcjet/arcjet-docs/sessions/84db74f6-df02-45db-a1f8-5d6315c059fc Co-authored-by: qw-in <19194187+qw-in@users.noreply.github.com>
davidmytton
reviewed
Apr 7, 2026
davidmytton
approved these changes
Apr 7, 2026
Agent-Logs-Url: https://github.com/arcjet/arcjet-docs/sessions/40f1312d-2844-42df-b550-b7d137db00ab Co-authored-by: qw-in <19194187+qw-in@users.noreply.github.com>
Co-authored-by: qw-in <19194187+qw-in@users.noreply.github.com>
Co-authored-by: qw-in <19194187+qw-in@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.