29 lines
728 B
Markdown
29 lines
728 B
Markdown
# 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:
|
|
|
|
```bash
|
|
php artisan chatgpt:delete-api-files --dry-run
|
|
```
|
|
|
|
Delete all OpenAI API files without interactive confirmation:
|
|
|
|
```bash
|
|
php artisan chatgpt:delete-api-files
|
|
```
|
|
|
|
## Security
|
|
|
|
API keys are encrypted at rest using Laravel's encrypted Eloquent cast and the application `APP_KEY`.
|