MDL-85301 aiprovider_ollama: Fix basic authentication

This commit is contained in:
Andre Krueger
2026-02-16 08:07:19 +11:00
committed by David Woloszyn
parent e6505da61a
commit 07c33cd2c3
+1 -1
View File
@@ -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.