IntelligenceX
Class

OpenAINativeOptions

Namespace IntelligenceX.OpenAI.Native
Assembly IntelligenceX
Modifiers sealed

Options for the ChatGPT native transport, including auth, endpoints, and defaults.

Inheritance

  • Object
  • OpenAINativeOptions

Examples


var options = new OpenAINativeOptions {
    ChatGptApiBaseUrl = "https://chatgpt.com/backend-api",
    UserAgent = "IntelligenceX/0.1.0"
};

        

Constructors

Methods

public Void Validate() #
Returns: Void

Validates required configuration values.

Properties

public OAuthConfig OAuth { get; } #

OAuth configuration used for ChatGPT sign-in.

public IAuthBundleStore AuthStore { get; set; } #

Store used to load/save the auth bundle.

public String ResponsesUrl { get; set; } #

Endpoint for responses in the native transport.

public String[] ModelUrls { get; set; } #

Endpoint list used to fetch available models.

public String ChatGptApiBaseUrl { get; set; } #

Base URL for ChatGPT API calls (defaults to the public backend-api host).

public String ClientVersion { get; set; } #

Client version string reported to the API.

public String Instructions { get; set; } #

Default system instructions.

public Nullable<ReasoningEffort> ReasoningEffort { get; set; } #

Default reasoning effort hint.

public Nullable<ReasoningSummary> ReasoningSummary { get; set; } #

Default reasoning summary hint.

public String Originator { get; set; } #

Originator identifier used in requests.

public TextVerbosity TextVerbosity { get; set; } #

Default text verbosity hint.

public Boolean IncludeReasoningEncryptedContent { get; set; } #

Whether to include encrypted reasoning content.

public TimeSpan OAuthTimeout { get; set; } #

Timeout for OAuth login flows.

public Boolean UseLocalListener { get; set; } #

Whether to use a local listener for OAuth callbacks.

public Boolean PersistCodexAuthJson { get; set; } #

Whether to persist codex auth JSON to disk.

public String CodexHome { get; set; } #

Override path to the Codex home directory.

public String UserAgent { get; set; } #

Optional user agent for HTTP requests.