PromptGuardians
PromptGuardians · GPT Actions
Prompt Guardian
This API uses GPT-4 to analyze prompts for potential security risks and to ensure that no sensitive information is inadvertently disclosed.
POST /analyze-promptanalyzePromptAnalyzes the provided prompt to determine if it contains requests for sensitive actions or information.
原始 API 定义
{
"openapi": "3.1.0",
"info": {
"title": "Prompt Guardian",
"description": "This API uses GPT-4 to analyze prompts for potential security risks and to ensure that no sensitive information is inadvertently disclosed.",
"version": "1.0.0"
},
"servers": [
{
"url": "https://prompt-guardian.replit.app"
}
],
"paths": {
"/analyze-prompt": {
"post": {
"description": "Analyzes the provided prompt to determine if it contains requests for sensitive actions or information.",
"operationId": "analyzePrompt",
"requestBody": {
"description": "Payload containing the prompt to be analyzed",
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"prompt": {
"type": "string",
"description": "The user's prompt to analyze for potential security risks."
}
},
"required": [
"prompt"
]
}
}
}
},
"responses": {
"200": {
"description": "Analysis complete, returns whether the prompt is safe or potentially malicious.",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"message": {
"type": "string",
"description": "The result of the analysis; either a confirmation of safety or a denial to process the request."
}
}
}
}
}
},
"400": {
"description": "Invalid request when prompt is missing",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"error": {
"type": "string",
"description": "Error message explaining why the request is invalid."
}
}
}
}
}
},
"500": {
"description": "Internal server error when there is a processing error",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"error": {
"type": "string",
"description": "Error message explaining the internal error."
}
}
}
}
}
}
}
}
}
}
}