@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