Merge branch 'MDL-85027-main' of https://github.com/HuongNV13/moodle

This commit is contained in:
Sara Arjona
2025-04-01 17:14:54 +02:00
2 changed files with 2 additions and 2 deletions
@@ -40,7 +40,7 @@ abstract class abstract_processor extends process_base {
*/
protected function get_endpoint(): UriInterface {
$url = rtrim($this->provider->config['endpoint'], '/')
. '/api/generate/';
. '/api/generate';
return new Uri($url);
}
+1 -1
View File
@@ -89,7 +89,7 @@ $string['declineaipolicy'] = 'Decline';
$string['enableglobalratelimit'] = 'Set site-wide rate limit';
$string['enableglobalratelimit_help'] = 'Limit the number of requests that the AI provider can receive across the entire site every hour.';
$string['enableuserratelimit'] = 'Set user rate limit';
$string['enableuserratelimit_help'] = 'Limit the number of requests each user can make to the OpenAI API provider every hour.';
$string['enableuserratelimit_help'] = 'Limit the number of requests each user can make to the AI provider every hour.';
$string['error:actionnotfound'] = 'Action \'{$a}\' is not supported.';
$string['error:providernotfound'] = 'The AI provider instance is not found.';
$string['globalratelimit'] = 'Maximum number of site-wide requests';