Skip to content

Commit 25512af

Browse files
authored
Merge pull request #120 from togethercomputer/make-warnings-generalized
Move warnings to a top level type to simplify consistent access
2 parents 3e52604 + 31c26d3 commit 25512af

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

openapi.yaml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3348,6 +3348,14 @@ components:
33483348
logprobs:
33493349
$ref: '#/components/schemas/LogprobsPart'
33503350

3351+
InferenceWarning:
3352+
type: object
3353+
required:
3354+
- message
3355+
properties:
3356+
message:
3357+
type: string
3358+
33513359
UsageData:
33523360
type: object
33533361
properties:
@@ -3995,10 +4003,7 @@ components:
39954003
warnings:
39964004
type: array
39974005
items:
3998-
type: object
3999-
properties:
4000-
message:
4001-
type: string
4006+
$ref: '#/components/schemas/InferenceWarning'
40024007
required: [choices, id, created, model, object]
40034008

40044009
ChatCompletionStream:
@@ -4084,10 +4089,7 @@ components:
40844089
warnings:
40854090
type: array
40864091
items:
4087-
type: object
4088-
properties:
4089-
message:
4090-
type: string
4092+
$ref: '#/components/schemas/InferenceWarning'
40914093
AudioSpeechRequest:
40924094
type: object
40934095
required:

0 commit comments

Comments
 (0)