Skip to content

Commit cf960fc

Browse files
docs-botgithub-actions[bot]sunbryeCopilot
authored
Sync Copilot SDK docs (auto-generated) (#62858)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: sunbrye <sunbrye@github.com> Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 3988ff8 commit cf960fc

40 files changed

Lines changed: 902 additions & 2643 deletions
6 Bytes
Loading
8 Bytes
Loading
-4.9 KB
Loading
-2 KB
Loading
-16.9 KB
Loading

content/copilot/how-tos/copilot-sdk/auth/authenticate.md

Lines changed: 163 additions & 145 deletions
Large diffs are not rendered by default.

content/copilot/how-tos/copilot-sdk/auth/byok.md

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -534,23 +534,6 @@ const session = await client.createSession({
534534

535535
For Azure OpenAI endpoints (`*.openai.azure.com`), use the correct type:
536536

537-
<!-- docs-validate: hidden -->
538-
539-
```typescript
540-
import { CopilotClient } from "@github/copilot-sdk";
541-
542-
const client = new CopilotClient();
543-
const session = await client.createSession({
544-
model: "gpt-5.4",
545-
provider: {
546-
type: "azure",
547-
baseUrl: "https://my-resource.openai.azure.com",
548-
},
549-
});
550-
```
551-
552-
<!-- /docs-validate: hidden -->
553-
554537
```typescript
555538
// ❌ Wrong: Using "openai" type with native Azure endpoint
556539
provider: {
@@ -567,23 +550,6 @@ provider: {
567550

568551
However, if your Microsoft Foundry deployment provides an OpenAI-compatible endpoint path (for example, `/openai/v1/`), use `type: "openai"`:
569552

570-
<!-- docs-validate: hidden -->
571-
572-
```typescript
573-
import { CopilotClient } from "@github/copilot-sdk";
574-
575-
const client = new CopilotClient();
576-
const session = await client.createSession({
577-
model: "gpt-5.4",
578-
provider: {
579-
type: "openai",
580-
baseUrl: "https://your-resource.openai.azure.com/openai/v1/",
581-
},
582-
});
583-
```
584-
585-
<!-- /docs-validate: hidden -->
586-
587553
```typescript
588554
// ✅ Correct: OpenAI-compatible Microsoft Foundry endpoint
589555
provider: {

0 commit comments

Comments
 (0)