First Commit

This commit is contained in:
marco
2026-09-01 09:22:30 -03:00
commit a43ae23eb4
407 changed files with 36138 additions and 0 deletions
@@ -0,0 +1,34 @@
<?php
declare(strict_types=1);
namespace App\Http\Requests\PromptGeneration;
use Illuminate\Foundation\Http\FormRequest;
class GeneratePromptRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*/
public function authorize(): bool
{
return true;
}
/**
* Get the validation rules that apply to the request.
*
* @return array<string, \Illuminate\Contracts\Validation\ValidationRule|array<mixed>|string>
*/
public function rules(): array
{
return [
'project_id' => ['required', 'exists:prompt_projects,id'],
'provider_id' => ['required', 'exists:ai_providers,id'],
'model_id' => ['required', 'exists:ai_models,id'],
'temperature' => ['nullable', 'numeric', 'min:0', 'max:1'],
'max_tokens' => ['nullable', 'integer', 'min:1'],
];
}
}