Files
WMS/Modules/ChatGPT
..

ChatGPT Module

Provides encrypted OpenAI API key storage and an Artisan command for deleting all OpenAI API files visible to the active stored key.

Routes

  • GET /chatgpt - manage stored API keys.
  • POST /chatgpt/settings - create a stored API key.
  • PUT /chatgpt/settings/{setting} - update an API key setting.
  • DELETE /chatgpt/settings/{setting} - delete an API key setting.

Commands

Preview files without deleting:

php artisan chatgpt:delete-api-files --dry-run

Delete all OpenAI API files without interactive confirmation:

php artisan chatgpt:delete-api-files

Security

API keys are encrypted at rest using Laravel's encrypted Eloquent cast and the application APP_KEY.