CopilotChatClientOptions
NexusLabs.Needlr.Copilot¶
CopilotChatClientOptions Class¶
Configuration options for CopilotChatClient and related Copilot API types.
Inheritance System.Object 🡒 CopilotChatClientOptions
Properties¶
CopilotChatClientOptions.CopilotApiBaseUrl Property¶
The Copilot API base URL. Defaults to https://api.githubcopilot.com.
Property Value¶
CopilotChatClientOptions.DefaultModel Property¶
The default model to use when Microsoft.Extensions.AI.ChatOptions.ModelId
is not specified by the caller. Defaults to claude-sonnet-4.
Property Value¶
CopilotChatClientOptions.EditorVersion Property¶
Value sent in the Editor-Version header.
Defaults to NexusLabs.Needlr/1.0.0.
Property Value¶
CopilotChatClientOptions.GitHubApiBaseUrl Property¶
The GitHub API base URL for token exchange.
Defaults to https://api.github.com.
Property Value¶
CopilotChatClientOptions.GitHubToken Property¶
Optional explicit GitHub OAuth token. When set, takes precedence over TokenSource discovery.
Property Value¶
CopilotChatClientOptions.IntegrationId Property¶
Value sent in the Copilot-Integration-Id header.
Defaults to needlr-copilot.
Property Value¶
CopilotChatClientOptions.MaxRetries Property¶
Maximum number of retries on HTTP 429 (Too Many Requests) responses. Defaults to 3. Set to 0 to disable retries.
Property Value¶
CopilotChatClientOptions.RetryBaseDelayMs Property¶
Initial delay in milliseconds before the first retry on 429.
Subsequent retries use exponential backoff (delay × 2^attempt).
If the response includes a Retry-After header, that value
is used instead. Defaults to 1000ms.
Property Value¶
CopilotChatClientOptions.TokenRefreshBufferSeconds Property¶
How many seconds before the Copilot API token expires to trigger a refresh. Defaults to 60.
Property Value¶
CopilotChatClientOptions.TokenSource Property¶
Controls where the GitHub OAuth token is sourced from. Defaults to Auto.