Aspose::Words::AI::AiModel::get_Url method

AiModel::get_Url method

Gets or sets a URL of the model. The default value is specific for the model.

virtual System::String Aspose::Words::AI::AiModel::get_Url()=0

Examples

Shows how to change model default url.

System::String apiKey = System::Environment::GetEnvironmentVariable(u"API_KEY");
System::SharedPtr<Aspose::Words::AI::AiModel> model = Aspose::Words::AI::AiModel::Create(Aspose::Words::AI::AiModelType::Gpt4OMini)->WithApiKey(apiKey);
// Default value "https://api.openai.com/".
model->set_Url(u"https://my.a.com/");

See Also