# LocalAIEndpoint

Namespace: **Wisej.AI.Endpoints**

Assembly: **Wisej.AI** (3.5.0.0)

* [SmartEndpoint](https://docs.wisej.com/ai/components/api/smartendpoint)
  * [SmartHttpEndpoint](https://docs.wisej.com/ai/components/api/smartendpoint/wisej.ai.endpoints.smarthttpendpoint)
    * [OpenAIEndpoint](https://docs.wisej.com/ai/components/api/smartendpoint/wisej.ai.endpoints.openaiendpoint)
      * [LocalAIEndpoint](https://docs.wisej.com/ai/components/api/smartendpoint/wisej.ai.endpoints.localaiendpoint)

Represents a connection to LocalAI endpoints, providing access to various AI models and services.

{% tabs %}
{% tab title="C#" %}

```csharp
public class LocalAIEndpoint : OpenAIEndpoint
```

{% endtab %}

{% tab title="VB.NET" %}

```visual-basic
Public Class LocalAIEndpoint
    Inherits OpenAIEndpoint
```

{% endtab %}
{% endtabs %}

This class extends the [OpenAIEndpoint](https://docs.wisej.com/ai/components/api/smartendpoint/wisej.ai.endpoints.openaiendpoint) to connect specifically to LocalAI's API. It initializes with default models and a URL for the TogetherAI service.

## Constructors

### ![](https://1941161015-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FFjp24h5m0lgli5swqzhO%2Fuploads%2FdLVsGEp1mKmjdHvG0Itk%2Finstance.png?alt=media\&token=0061ee96-c913-420d-aa2f-daf782ca6a1d) LocalAIEndpoint()

Initializes a new instance of the [LocalAIEndpoint](https://docs.wisej.com/ai/components/api/smartendpoint/wisej.ai.endpoints.localaiendpoint) class with default settings.

## Properties

### ![](https://1941161015-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FFjp24h5m0lgli5swqzhO%2Fuploads%2FdLVsGEp1mKmjdHvG0Itk%2Finstance.png?alt=media\&token=0061ee96-c913-420d-aa2f-daf782ca6a1d) EmbeddingModel

[String](https://docs.microsoft.com/dotnet/api/system.string): Gets or sets the embedding model used for AI operations. (Default: `"text-embedding-ada-002"`)

### ![](https://1941161015-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FFjp24h5m0lgli5swqzhO%2Fuploads%2FdLVsGEp1mKmjdHvG0Itk%2Finstance.png?alt=media\&token=0061ee96-c913-420d-aa2f-daf782ca6a1d) Model

[String](https://docs.microsoft.com/dotnet/api/system.string): Gets or sets the model used for AI operations. (Default: `""`)

### ![](https://1941161015-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FFjp24h5m0lgli5swqzhO%2Fuploads%2FdLVsGEp1mKmjdHvG0Itk%2Finstance.png?alt=media\&token=0061ee96-c913-420d-aa2f-daf782ca6a1d) URL

[String](https://docs.microsoft.com/dotnet/api/system.string): Gets or sets the URL for the LocalAI API endpoint. (Default: `"http://localhost:8080/v1"`)
