@php $example_prompts = collect([ ['name' => 'Transcribe my class notes', 'prompt' => 'Transcribe my class notes'], ['name' => 'Morning Productivity Plan', 'prompt' => 'Morning Productivity Plan'], ['name' => 'Cold Email', 'prompt' => 'Cold Email'], ['name' => 'Newsletter', 'prompt' => 'Newsletter'], ['name' => 'Summarize', 'prompt' => 'Summarize'], ['name' => 'Study Vocabulary', 'prompt' => 'Study Vocabulary'], ['name' => 'Create a workout plan', 'prompt' => 'Create a workout plan'], ['name' => 'Translate This Book', 'prompt' => 'Translate This Book'], ['name' => 'Generate a cute panda image', 'prompt' => 'Generate a cute panda image'], ['name' => 'Plan a 3 day trip to Rome', 'prompt' => 'Plan a 3 day trip to Rome'], ['name' => 'Pick an outfit', 'prompt' => 'Pick an outfit'], ['name' => 'How can I learn coding?', 'prompt' => 'How can I learn coding?'], ['name' => 'Experience Tokyo', 'prompt' => 'Experience Tokyo'], ['name' => 'Create a 4 course menu', 'prompt' => 'Create a 4 course menu'], ['name' => 'Help me write a story', 'prompt' => 'Help me write a story'], ['name' => 'Translate', 'prompt' => 'Translate'], ]) ->map(fn($item) => (object) $item) ->toArray(); $example_prompts_json = json_encode($example_prompts, JSON_THROW_ON_ERROR); @endphp @extends('panel.layout.settings') @section('title', __('AI Chat Pro Settings')) @section('titlebar_actions', '') @section('additional_css') @endsection @section('settings')
@csrf @if(setting('default_ai_engine') === \App\Domains\Engine\Enums\EngineEnum::OPEN_AI->slug()) {{-- --}} {{-- --}} @else @lang('AI Chat Pro features are only available for OpenAI models. Please select OpenAI as the default engine from the settings page to activate these features.') @endif @includeIf('multi-model::settings') @includeIf('chat-pro-temp-chat::settings.allow-button') @includeIf('canvas::settings') @includeIf('ai-chat-pro-file-chat::settings.allow-button')

@lang('If you want to make AI Chat Pro as a separate menu option choose menu option, and if you want \'AI Chat\' to be in pro edition then choose AI Chat option. If you want both then choose both option.')

@lang('Select which screen should open by default when AI Chat Pro is launched.')

@lang('This is the daily message limit count for unlogged in users.')

@forelse(json_decode(setting('ai_chat_pro_suggestions', $example_prompts_json), false, 512, JSON_THROW_ON_ERROR) as $suggestion) {{ $suggestion?->prompt }} @empty @endforelse
@endsection @push('script') @endpush