Skip to content

Commit 5082189

Browse files
committed
feat(models): add GPT-5.4 fast mode support
1 parent fe65fa5 commit 5082189

57 files changed

Lines changed: 1697 additions & 148 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

code-rs/app-server-protocol/schema/json/ClientRequest.json

Lines changed: 54 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -662,6 +662,16 @@
662662
},
663663
{
664664
"properties": {
665+
"detail": {
666+
"anyOf": [
667+
{
668+
"$ref": "#/definitions/ImageDetail"
669+
},
670+
{
671+
"type": "null"
672+
}
673+
]
674+
},
665675
"image_url": {
666676
"type": "string"
667677
},
@@ -808,6 +818,15 @@
808818
],
809819
"type": "object"
810820
},
821+
"ImageDetail": {
822+
"enum": [
823+
"auto",
824+
"low",
825+
"high",
826+
"original"
827+
],
828+
"type": "string"
829+
},
811830
"InitializeCapabilities": {
812831
"description": "Client-declared capabilities negotiated during initialize.",
813832
"properties": {
@@ -1722,7 +1741,7 @@
17221741
"type": "string"
17231742
},
17241743
"output": {
1725-
"type": "string"
1744+
"$ref": "#/definitions/FunctionCallOutputPayload"
17261745
},
17271746
"type": {
17281747
"enum": [
@@ -1779,6 +1798,40 @@
17791798
"title": "WebSearchCallResponseItem",
17801799
"type": "object"
17811800
},
1801+
{
1802+
"properties": {
1803+
"id": {
1804+
"type": "string"
1805+
},
1806+
"result": {
1807+
"type": "string"
1808+
},
1809+
"revised_prompt": {
1810+
"type": [
1811+
"string",
1812+
"null"
1813+
]
1814+
},
1815+
"status": {
1816+
"type": "string"
1817+
},
1818+
"type": {
1819+
"enum": [
1820+
"image_generation_call"
1821+
],
1822+
"title": "ImageGenerationCallResponseItemType",
1823+
"type": "string"
1824+
}
1825+
},
1826+
"required": [
1827+
"id",
1828+
"result",
1829+
"status",
1830+
"type"
1831+
],
1832+
"title": "ImageGenerationCallResponseItem",
1833+
"type": "object"
1834+
},
17821835
{
17831836
"properties": {
17841837
"ghost_commit": {

code-rs/app-server-protocol/schema/json/EventMsg.json

Lines changed: 54 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3069,6 +3069,16 @@
30693069
},
30703070
{
30713071
"properties": {
3072+
"detail": {
3073+
"anyOf": [
3074+
{
3075+
"$ref": "#/definitions/ImageDetail"
3076+
},
3077+
{
3078+
"type": "null"
3079+
}
3080+
]
3081+
},
30723082
"image_url": {
30733083
"type": "string"
30743084
},
@@ -3146,6 +3156,15 @@
31463156
],
31473157
"type": "object"
31483158
},
3159+
"ImageDetail": {
3160+
"enum": [
3161+
"auto",
3162+
"low",
3163+
"high",
3164+
"original"
3165+
],
3166+
"type": "string"
3167+
},
31493168
"LocalShellAction": {
31503169
"oneOf": [
31513170
{
@@ -4171,7 +4190,7 @@
41714190
"type": "string"
41724191
},
41734192
"output": {
4174-
"type": "string"
4193+
"$ref": "#/definitions/FunctionCallOutputPayload"
41754194
},
41764195
"type": {
41774196
"enum": [
@@ -4228,6 +4247,40 @@
42284247
"title": "WebSearchCallResponseItem",
42294248
"type": "object"
42304249
},
4250+
{
4251+
"properties": {
4252+
"id": {
4253+
"type": "string"
4254+
},
4255+
"result": {
4256+
"type": "string"
4257+
},
4258+
"revised_prompt": {
4259+
"type": [
4260+
"string",
4261+
"null"
4262+
]
4263+
},
4264+
"status": {
4265+
"type": "string"
4266+
},
4267+
"type": {
4268+
"enum": [
4269+
"image_generation_call"
4270+
],
4271+
"title": "ImageGenerationCallResponseItemType",
4272+
"type": "string"
4273+
}
4274+
},
4275+
"required": [
4276+
"id",
4277+
"result",
4278+
"status",
4279+
"type"
4280+
],
4281+
"title": "ImageGenerationCallResponseItem",
4282+
"type": "object"
4283+
},
42314284
{
42324285
"properties": {
42334286
"ghost_commit": {

code-rs/app-server-protocol/schema/json/ServerNotification.json

Lines changed: 54 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3780,6 +3780,16 @@
37803780
},
37813781
{
37823782
"properties": {
3783+
"detail": {
3784+
"anyOf": [
3785+
{
3786+
"$ref": "#/definitions/ImageDetail"
3787+
},
3788+
{
3789+
"type": "null"
3790+
}
3791+
]
3792+
},
37833793
"image_url": {
37843794
"type": "string"
37853795
},
@@ -3880,6 +3890,15 @@
38803890
],
38813891
"type": "object"
38823892
},
3893+
"ImageDetail": {
3894+
"enum": [
3895+
"auto",
3896+
"low",
3897+
"high",
3898+
"original"
3899+
],
3900+
"type": "string"
3901+
},
38833902
"ItemCompletedNotification": {
38843903
"properties": {
38853904
"item": {
@@ -5314,7 +5333,7 @@
53145333
"type": "string"
53155334
},
53165335
"output": {
5317-
"type": "string"
5336+
"$ref": "#/definitions/FunctionCallOutputPayload"
53185337
},
53195338
"type": {
53205339
"enum": [
@@ -5371,6 +5390,40 @@
53715390
"title": "WebSearchCallResponseItem",
53725391
"type": "object"
53735392
},
5393+
{
5394+
"properties": {
5395+
"id": {
5396+
"type": "string"
5397+
},
5398+
"result": {
5399+
"type": "string"
5400+
},
5401+
"revised_prompt": {
5402+
"type": [
5403+
"string",
5404+
"null"
5405+
]
5406+
},
5407+
"status": {
5408+
"type": "string"
5409+
},
5410+
"type": {
5411+
"enum": [
5412+
"image_generation_call"
5413+
],
5414+
"title": "ImageGenerationCallResponseItemType",
5415+
"type": "string"
5416+
}
5417+
},
5418+
"required": [
5419+
"id",
5420+
"result",
5421+
"status",
5422+
"type"
5423+
],
5424+
"title": "ImageGenerationCallResponseItem",
5425+
"type": "object"
5426+
},
53745427
{
53755428
"properties": {
53765429
"ghost_commit": {

0 commit comments

Comments
 (0)