IntelligenceX
Class

OpenAICompatibleHttpOptions

IntelligenceX.OpenAI.CompatibleHttp

Namespace
IntelligenceX.OpenAI.CompatibleHttp
Assembly
IntelligenceX
Modifiers
sealed

Options for connecting to an OpenAI-compatible HTTP endpoint (for example a local model server).

Inheritance

  • object
  • OpenAICompatibleHttpOptions

Usage

Explore 2 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.

Constructors

public OpenAICompatibleHttpOptions() #

Methods

public void Validate() #

Validates the configuration and throws on invalid values.

Properties

public string? BaseUrl { get; set; } #

Base URL for the OpenAI-compatible API. Example: http://127.0.0.1:11434/v1 or http://localhost:1234/v1.

public OpenAICompatibleHttpAuthMode AuthMode { get; set; } #

Auth mode for compatible-http requests.

public string? ApiKey { get; set; } #

Optional API key used with OpenAICompatibleHttpAuthMode.Bearer. Local providers often ignore this.

public string? BasicUsername { get; set; } #

Optional username used with OpenAICompatibleHttpAuthMode.Basic.

public string? BasicPassword { get; set; } #

Optional password used with OpenAICompatibleHttpAuthMode.Basic.

public bool Streaming { get; set; } #

Whether to request streaming responses when supported by the provider.

public bool AllowAutoRedirect { get; set; } #

Whether HTTP redirects may move requests away from the configured endpoint.

public bool UseProxy { get; set; } #

Whether system proxy settings may route requests through a proxy.

public bool AllowInsecureHttp { get; set; } #

When true, allows insecure http:// URLs (loopback only).

public bool AllowInsecureHttpNonLoopback { get; set; } #

When true, allows insecure http:// URLs for non-loopback hosts (dangerous).