Download app/Http/Requests/Chatbot/ChatbotRequest.php from pnacorp/magicai: direct link, hf CLI and curl.
- Browser
- Download file 941 Bytes
-
https://huggingface.co/pnacorp/magicai/resolve/main/app/Http/Requests/Chatbot/ChatbotRequest.php
- Command line
-
hf download hf://pnacorp/magicai/app/Http/Requests/Chatbot/ChatbotRequest.php
-
curl -L -o ChatbotRequest.php https://huggingface.co/pnacorp/magicai/resolve/main/app/Http/Requests/Chatbot/ChatbotRequest.php
941 Bytes
| namespace App\Http\Requests\Chatbot; | |
| use App\Helpers\Classes\Helper; | |
| use Illuminate\Foundation\Http\FormRequest; | |
| class ChatbotRequest extends FormRequest | |
| { | |
| public function rules(): array | |
| { | |
| return [ | |
| 'title' => 'required|string', | |
| // 'role' => 'required|string', | |
| // 'first_message' => 'required|string', | |
| // 'instructions' => 'required|string', | |
| // 'logo' => 'sometimes|nullable|image|mimes:jpeg,png,jpg,gif,svg|max:4096', | |
| // 'width' => 'required|string', | |
| // 'height' => 'required|string', | |
| // 'color' => 'required|string', | |
| 'model' => 'required|string', | |
| ]; | |
| } | |
| protected function prepareForValidation(): void | |
| { | |
| $this->merge([ | |
| 'model' => Helper::setting('openai_default_model'), | |
| ]); | |
| } | |
| } | |