MDL-85301 aiprovider_ollama: Fix basic authentication
This commit is contained in:
committed by
David Woloszyn
parent
e6505da61a
commit
07c33cd2c3
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user