Aspose::Words::AI::AiModel::set_Url method

AiModel::set_Url method

Sets a URL of the model. The default value is specific for the model.

virtual void Aspose::Words::AI::AiModel::set_Url(System::String value)

Examples

Shows how to change model default url.

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

See Also