Skip to content

Commit 09b9855

Browse files
agoncalscottaddie
andauthored
GPT-4.1 is not available anymore (#1952)
* GPT-4.1 is not available anymore * Updating the model to all the other docs --------- Co-authored-by: Scott Addie <10702007+scottaddie@users.noreply.github.com>
1 parent a03583e commit 09b9855

14 files changed

Lines changed: 118 additions & 118 deletions

docs/auth/byok.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,7 @@ import { CopilotClient } from "@github/copilot-sdk";
529529

530530
const client = new CopilotClient();
531531
const session = await client.createSession({
532-
model: "gpt-4.1",
532+
model: "gpt-5.4",
533533
provider: {
534534
type: "azure",
535535
baseUrl: "https://my-resource.openai.azure.com",
@@ -560,7 +560,7 @@ import { CopilotClient } from "@github/copilot-sdk";
560560

561561
const client = new CopilotClient();
562562
const session = await client.createSession({
563-
model: "gpt-4.1",
563+
model: "gpt-5.4",
564564
provider: {
565565
type: "openai",
566566
baseUrl: "https://your-resource.openai.azure.com/openai/v1/",

docs/features/custom-agents.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ const client = new CopilotClient();
3737
await client.start();
3838

3939
const session = await client.createSession({
40-
model: "gpt-4.1",
40+
model: "gpt-5.4",
4141
customAgents: [
4242
{
4343
name: "researcher",
@@ -71,7 +71,7 @@ await client.start()
7171

7272
session = await client.create_session(
7373
on_permission_request=lambda req, inv: PermissionDecisionApproveOnce(),
74-
model="gpt-4.1",
74+
model="gpt-5.4",
7575
custom_agents=[
7676
{
7777
"name": "researcher",
@@ -112,7 +112,7 @@ func main() {
112112
client.Start(ctx)
113113

114114
session, _ := client.CreateSession(ctx, &copilot.SessionConfig{
115-
Model: "gpt-4.1",
115+
Model: "gpt-5.4",
116116
CustomAgents: []copilot.CustomAgentConfig{
117117
{
118118
Name: "researcher",
@@ -144,7 +144,7 @@ client := copilot.NewClient(nil)
144144
client.Start(ctx)
145145

146146
session, _ := client.CreateSession(ctx, &copilot.SessionConfig{
147-
Model: "gpt-4.1",
147+
Model: "gpt-5.4",
148148
CustomAgents: []copilot.CustomAgentConfig{
149149
{
150150
Name: "researcher",
@@ -179,7 +179,7 @@ using GitHub.Copilot.Rpc;
179179
await using var client = new CopilotClient();
180180
await using var session = await client.CreateSessionAsync(new SessionConfig
181181
{
182-
Model = "gpt-4.1",
182+
Model = "gpt-5.4",
183183
CustomAgents = new List<CustomAgentConfig>
184184
{
185185
new()
@@ -219,7 +219,7 @@ try (var client = new CopilotClient()) {
219219

220220
var session = client.createSession(
221221
new SessionConfig()
222-
.setModel("gpt-4.1")
222+
.setModel("gpt-5.4")
223223
.setCustomAgents(List.of(
224224
new CustomAgentConfig()
225225
.setName("researcher")
@@ -529,7 +529,7 @@ func main() {
529529
client.Start(ctx)
530530

531531
session, _ := client.CreateSession(ctx, &copilot.SessionConfig{
532-
Model: "gpt-4.1",
532+
Model: "gpt-5.4",
533533
OnPermissionRequest: func(req copilot.PermissionRequest, inv copilot.PermissionInvocation) (rpc.PermissionDecision, error) {
534534
return &rpc.PermissionDecisionApproveOnce{}, nil
535535
},

docs/features/image-input.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ const client = new CopilotClient();
4747
await client.start();
4848

4949
const session = await client.createSession({
50-
model: "gpt-4.1",
50+
model: "gpt-5.4",
5151
onPermissionRequest: async () => ({ kind: "approve-once" }),
5252
});
5353

@@ -75,7 +75,7 @@ await client.start()
7575

7676
session = await client.create_session(
7777
on_permission_request=lambda req, inv: PermissionDecisionApproveOnce(),
78-
model="gpt-4.1",
78+
model="gpt-5.4",
7979
)
8080

8181
await session.send(
@@ -110,7 +110,7 @@ func main() {
110110
client.Start(ctx)
111111

112112
session, _ := client.CreateSession(ctx, &copilot.SessionConfig{
113-
Model: "gpt-4.1",
113+
Model: "gpt-5.4",
114114
OnPermissionRequest: func(req copilot.PermissionRequest, inv copilot.PermissionInvocation) (rpc.PermissionDecision, error) {
115115
return &rpc.PermissionDecisionApproveOnce{}, nil
116116
},
@@ -136,7 +136,7 @@ client := copilot.NewClient(nil)
136136
client.Start(ctx)
137137

138138
session, _ := client.CreateSession(ctx, &copilot.SessionConfig{
139-
Model: "gpt-4.1",
139+
Model: "gpt-5.4",
140140
OnPermissionRequest: func(req copilot.PermissionRequest, inv copilot.PermissionInvocation) (rpc.PermissionDecision, error) {
141141
return &rpc.PermissionDecisionApproveOnce{}, nil
142142
},
@@ -171,7 +171,7 @@ public static class ImageInputExample
171171
await using var client = new CopilotClient();
172172
await using var session = await client.CreateSessionAsync(new SessionConfig
173173
{
174-
Model = "gpt-4.1",
174+
Model = "gpt-5.4",
175175
OnPermissionRequest = (req, inv) =>
176176
Task.FromResult(PermissionDecision.ApproveOnce()),
177177
});
@@ -200,7 +200,7 @@ using GitHub.Copilot.Rpc;
200200
await using var client = new CopilotClient();
201201
await using var session = await client.CreateSessionAsync(new SessionConfig
202202
{
203-
Model = "gpt-4.1",
203+
Model = "gpt-5.4",
204204
OnPermissionRequest = (req, inv) =>
205205
Task.FromResult(PermissionDecision.ApproveOnce()),
206206
});
@@ -234,7 +234,7 @@ try (var client = new CopilotClient()) {
234234

235235
var session = client.createSession(
236236
new SessionConfig()
237-
.setModel("gpt-4.1")
237+
.setModel("gpt-5.4")
238238
.setOnPermissionRequest(PermissionHandler.APPROVE_ALL)
239239
).get();
240240

@@ -263,7 +263,7 @@ const client = new CopilotClient();
263263
await client.start();
264264

265265
const session = await client.createSession({
266-
model: "gpt-4.1",
266+
model: "gpt-5.4",
267267
onPermissionRequest: async () => ({ kind: "approve-once" }),
268268
});
269269

@@ -294,7 +294,7 @@ await client.start()
294294

295295
session = await client.create_session(
296296
on_permission_request=lambda req, inv: PermissionDecisionApproveOnce(),
297-
model="gpt-4.1",
297+
model="gpt-5.4",
298298
)
299299

300300
base64_image_data = "..." # your base64-encoded image
@@ -332,7 +332,7 @@ func main() {
332332
client.Start(ctx)
333333

334334
session, _ := client.CreateSession(ctx, &copilot.SessionConfig{
335-
Model: "gpt-4.1",
335+
Model: "gpt-5.4",
336336
OnPermissionRequest: func(req copilot.PermissionRequest, inv copilot.PermissionInvocation) (rpc.PermissionDecision, error) {
337337
return &rpc.PermissionDecisionApproveOnce{}, nil
338338
},
@@ -387,7 +387,7 @@ public static class BlobAttachmentExample
387387
await using var client = new CopilotClient();
388388
await using var session = await client.CreateSessionAsync(new SessionConfig
389389
{
390-
Model = "gpt-4.1",
390+
Model = "gpt-5.4",
391391
OnPermissionRequest = (req, inv) =>
392392
Task.FromResult(PermissionDecision.ApproveOnce()),
393393
});
@@ -442,7 +442,7 @@ try (var client = new CopilotClient()) {
442442

443443
var session = client.createSession(
444444
new SessionConfig()
445-
.setModel("gpt-4.1")
445+
.setModel("gpt-5.4")
446446
.setOnPermissionRequest(PermissionHandler.APPROVE_ALL)
447447
).get();
448448

docs/features/skills.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import { CopilotClient } from "@github/copilot-sdk";
2424

2525
const client = new CopilotClient();
2626
const session = await client.createSession({
27-
model: "gpt-4.1",
27+
model: "gpt-5.4",
2828
skillDirectories: [
2929
"./skills/code-review",
3030
"./skills/documentation",
@@ -50,7 +50,7 @@ async def main():
5050

5151
session = await client.create_session(
5252
on_permission_request=lambda req, inv: PermissionDecisionApproveOnce(),
53-
model="gpt-4.1",
53+
model="gpt-5.4",
5454
skill_directories=[
5555
"./skills/code-review",
5656
"./skills/documentation",
@@ -87,7 +87,7 @@ func main() {
8787
defer client.Stop()
8888

8989
session, err := client.CreateSession(ctx, &copilot.SessionConfig{
90-
Model: "gpt-4.1",
90+
Model: "gpt-5.4",
9191
SkillDirectories: []string{
9292
"./skills/code-review",
9393
"./skills/documentation",
@@ -122,7 +122,7 @@ using GitHub.Copilot.Rpc;
122122
await using var client = new CopilotClient();
123123
await using var session = await client.CreateSessionAsync(new SessionConfig
124124
{
125-
Model = "gpt-4.1",
125+
Model = "gpt-5.4",
126126
SkillDirectories = new List<string>
127127
{
128128
"./skills/code-review",
@@ -154,7 +154,7 @@ try (var client = new CopilotClient()) {
154154

155155
var session = client.createSession(
156156
new SessionConfig()
157-
.setModel("gpt-4.1")
157+
.setModel("gpt-5.4")
158158
.setSkillDirectories(List.of(
159159
"./skills/code-review",
160160
"./skills/documentation"

docs/features/steering-and-queueing.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ const client = new CopilotClient();
4747
await client.start();
4848

4949
const session = await client.createSession({
50-
model: "gpt-4.1",
50+
model: "gpt-5.4",
5151
onPermissionRequest: async () => ({ kind: "approve-once" }),
5252
});
5353

@@ -77,7 +77,7 @@ async def main():
7777

7878
session = await client.create_session(
7979
on_permission_request=lambda req, inv: PermissionDecisionApproveOnce(),
80-
model="gpt-4.1",
80+
model="gpt-5.4",
8181
)
8282

8383
# Start a long-running task
@@ -118,7 +118,7 @@ func main() {
118118
defer client.Stop()
119119

120120
session, err := client.CreateSession(ctx, &copilot.SessionConfig{
121-
Model: "gpt-4.1",
121+
Model: "gpt-5.4",
122122
OnPermissionRequest: func(req copilot.PermissionRequest, inv copilot.PermissionInvocation) (rpc.PermissionDecision, error) {
123123
return &rpc.PermissionDecisionApproveOnce{}, nil
124124
},
@@ -158,7 +158,7 @@ using GitHub.Copilot.Rpc;
158158
await using var client = new CopilotClient();
159159
await using var session = await client.CreateSessionAsync(new SessionConfig
160160
{
161-
Model = "gpt-4.1",
161+
Model = "gpt-5.4",
162162
OnPermissionRequest = (req, inv) =>
163163
Task.FromResult(PermissionDecision.ApproveOnce()),
164164
});
@@ -191,7 +191,7 @@ try (var client = new CopilotClient()) {
191191

192192
var session = client.createSession(
193193
new SessionConfig()
194-
.setModel("gpt-4.1")
194+
.setModel("gpt-5.4")
195195
.setOnPermissionRequest(PermissionHandler.APPROVE_ALL)
196196
).get();
197197

@@ -234,7 +234,7 @@ const client = new CopilotClient();
234234
await client.start();
235235

236236
const session = await client.createSession({
237-
model: "gpt-4.1",
237+
model: "gpt-5.4",
238238
onPermissionRequest: async () => ({ kind: "approve-once" }),
239239
});
240240

@@ -269,7 +269,7 @@ async def main():
269269

270270
session = await client.create_session(
271271
on_permission_request=lambda req, inv: PermissionDecisionApproveOnce(),
272-
model="gpt-4.1",
272+
model="gpt-5.4",
273273
)
274274

275275
# Send an initial task
@@ -311,7 +311,7 @@ func main() {
311311
client.Start(ctx)
312312

313313
session, _ := client.CreateSession(ctx, &copilot.SessionConfig{
314-
Model: "gpt-4.1",
314+
Model: "gpt-5.4",
315315
OnPermissionRequest: func(req copilot.PermissionRequest, inv copilot.PermissionInvocation) (rpc.PermissionDecision, error) {
316316
return &rpc.PermissionDecisionApproveOnce{}, nil
317317
},
@@ -371,7 +371,7 @@ public static class QueueingExample
371371
await using var client = new CopilotClient();
372372
await using var session = await client.CreateSessionAsync(new SessionConfig
373373
{
374-
Model = "gpt-4.1",
374+
Model = "gpt-5.4",
375375
OnPermissionRequest = (req, inv) =>
376376
Task.FromResult(PermissionDecision.ApproveOnce()),
377377
});
@@ -434,7 +434,7 @@ try (var client = new CopilotClient()) {
434434

435435
var session = client.createSession(
436436
new SessionConfig()
437-
.setModel("gpt-4.1")
437+
.setModel("gpt-5.4")
438438
.setOnPermissionRequest(PermissionHandler.APPROVE_ALL)
439439
).get();
440440

@@ -475,7 +475,7 @@ You can use both patterns together in a single session. Steering affects the cur
475475

476476
```typescript
477477
const session = await client.createSession({
478-
model: "gpt-4.1",
478+
model: "gpt-5.4",
479479
onPermissionRequest: async () => ({ kind: "approve-once" }),
480480
});
481481

@@ -503,7 +503,7 @@ await session.send({
503503
```python
504504
session = await client.create_session(
505505
on_permission_request=lambda req, inv: PermissionDecisionApproveOnce(),
506-
model="gpt-4.1",
506+
model="gpt-5.4",
507507
)
508508

509509
# Start a task

docs/features/streaming-events.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ func main() {
130130
client := copilot.NewClient(nil)
131131

132132
session, _ := client.CreateSession(ctx, &copilot.SessionConfig{
133-
Model: "gpt-4.1",
133+
Model: "gpt-5.4",
134134
Streaming: copilot.Bool(true),
135135
OnPermissionRequest: func(req copilot.PermissionRequest, inv copilot.PermissionInvocation) (rpc.PermissionDecision, error) {
136136
return &rpc.PermissionDecisionApproveOnce{}, nil
@@ -306,7 +306,7 @@ Ephemeral. Token usage and cost information for an individual API call.
306306

307307
| Data Field | Type | Required | Description |
308308
|------------|------|----------|-------------|
309-
| `model` | `string` || Model identifier (e.g., `"gpt-4.1"`) |
309+
| `model` | `string` || Model identifier (e.g., `"gpt-5.4"`) |
310310
| `inputTokens` | `number` | | Input tokens consumed |
311311
| `outputTokens` | `number` | | Output tokens produced |
312312
| `cacheReadTokens` | `number` | | Tokens read from prompt cache |

0 commit comments

Comments
 (0)