MDL-85301 aiprovider_ollama: Fix basic authentication

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