AsposeAIWebClient constructor

Contents
[ ]

init

Creates an instance of the Aspose AI web client that connects to the default Aspose LLM endpoint. This is the client used by the parameterless SlidesAIAgent.#ctor constructor, so creating it explicitly is only required when passing the client to the Aspose.Slides.AI.SlidesAIAgent.#ctor(Aspose.Slides.A constructor directly.

def __init__(self):
    ...

init

Creates an instance of the Aspose AI web client that connects to a custom endpoint URL. Use this overload when you have a URL provided by the Aspose.Slides team; otherwise, use the AsposeAIWebClient.#ctor overload with the default URL.

def __init__(self, url):
    ...
ParameterTypeDescription
urlstrEndpoint URL of the Aspose LLM, provided by the Aspose.Slides team.

Exceptions

ExceptionDescription
RuntimeError(Proxy error(ArgumentNullException))URL can’t be None or empty.

See Also