@extends('chatgpt::layouts.master') @section('content')

ChatGPT API Settings

Store the OpenAI API key used by the module command. Keys are encrypted at rest by Laravel.

php artisan chatgpt:delete-api-files
@if (session('status'))
{{ session('status') }}
@endif @if ($errors->any())
Unable to save the API key.
@endif

Create API Key

@csrf

Stored API Keys

@forelse ($settings as $setting) @empty @endforelse
Data table
Name Key Active Updated Actions
@csrf @method('PUT')
{{ $setting->maskedApiKey() }} @if ($setting->is_active) Yes @else No @endif {{ $setting->updated_at?->format('d M Y H:i') }}
@csrf @method('DELETE')
No API keys have been stored yet.
@endsection