API Reference
OpenAICompatibleHttpOptions
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.
Returned or exposed by 2
Constructors
public OpenAICompatibleHttpOptions() #Methods
Inherited Methods
public virtual Boolean Equals(Object? obj) #BooleanParameters
- obj Object?
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 Boolean Streaming { get; set; } #Whether to request streaming responses when supported by the provider.
public Boolean AllowAutoRedirect { get; set; } #Whether HTTP redirects may move requests away from the configured endpoint.
public Boolean UseProxy { get; set; } #Whether system proxy settings may route requests through a proxy.
public Boolean AllowInsecureHttp { get; set; } #When true, allows insecure http:// URLs (loopback only).
public Boolean AllowInsecureHttpNonLoopback { get; set; } #When true, allows insecure http:// URLs for non-loopback hosts (dangerous).