|
string string | $apiendpoint |
| The Azure AI API endpoint, is different for each organisation.
|
|
◆ add_authentication_headers()
aiprovider_azureai\provider::add_authentication_headers |
( |
RequestInterface | $request | ) |
|
Update a request to add any headers required by the provider.
- Parameters
-
- Return values
-
◆ generate_userid()
aiprovider_azureai\provider::generate_userid |
( |
string | $userid | ) |
|
Generate a user id.
This is a hash of the site id and user id, this means we can determine who made the request but don't pass any personal data to AzureAI.
- Parameters
-
string | $userid | The user id. |
- Return values
-
string | The generated user id. |
◆ get_action_list()
aiprovider_azureai\provider::get_action_list |
( |
| ) |
|
Get the list of actions that this provider supports.
- Return values
-
array | An array of action class names. |
Reimplemented from core_ai\provider.
◆ get_action_settings()
aiprovider_azureai\provider::get_action_settings |
( |
string | $action, |
|
|
admin_root | $ADMIN, |
|
|
string | $section, |
|
|
bool | $hassiteconfig ) |
Get any action settings for this provider.
- Parameters
-
string | $action | The action class name. |
admin_root | $ADMIN | The admin root object. |
string | $section | The section name. |
bool | $hassiteconfig | Whether the current user has moodle/site:config capability. |
- Return values
-
array | An array of settings. |
Reimplemented from core_ai\provider.
◆ get_name()
core_ai\provider::get_name |
( |
| ) |
|
|
inherited |
Get the name of the provider.
- Return values
-
string | The name of the provider. |
◆ get_sub_actions()
core_ai\provider::get_sub_actions |
( |
string | $classname | ) |
|
|
inherited |
Given an action class name, return an array of sub actions that this provider supports.
- Parameters
-
string | $classname | The action class name. |
- Return values
-
array | An array of supported sub actions. |
◆ is_provider_configured()
aiprovider_azureai\provider::is_provider_configured |
( |
| ) |
|
Check this provider has the minimal configuration to work.
- Return values
-
bool | Return true if configured. |
Reimplemented from core_ai\provider.
◆ is_request_allowed()
aiprovider_azureai\provider::is_request_allowed |
( |
aiactions\base | $action | ) |
|
Check if the request is allowed by the rate limiter.
- Parameters
-
aiactions::base | $action | The action to check. |
- Return values
-
array|bool | True on success, array of error details on failure. |
Reimplemented from core_ai\provider.
The documentation for this class was generated from the following file:
- ai/provider/azureai/classes/provider.php