@php $creativity_levels = [ '0.25' => 'Economic', '0.5' => 'Average', '0.75' => 'Good', '1' => 'Premium', ]; $voice_tones = ['Professional', 'Funny', 'Casual', 'Excited', 'Witty', 'Sarcastic', 'Feminine', 'Masculine', 'Bold', 'Dramatic', 'Grumpy', 'Secretive', 'other']; $youtube_actions = [ 'blog' => 'Prepare a Blog Post', 'short' => 'Explain the Main Idea', 'list' => 'Create a List', 'tldr' => 'Create TLDR', 'prons_cons' => 'Prepare Pros and Cons', ]; @endphp
@foreach (json_decode($openai->questions) ?? [] as $question)
@php $placeholder = isset($question->description) && !empty($question->description) ? __($question->description) : __($question->question); @endphp @if ($question->type == 'text') @elseif($question->type == 'textarea') @elseif($question->type == 'select') {!! $question->select !!} @elseif($question->type == 'rss_feed') @elseif($question->type == 'url') @endif
@endforeach @if ($openai->type == 'youtube') @foreach ($youtube_actions as $value => $label) @endforeach @include('panel.user.openai.components.countries') @endif @if ($openai->type == 'text' || $openai->type == 'rss') @include('panel.user.openai.components.countries') @if (setting('hide_output_length_option') != 1) @endif @if (setting('hide_creativity_option') != 1) @foreach ($creativity_levels as $creativity => $label) @endforeach @endif @if (setting('hide_tone_of_voice_option') != 1) @foreach ($voice_tones as $tone) @endforeach @endif @endif @if ($models->count() && setting('select_model_option', '0') == '1') @foreach($models as $model) @endforeach @endif {{ __('Generate') }}