# OpenAICompatibleHttpAuthMode

Authentication mode for OpenAI-compatible HTTP transports.

Enum 

`IntelligenceX.OpenAI.CompatibleHttp`

**Namespace**

`IntelligenceX.OpenAI.CompatibleHttp`

**Assembly**

`IntelligenceX`

**Source**

[OpenAICompatibleHttpAuthMode.cs:6](https://github.com/EvotecIT/IntelligenceX/blob/master/IntelligenceX/Providers/OpenAI/CompatibleHttp/OpenAICompatibleHttpAuthMode.cs#L6)

**Base**

`Enum`

**Implements**

`IComparable` `ISpanFormattable` `IFormattable` `IConvertible`

**Modifiers**

sealed

Authentication mode for OpenAI-compatible HTTP transports.

## Inheritance

- Enum
- OpenAICompatibleHttpAuthMode

## Usage

Explore 4 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

### Returned or exposed by 4

- Field [OpenAICompatibleHttpAuthMode.Basic](/api/intelligencex-openai-compatiblehttp-openaicompatiblehttpauthmode/#field-basic)
- Field [OpenAICompatibleHttpAuthMode.Bearer](/api/intelligencex-openai-compatiblehttp-openaicompatiblehttpauthmode/#field-bearer)
- Field [OpenAICompatibleHttpAuthMode.None](/api/intelligencex-openai-compatiblehttp-openaicompatiblehttpauthmode/#field-none)
- Property [OpenAICompatibleHttpOptions.AuthMode](/api/intelligencex-openai-compatiblehttp-openaicompatiblehttpoptions/#property-authmode)

Filter members 

Show inherited

## Inherited Methods

`public int CompareTo(object? target)` [#](#method-compareto-object)

Inherited from Enum

Parameters

**target object? required**

Returns

`int`

`public override bool Equals(object? obj)` [#](#method-equals-object)

Inherited from Enum

Parameters

**obj object? required**

Returns

`bool`

`public override int GetHashCode()` [#](#method-gethashcode)

Inherited from Enum

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public TypeCode GetTypeCode()` [#](#method-gettypecode)

Inherited from Enum

Returns

`TypeCode`

`public bool HasFlag(Enum flag)` [#](#method-hasflag-enum)

Inherited from Enum

Parameters

**flag Enum required**

Returns

`bool`

ToString 4 overloads

`public override string ToString()` [#](#method-tostring)

Inherited from Enum

Returns

`string`

`public string ToString(string? format)` [#](#method-tostring-string)

Inherited from Enum

Parameters

**format string? required**

Returns

`string`

`public string ToString(IFormatProvider? provider)` [#](#method-tostring-iformatprovider)

Inherited from Enum

`Obsolete("The provider argument is not used. Use ToString() instead.")`

Parameters

**provider IFormatProvider? required**

Returns

`string`

`public string ToString(string? format, IFormatProvider? provider)` [#](#method-tostring-string-iformatprovider)

Inherited from Enum

`Obsolete("The provider argument is not used. Use ToString(String) instead.")`

Parameters

**format string? required**

**provider IFormatProvider? required**

Returns

`string`

## Values

`public const OpenAICompatibleHttpAuthMode None` [#](#field-none)

[OpenAICompatibleHttpAuthMode.cs:10](https://github.com/EvotecIT/IntelligenceX/blob/master/IntelligenceX/Providers/OpenAI/CompatibleHttp/OpenAICompatibleHttpAuthMode.cs#L10)

No Authorization header is sent.

Value: `0`

`public const OpenAICompatibleHttpAuthMode Bearer` [#](#field-bearer)

[OpenAICompatibleHttpAuthMode.cs:14](https://github.com/EvotecIT/IntelligenceX/blob/master/IntelligenceX/Providers/OpenAI/CompatibleHttp/OpenAICompatibleHttpAuthMode.cs#L14)

Sends Authorization: Bearer ... using [OpenAICompatibleHttpOptions.ApiKey](/api/intelligencex-openai-compatiblehttp-openaicompatiblehttpoptions/).

Value: `1`

`public const OpenAICompatibleHttpAuthMode Basic` [#](#field-basic)

[OpenAICompatibleHttpAuthMode.cs:19](https://github.com/EvotecIT/IntelligenceX/blob/master/IntelligenceX/Providers/OpenAI/CompatibleHttp/OpenAICompatibleHttpAuthMode.cs#L19)

Sends Authorization: Basic ... using [OpenAICompatibleHttpOptions.BasicUsername](/api/intelligencex-openai-compatiblehttp-openaicompatiblehttpoptions/) and [OpenAICompatibleHttpOptions.BasicPassword](/api/intelligencex-openai-compatiblehttp-openaicompatiblehttpoptions/).

Value: `2`

<!-- PowerForge markdown artifact sha256:419CE91982B2E830EF95C3D816BDC6EDFADB46FFFC44D556CB3CEEDE0008565E -->
