Missing mwai_openai_endpoint filter
-
Hello!
The inclusion of filters for integration with OpenAI-compatible LLM providers is a blessing, thank you for the forethought!
However, it seems there is one hard coded value missing the filter, on line 1232 ofclasses/engines/openai.php
:$url = 'https://api.openai.com/v1' . $url;
$options = [
"headers" => $headers,
"method" => $method,
"timeout" => MWAI_TIMEOUT,
"body" => $body,
"sslverify" => false
];For next update, would it be possible to edit is as following?
$url = apply_filters( 'mwai_openai_endpoint', 'https://api.openai.com/v1', $this->envType ) . $url;
$options = [
"headers" => $headers,
"method" => $method,
"timeout" => MWAI_TIMEOUT,
"body" => $body,
"sslverify" => false
];Best regards
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Missing mwai_openai_endpoint filter’ is closed to new replies.