Initial baseline: LaraBlog core with plugin commerce surface.
Captures the current working tree after theme slots, ArticleAccess, and the payment / paid-content plugins so subsequent work has a reviewable git history.
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Domain\Ai;
|
||||
|
||||
use App\Contracts\LlmProvider;
|
||||
|
||||
class StubLlmProvider implements LlmProvider
|
||||
{
|
||||
public function complete(string $prompt, array $context = []): array
|
||||
{
|
||||
return [
|
||||
'summary' => 'Stub summary for content optimization.',
|
||||
'suggestions' => [
|
||||
'Review headings for clarity.',
|
||||
'Add a concise meta description.',
|
||||
],
|
||||
];
|
||||
}
|
||||
|
||||
public function moderate(string $content): array
|
||||
{
|
||||
$blocked = str_contains(strtolower($content), 'spam');
|
||||
|
||||
return [
|
||||
'status' => $blocked ? 'rejected' : 'approved',
|
||||
'reason' => $blocked ? 'Detected spam keyword in stub provider.' : null,
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user