Moodle PHP Documentation 5.0
Moodle 5.0.1+ (Build: 20250711) (61af040cd5f)
|
Public Member Functions | |
add_model_settings (MoodleQuickForm $mform) | |
Add the model settings to the form. | |
get_model_display_name () | |
Get the display name of the model. | |
get_model_name () | |
Get the name of the model. | |
has_model_settings () | |
Check if the model has settings. | |
core_ai\aimodel\base::add_model_settings | ( | MoodleQuickForm | $mform | ) |
Add the model settings to the form.
MoodleQuickForm | $mform | The form to add the model settings to. |
Reimplemented in aiprovider_ollama\aimodel\llama33, and aiprovider_openai\aimodel\gpt4o.
|
abstract |
Get the display name of the model.
This name is used to display the model in the UI.
string | The display name of the model. |
Reimplemented in aiprovider_ollama\aimodel\llama33, aiprovider_openai\aimodel\dalle3, aiprovider_openai\aimodel\gpt4o, and aiprovider_openai\aimodel\o1.
|
abstract |
Get the name of the model.
This name is used to identify the model. The system will use this model name to make the request to the AI services.
string | The name of the model. |
Reimplemented in aiprovider_ollama\aimodel\llama33, aiprovider_openai\aimodel\dalle3, aiprovider_openai\aimodel\gpt4o, and aiprovider_openai\aimodel\o1.
core_ai\aimodel\base::has_model_settings | ( | ) |
Check if the model has settings.
bool | Whether the model has settings. |
Reimplemented in aiprovider_ollama\aimodel\llama33, aiprovider_openai\aimodel\dalle3, aiprovider_openai\aimodel\gpt4o, and aiprovider_openai\aimodel\o1.