Skip to content

Commit 9a66417

Browse files
Merge pull request openai#404 from openai/spec-2025-01-22
Remove spec errors
2 parents 9a74d95 + 10055c9 commit 9a66417

File tree

1 file changed

+46
-54
lines changed

1 file changed

+46
-54
lines changed

openapi.yaml

Lines changed: 46 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -4028,11 +4028,6 @@ paths:
40284028
application/json:
40294029
schema:
40304030
$ref: "#/components/schemas/ApiKeyList"
4031-
security:
4032-
- bearer_identity_edge:
4033-
- key.secret
4034-
- api.management.read
4035-
- basic_identity_edge: []
40364031
x-oaiMeta:
40374032
name: List admin API keys
40384033
group: administration
@@ -4092,11 +4087,6 @@ paths:
40924087
application/json:
40934088
schema:
40944089
$ref: "#/components/schemas/AdminApiKey"
4095-
security:
4096-
- bearer_identity_edge:
4097-
- key.secret
4098-
- api.management.write
4099-
- basic_identity_edge: []
41004090
x-oaiMeta:
41014091
name: Create admin API key
41024092
group: administration
@@ -4147,11 +4137,6 @@ paths:
41474137
application/json:
41484138
schema:
41494139
$ref: "#/components/schemas/AdminApiKey"
4150-
security:
4151-
- bearer_identity_edge:
4152-
- key.secret
4153-
- api.management.read
4154-
- basic_identity_edge: []
41554140
x-oaiMeta:
41564141
name: Retrieve admin API key
41574142
group: administration
@@ -4207,11 +4192,6 @@ paths:
42074192
deleted:
42084193
type: boolean
42094194
example: true
4210-
security:
4211-
- bearer_identity_edge:
4212-
- key.secret
4213-
- api.management.write
4214-
- basic_identity_edge: []
42154195
x-oaiMeta:
42164196
name: Delete admin API key
42174197
group: administration
@@ -11704,8 +11684,9 @@ components:
1170411684

1170511685
We generally recommend altering this or temperature but not both.
1170611686
response_format:
11707-
$ref: "#/components/schemas/AssistantsApiResponseFormatOption"
11708-
nullable: true
11687+
allOf:
11688+
- $ref: "#/components/schemas/AssistantsApiResponseFormatOption"
11689+
- nullable: true
1170911690
required:
1171011691
- id
1171111692
- object
@@ -12301,10 +12282,8 @@ components:
1230112282
- session
1230212283
- api_key
1230312284
session:
12304-
type: object
1230512285
$ref: "#/components/schemas/AuditLogActorSession"
1230612286
api_key:
12307-
type: object
1230812287
$ref: "#/components/schemas/AuditLogActorApiKey"
1230912288
AuditLogActorApiKey:
1231012289
type: object
@@ -13725,8 +13704,9 @@ components:
1372513704

