You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1.**Stored OAuth credentials** - From previous `copilot` CLI login
300
302
1.**GitHub CLI** - `gh auth` credentials
301
303
304
+
For multi-user server mode, pass a per-session `gitHubToken` so each session runs with the correct GitHub identity; see [AUTOTITLE](/copilot/how-tos/copilot-sdk/setup/multi-tenancy).
305
+
302
306
## Disabling auto-login
303
307
304
308
To prevent the SDK from automatically using stored credentials or `gh` CLI auth, use the `useLoggedInUser: false` option:
@@ -365,8 +369,8 @@ await using var client = new CopilotClient(new CopilotClientOptions
365
369
{% codetab java %}
366
370
367
371
```java
368
-
importcom.github.copilot.sdk.CopilotClient;
369
-
importcom.github.copilot.sdk.json.*;
372
+
importcom.github.copilot.CopilotClient;
373
+
importcom.github.copilot.rpc.*;
370
374
371
375
var client =newCopilotClient(newCopilotClientOptions()
372
376
.setUseLoggedInUser(false) // Only use explicit tokens
|`wireApi` / `wire_api`|`"completions"`\|`"responses"`|API format (default: `"completions"`)|
216
+
|`wireApi` / `wire_api`|`"completions"`\|`"responses"`|Select `"completions"` for broad model compatibility (the Chat Completions API); select `"responses"` for multi-turn state management, tool namespacing, and reasoning support (the Responses API). Anthropic models always use the Messages API regardless of this setting.|
218
217
|`azure.apiVersion` / `azure.api_version`| string | Azure API version (default: `"2024-10-21"`) |
219
218
220
219
### Wire API format
221
220
222
221
The `wireApi` setting determines which OpenAI API format to use:
223
222
224
-
***`"completions"`** (default) - Chat Completions API (`/chat/completions`). Use for most models.
225
-
***`"responses"`** - Responses API. Use for GPT-5 series models that support the newer responses format.
223
+
***`"completions"`** (default) - Chat Completions API (`/chat/completions`) for broad model compatibility.
224
+
***`"responses"`** - Responses API for multi-turn state management, tool namespacing, and reasoning support.
225
+
226
+
Anthropic models always use the Anthropic Messages API regardless of this setting.
226
227
227
228
### Type-specific notes
228
229
@@ -450,8 +451,8 @@ var client = new CopilotClient(new CopilotClientOptions
450
451
{% codetab java %}
451
452
452
453
```java
453
-
importcom.github.copilot.sdk.CopilotClient;
454
-
importcom.github.copilot.sdk.json.*;
454
+
importcom.github.copilot.CopilotClient;
455
+
importcom.github.copilot.rpc.*;
455
456
importjava.util.List;
456
457
importjava.util.concurrent.CompletableFuture;
457
458
@@ -489,6 +490,7 @@ Some Copilot features may behave differently with BYOK:
489
490
***Model availability** - Only models supported by your provider are available
490
491
***Rate limiting** - Subject to your provider's rate limits, not Copilot's
491
492
***Usage tracking** - Usage is tracked by your provider, not GitHub Copilot
493
+
***Premium requests** - Do not count against Copilot premium request quotas
0 commit comments