Merge branch 'MDL-85027-main' of https://github.com/HuongNV13/moodle
This commit is contained in:
@@ -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
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user