feat: add legal document acceptance and standard project files generation
Implement legal document acceptance tracking requiring users to accept terms of service and privacy policy before continuing to use the system. Add automatic generation of standard project files (LICENSE, README.md, RULES.md, cookies.html, termos-de-uso.html, privacidade.html) with download functionality. Enhance prompt building with detailed Portuguese instructions and system requirements. Update seeders with comprehensive legal content and standard files configuration for all prompt templates.
This commit is contained in:
@@ -58,6 +58,10 @@ class PromptTemplateController extends Controller
|
||||
$data['template_data'] = json_decode($data['template_data'], true);
|
||||
}
|
||||
|
||||
if (!isset($data['template_data']['standard_files'])) {
|
||||
$data['template_data']['standard_files'] = true;
|
||||
}
|
||||
|
||||
$this->promptTemplateService->store($data);
|
||||
|
||||
return redirect()->route('prompt-templates.index')
|
||||
@@ -131,6 +135,7 @@ class PromptTemplateController extends Controller
|
||||
'variables' => $data['variables'] ?? '',
|
||||
'temperature' => $data['temperature'] ?? 0.7,
|
||||
'max_tokens' => $data['max_tokens'] ?? 1024,
|
||||
'standard_files' => $data['standard_files'] ?? true,
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user