Moodle PHP Documentation 5.0
Moodle 5.0.1+ (Build: 20250711) (61af040cd5f)
aiprovider_openai\aimodel\o1 Class Reference
Inheritance diagram for aiprovider_openai\aimodel\o1:
aiprovider_openai\aimodel\gpt4o core_ai\aimodel\base aiprovider_openai\aimodel\openai_base

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.
 
 model_type ()
 Get model types.
 

Public Attributes

int const MODEL_TYPE_IMAGE = 2
 MODEL_TYPE_IMAGE Image model type.
 
int const MODEL_TYPE_TEXT = 1
 MODEL_TYPE_TEXT Text model type.
 

Member Function Documentation

◆ add_model_settings()

aiprovider_openai\aimodel\gpt4o::add_model_settings ( MoodleQuickForm $mform)
inherited

Add the model settings to the form.

Parameters
MoodleQuickForm$mformThe form to add the model settings to.

Reimplemented from core_ai\aimodel\base.

◆ get_model_display_name()

aiprovider_openai\aimodel\o1::get_model_display_name ( )

Get the display name of the model.

This name is used to display the model in the UI.

Return values
stringThe display name of the model.

Reimplemented from aiprovider_openai\aimodel\gpt4o.

◆ get_model_name()

aiprovider_openai\aimodel\o1::get_model_name ( )

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.

Return values
stringThe name of the model.

Reimplemented from aiprovider_openai\aimodel\gpt4o.

◆ has_model_settings()

aiprovider_openai\aimodel\o1::has_model_settings ( )

Check if the model has settings.

Return values
boolWhether the model has settings.

Reimplemented from aiprovider_openai\aimodel\gpt4o.

◆ model_type()

aiprovider_openai\aimodel\o1::model_type ( )

Get model types.

Return values
arrayList of model types.

Reimplemented from aiprovider_openai\aimodel\gpt4o.


The documentation for this class was generated from the following file: