From 07c33cd2c39cc6d614d5c8d92cb0e592e32dcd07 Mon Sep 17 00:00:00 2001 From: Andre Krueger Date: Wed, 30 Apr 2025 19:42:19 +0000 Subject: [PATCH] MDL-85301 aiprovider_ollama: Fix basic authentication --- ai/provider/ollama/classes/provider.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ai/provider/ollama/classes/provider.php b/ai/provider/ollama/classes/provider.php index ef17f882829..4284681cca7 100644 --- a/ai/provider/ollama/classes/provider.php +++ b/ai/provider/ollama/classes/provider.php @@ -55,7 +55,7 @@ class provider extends \core_ai\provider { #[\Override] public function add_authentication_headers(RequestInterface $request): RequestInterface { - if (empty($this->config['basicauthenabled'])) { + if (empty($this->config['enablebasicauth'])) { return $request; } else { // Add the Authorization header for basic auth.