HostAIProvider class
One AI model that the IDE’s options list: its name, whether it is the default, what the user allows it to do, and the conversations held with it. An item of HostAIProviders.
Properties
FriendlyName
The model’s Friendly Name in the options, or its Model Name when that is empty. String, read-only.
IsDefault
True for the model whose Default button is selected, the one HostAIProviders.DefaultProvider returns. Boolean, read-only.
Permissions
What the user allows the model to do. As HostAIProviderPermissions, read-only.
Methods
StartConversation
Starts a conversation with the model. The conversation holds its messages until it is closed, and sends them all with each question.
Syntax: provider.StartConversation() As AIConversation
Warning BETA 1052
The conversation uses the model at the provider’s place in the whole list of the options, whose Enabled box is ticked or not, rather than in the collection, which holds only the enabled ones. With a model that is not enabled above it in the list, a provider’s conversation goes to another model — the one that is not enabled, when it is first — and its messages and API key go to that model’s endpoint. Until a fixed build is released, keep the models that are not enabled below the enabled ones in the list.
See Also
- HostAIProviders class
- AIConversation class
- HostAIProviderPermissions class