# HostAIProvider class
{: .no_toc }

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**](/tB/Packages/tbIDE/HostAIProviders.md).

* TOC
{:toc}

## Properties

### FriendlyName
{: .no_toc }

The model's **Friendly Name** in the options, or its **Model Name** when that is empty. **String**, read-only.

### IsDefault
{: .no_toc }

**True** for the model whose **Default** button is selected, the one [**HostAIProviders.DefaultProvider**](/tB/Packages/tbIDE/HostAIProviders.md#defaultprovider) returns. **Boolean**, read-only.

### Permissions
{: .no_toc }

What the user allows the model to do. **As** [**HostAIProviderPermissions**](/tB/Packages/tbIDE/HostAIProviderPermissions.md), read-only.

## Methods

### StartConversation
{: .no_toc }

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**](/tB/Packages/tbIDE/AIConversation.md)

> [!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](/tB/Packages/tbIDE/HostAIProviders.md) class
- [AIConversation](/tB/Packages/tbIDE/AIConversation.md) class
- [HostAIProviderPermissions](/tB/Packages/tbIDE/HostAIProviderPermissions.md) class
