@php $test_commands = ['Explain an Image', 'Summarize a book for research', 'Translate a book']; $disable_actions = $app_is_demo && (isset($category) && ($category->slug == 'ai_vision' || $category->slug == 'ai_pdf' || $category->slug == 'ai_chat_image')); $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); $example_prompts = json_decode(setting('ai_chat_pro_suggestions', $example_prompts_json), false, 512, JSON_THROW_ON_ERROR); @endphp
@if (view()->hasSection('chat_head')) @yield('chat_head') @else @include('panel.user.openai_chat.components.chat_head') @endif
$category->slug != 'ai_vision', ])>
$category->slug == 'ai_vision', 'h-full' => $category->slug != 'ai_vision', ])> @if (view()->hasSection('chat_area')) @yield('chat_area') @else @include('panel.user.openai_chat.components.chat_area') @endif @if ($category->slug == 'ai_vision' && ((isset($lastThreeMessage) && $lastThreeMessage->count() == 0) || !isset($lastThreeMessage)))
{{ __('Upload an image and ask me anything') }}
@foreach ($test_commands as $command) {{ __($command) }} @endforeach
@endif
@if ($category->slug == 'ai_vision' && ((isset($lastThreeMessage) && $lastThreeMessage->count() == 0) || !isset($lastThreeMessage)))
@endif
{{-- @if ($category->slug == 'ai_realtime_voice_chat') @includeIf('openai-realtime-chat::chat-button', ['compact' => false, 'category_slug' => $category->slug, 'messages' => $chat->messages]) @endif --}} @if (setting('realtime_voice_chat', 0)) @endif @if (view()->hasSection('chat_form')) @yield('chat_form') @else @include('ai-chat-pro::includes.chat_form') @endif