Skip to content

Commit

Permalink
wow adding browser agent worked
Browse files Browse the repository at this point in the history
  • Loading branch information
alnutile committed Jul 31, 2024
1 parent f2f0645 commit 3d2be89
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/Domains/Messages/RoleEnum.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace App\Domains\Messages;

enum git pRoleEnum: string
enum RoleEnum: string
{
case User = 'user';
case System = 'system';
Expand Down
6 changes: 5 additions & 1 deletion app/Http/Controllers/SettingController.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ public function updateClaude(Request $request, Setting $setting)
$setting->save();
$setting->updateStep($setting);
$this->clearCache();

return back();
}

Expand All @@ -47,6 +48,7 @@ public function updateOllama(Request $request, Setting $setting)
$setting->save();
$setting->updateStep($setting);
$this->clearCache();

return back();
}

Expand All @@ -63,6 +65,7 @@ public function updateGroq(Request $request, Setting $setting)
$setting->save();
$setting->updateStep($setting);
$this->clearCache();

return back();
}

Expand All @@ -85,7 +88,8 @@ public function updateOpenAi(Request $request, Setting $setting)
return back();
}

protected function clearCache() {
protected function clearCache()
{
Artisan::call('optimize:clear');
}
}

0 comments on commit 3d2be89

Please sign in to comment.