Table of Contents

Class OpenAIBaseEndpoint

Namespace
OpenAI
Assembly
OpenAI-DotNet.dll
public abstract class OpenAIBaseEndpoint
Inheritance
OpenAIBaseEndpoint
Derived
Inherited Members

Constructors

OpenAIBaseEndpoint(OpenAIClient)

protected OpenAIBaseEndpoint(OpenAIClient client)

Parameters

client OpenAIClient

Fields

client

protected readonly OpenAIClient client

Field Value

OpenAIClient

Properties

EnableDebug

Enables or disables the logging of all http responses of header and body information for this endpoint.
WARNING! Enabling this in your production build, could potentially leak sensitive information!

public bool EnableDebug { get; set; }

Property Value

bool

IsAzureDeployment

Indicates if the endpoint has an Azure Deployment.

protected virtual bool? IsAzureDeployment { get; }

Property Value

bool?

Remarks

If the endpoint is an Azure deployment, is true. If it is not an Azure deployment, is false. If it is not an Azure supported Endpoint, is null.

IsWebSocketEndpoint

Indicates if the endpoint is for a WebSocket.

protected virtual bool? IsWebSocketEndpoint { get; }

Property Value

bool?

Root

The root endpoint address.

protected abstract string Root { get; }

Property Value

string

Methods

GetUrl(string, Dictionary<string, string>)

Gets the full formatted url for the API endpoint.

protected string GetUrl(string endpoint = "", Dictionary<string, string> queryParameters = null)

Parameters

endpoint string

The endpoint url.

queryParameters Dictionary<string, string>

Optional, parameters to add to the endpoint.

Returns

string