PHP Classes

File: config/ai-validation.php

Recommend this page to a friend!
  Classes of Naif Alshaye   ChatGPT Laravel Validation for Form Inputs   config/ai-validation.php   Download  
File: config/ai-validation.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: ChatGPT Laravel Validation for Form Inputs
Validate form inputs using artificial intelligence
Author: By
Last change:
Date: 6 months ago
Size: 488 bytes
 

Contents

Class file image Download
<?php

return [
   
'chatgpt_api_endpoint' => env('CHATGPT_API_ENDPOINT', 'https://api.openai.com/v1/chat/completions'),
   
'chatgpt_api_key' => env('CHATGPT_API_KEY', ''),

   
'validation_types' => [
       
'spam',
       
'nonsense',
       
'botcheck',
       
'emoji_overuse',
       
'promotional',
       
'ads',
       
'swearing',
       
'hate_speech',
       
'political_bias',
       
'adult_content',
       
'secure',
       
'phishing',
       
'personal_info',
    ]
];