From 9cccc9e4415717260950e020d60c0c76131bd909 Mon Sep 17 00:00:00 2001 From: isaacclad Date: Thu, 11 Jun 2026 07:34:34 +0000 Subject: [PATCH] Afia: fix prompt to Ladill Servers (VPS/dedicated), not shared hosting MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The Servers app's Afia used the shared-hosting prompt, so it refused VPS/ dedicated questions and gave wrong answers. Rewrite as Ladill Servers — VPS and dedicated plans, ordering, SSH access, server panel, billing. Co-Authored-By: Claude Opus 4.8 --- app/Services/Afia/AfiaService.php | 35 ++++++++++++++----------------- 1 file changed, 16 insertions(+), 19 deletions(-) diff --git a/app/Services/Afia/AfiaService.php b/app/Services/Afia/AfiaService.php index c47ee1a..6e0ed7c 100644 --- a/app/Services/Afia/AfiaService.php +++ b/app/Services/Afia/AfiaService.php @@ -90,31 +90,28 @@ class AfiaService { $ctx = collect($context)->map(fn ($v, $k) => "- {$k}: {$v}")->implode("\n"); - return match ((string) config('afia.product', 'hosting')) { - 'email' => $this->emailSystemPrompt($ctx), - default => $this->hostingSystemPrompt($ctx), - }; + return $this->serversSystemPrompt($ctx); } - private function hostingSystemPrompt(string $ctx): string + private function serversSystemPrompt(string $ctx): string { return <<