1372613705
We generally recommend altering this or temperature but not both.
1372713706
response_format:
13728-
$ref: "#/components/schemas/AssistantsApiResponseFormatOption"
13729-
nullable: true
13707+
allOf:
13708+
- $ref: "#/components/schemas/AssistantsApiResponseFormatOption"
13709+
- nullable: true
1373013710
required:
1373113711
- model
1373213712
CreateChatCompletionFunctionResponse:
@@ -16302,16 +16282,19 @@ components:
1630216282
for more info.
1630316283
minimum: 256
1630416284
truncation_strategy:
16305-
$ref: "#/components/schemas/TruncationObject"
16306-
nullable: true
16285+
allOf:
16286+
- $ref: "#/components/schemas/TruncationObject"
16287+
- nullable: true
1630716288
tool_choice:
16308-
$ref: "#/components/schemas/AssistantsApiToolChoiceOption"
16309-
nullable: true
16289+
allOf:
16290+
- $ref: "#/components/schemas/AssistantsApiToolChoiceOption"
16291+
- nullable: true
1631016292
parallel_tool_calls:
1631116293
$ref: "#/components/schemas/ParallelToolCalls"
1631216294
response_format:
16313-
$ref: "#/components/schemas/AssistantsApiResponseFormatOption"
16314-
nullable: true
16295+
allOf:
16296+
- $ref: "#/components/schemas/AssistantsApiResponseFormatOption"
16297+
- nullable: true
1631516298
required:
1631616299
- assistant_id
1631716300
CreateSpeechRequest:
@@ -16383,7 +16366,6 @@ components:
1638316366
type: string
1638416367
thread:
1638516368
$ref: "#/components/schemas/CreateThreadRequest"
16386-
description: If no thread is provided, an empty thread will be created.
1638716369
model:
1638816370
description: The ID of the [Model](/docs/api-reference/models) to be used to
1638916371
execute this run. If a value is provided here, it will override the
@@ -16535,20 +16517,26 @@ components:
1653516517
for more info.
1653616518
minimum: 256
1653716519
truncation_strategy:
16538-
$ref: "#/components/schemas/TruncationObject"
16539-
nullable: true
16520+
allOf:
16521+
- $ref: "#/components/schemas/TruncationObject"
16522+
- nullable: true
1654016523
tool_choice:
16541-
$ref: "#/components/schemas/AssistantsApiToolChoiceOption"
16542-
nullable: true
16524+
allOf:
16525+
- $ref: "#/components/schemas/AssistantsApiToolChoiceOption"
16526+
- nullable: true
1654316527
parallel_tool_calls:
1654416528
$ref: "#/components/schemas/ParallelToolCalls"
1654516529
response_format:
16546-
$ref: "#/components/schemas/AssistantsApiResponseFormatOption"
16547-
nullable: true
16530+
allOf:
16531+
- $ref: "#/components/schemas/AssistantsApiResponseFormatOption"
16532+
- nullable: true
1654816533
required:
1654916534
- assistant_id
1655016535
CreateThreadRequest:
1655116536
type: object
16537+
description: |
16538+
Options to create a new thread. If no thread is provided when running a
16539+
request, an empty thread will be created.
1655216540
additionalProperties: false
1655316541
properties:
1655416542
messages:
@@ -17432,10 +17420,8 @@ components:
1743217420
- supervised
1743317421
- dpo
1743417422
supervised:
17435-
type: object
1743617423
$ref: "#/components/schemas/FineTuneSupervisedMethod"
1743717424
dpo:
17438-
type: object
1743917425
$ref: "#/components/schemas/FineTuneDPOMethod"
1744017426
FineTunePreferenceRequestInput:
1744117427
type: object
@@ -19395,8 +19381,9 @@ components:
1939519381

1939619382
We generally recommend altering this or temperature but not both.
1939719383
response_format:
19398-
$ref: "#/components/schemas/AssistantsApiResponseFormatOption"
19399-
nullable: true
19384+
allOf:
19385+
- $ref: "#/components/schemas/AssistantsApiResponseFormatOption"
19386+
- nullable: true
1940019387
ModifyMessageRequest:
1940119388
type: object
1940219389
additionalProperties: false
@@ -23569,16 +23556,19 @@ components:
2356923556
over the course of the run.
2357023557
minimum: 256
2357123558
truncation_strategy:
23572-
$ref: "#/components/schemas/TruncationObject"
23573-
nullable: true
23559+
allOf:
23560+
- $ref: "#/components/schemas/TruncationObject"
23561+
- nullable: true
2357423562
tool_choice:
23575-
$ref: "#/components/schemas/AssistantsApiToolChoiceOption"
23576-
nullable: true
23563+
allOf:
23564+
- $ref: "#/components/schemas/AssistantsApiToolChoiceOption"
23565+
- nullable: true
2357723566
parallel_tool_calls:
2357823567
$ref: "#/components/schemas/ParallelToolCalls"
2357923568
response_format:
23580-
$ref: "#/components/schemas/AssistantsApiResponseFormatOption"
23581-
nullable: true
23569+
allOf:
23570+
- $ref: "#/components/schemas/AssistantsApiResponseFormatOption"
23571+
- nullable: true
2358223572
required:
2358323573
- id
2358423574
- object
@@ -24897,8 +24887,9 @@ components:
2489724887
type: string
2489824888
nullable: true
2489924889
expires_after:
24900-
$ref: "#/components/schemas/VectorStoreExpirationAfter"
24901-
nullable: true
24890+
allOf:
24891+
- $ref: "#/components/schemas/VectorStoreExpirationAfter"
24892+
- nullable: true
2490224893
metadata:
2490324894
description: >
2490424895
Set of 16 key-value pairs that can be attached to an object. This
@@ -24950,9 +24941,10 @@ components:
2495024941
- upload
2495124942
x-stainless-const: true
2495224943
file:
24953-
$ref: "#/components/schemas/OpenAIFile"
24954-
nullable: true
24955-
description: The ready File object after the Upload is completed.
24944+
allOf:
24945+
- $ref: "#/components/schemas/OpenAIFile"
24946+
- nullable: true
24947+
description: The ready File object after the Upload is completed.
2495624948
required:
2495724949
- bytes
2495824950
- created_at

0 commit comments

Comments
 (0)