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
{{ message }}
Repository navigation
Commit 543d155
Browse filesBrowse the repository at this point in the historyBrowse files
Port reference implementation changes: remote sessions, provider model overrides, startup cleanup race fix
- Add Remote option to CopilotClientOptions with --remote CLI flag
- Add modelId, wireModel, maxPromptTokens, maxOutputTokens to ProviderConfig
- Fix client startup cleanup race condition (process cleanup on failure)
- Update E2E test harness for CONNECT proxy metadata
- Add unit tests for new provider config fields and clone
- Add E2E tests for provider wire model feature
- Document remote sessions and model overrides in advanced.md
Co-authored-by: edburns <75821+edburns@users.noreply.github.com>
Copy file name to clipboardExpand all lines: src/site/markdown/advanced.md
+56Lines changed: 56 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -383,6 +383,29 @@ var session = client.createSession(
383
383
384
384
> **Note:** The `bearerToken` option accepts a **static token string** only. The SDK does not refresh this token automatically. If your token expires, requests will fail and you'll need to create a new session with a fresh token.
385
385
386
+
### Model Overrides
387
+
388
+
Use `modelId` and `wireModel` to control model resolution and the model name on the wire:
.setWireModel("my-finetune-v3") // Sent to the provider API
399
+
.setMaxPromptTokens(100_000) // Override max prompt tokens
400
+
.setMaxOutputTokens(4096)) // Override max output tokens
401
+
).get();
402
+
```
403
+
404
+
-**`modelId`** — Well-known model name used by the runtime to look up agent configuration (tools, prompts, reasoning behavior) and default token limits. Also used as the wire model when `wireModel` is not set.
405
+
-**`wireModel`** — Model name sent to the provider API for inference. Use when the provider's model name (e.g., an Azure deployment name or a custom fine-tune name) differs from `modelId`.
406
+
-**`maxPromptTokens`** — Overrides the resolved model's default max prompt tokens. The runtime triggers conversation compaction when the prompt would exceed this limit.
407
+
-**`maxOutputTokens`** — Overrides the resolved model's default max output tokens.
408
+
386
409
### Microsoft Foundry Local
387
410
388
411
[Microsoft Foundry Local](https://foundrylocal.ai) lets you run AI models locally on your own device with an OpenAI-compatible API. Install it via the Foundry Local CLI, then point the SDK at your local endpoint:
@@ -1262,6 +1285,39 @@ This is more efficient than `listSessions()` when you already know the session I
1262
1285
1263
1286
---
1264
1287
1288
+
## Remote Sessions
1289
+
1290
+
Remote sessions enable Mission Control integration, making sessions accessible from GitHub web and mobile. When enabled, sessions in a GitHub repository working directory receive a remote URL.
1291
+
1292
+
### Enabling Remote Sessions
1293
+
1294
+
Set `remote(true)` on the client options to enable remote session support for all sessions:
0 commit comments