From 3d2be893cb414df9327314f8a3eeea42f6213a2b Mon Sep 17 00:00:00 2001 From: Alfred Nutile Date: Tue, 30 Jul 2024 21:35:32 -0400 Subject: [PATCH] wow adding browser agent worked --- app/Domains/Messages/RoleEnum.php | 2 +- app/Http/Controllers/SettingController.php | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/app/Domains/Messages/RoleEnum.php b/app/Domains/Messages/RoleEnum.php index bdec8ab8..becb1a25 100644 --- a/app/Domains/Messages/RoleEnum.php +++ b/app/Domains/Messages/RoleEnum.php @@ -2,7 +2,7 @@ namespace App\Domains\Messages; -enum git pRoleEnum: string +enum RoleEnum: string { case User = 'user'; case System = 'system'; diff --git a/app/Http/Controllers/SettingController.php b/app/Http/Controllers/SettingController.php index 6fbd68af..201abe29 100644 --- a/app/Http/Controllers/SettingController.php +++ b/app/Http/Controllers/SettingController.php @@ -31,6 +31,7 @@ public function updateClaude(Request $request, Setting $setting) $setting->save(); $setting->updateStep($setting); $this->clearCache(); + return back(); } @@ -47,6 +48,7 @@ public function updateOllama(Request $request, Setting $setting) $setting->save(); $setting->updateStep($setting); $this->clearCache(); + return back(); } @@ -63,6 +65,7 @@ public function updateGroq(Request $request, Setting $setting) $setting->save(); $setting->updateStep($setting); $this->clearCache(); + return back(); } @@ -85,7 +88,8 @@ public function updateOpenAi(Request $request, Setting $setting) return back(); } - protected function clearCache() { + protected function clearCache() + { Artisan::call('optimize:clear'); } }