@@ -23,12 +23,18 @@ paths:
23
23
application/json :
24
24
schema :
25
25
$ref : ' #/components/schemas/ClassifiedGeneratedTextResult'
26
+ ' 404 ' :
27
+ description : Resource Not Found
28
+ content :
29
+ application/json :
30
+ schema :
31
+ $ref : ' #/components/schemas/Error'
26
32
' 422 ' :
27
33
description : Validation Error
28
34
content :
29
35
application/json :
30
36
schema :
31
- $ref : ' #/components/schemas/HTTPValidationError '
37
+ $ref : ' #/components/schemas/Error '
32
38
/api/v1/task/server-streaming-classification-with-text-generation :
33
39
post :
34
40
tags :
@@ -49,12 +55,18 @@ paths:
49
55
application/json :
50
56
schema :
51
57
$ref : ' #/components/schemas/ClassifiedGeneratedTextStreamResult'
58
+ ' 404 ' :
59
+ description : Resource Not Found
60
+ content :
61
+ application/json :
62
+ schema :
63
+ $ref : ' #/components/schemas/Error'
52
64
' 422 ' :
53
65
description : Validation Error
54
66
content :
55
67
application/json :
56
68
schema :
57
- $ref : ' #/components/schemas/HTTPValidationError '
69
+ $ref : ' #/components/schemas/Error '
58
70
components :
59
71
schemas :
60
72
ClassifiedGeneratedTextResult :
@@ -156,6 +168,16 @@ components:
156
168
required : ["input_token_count", "token_classification_results", "start_index"]
157
169
type : object
158
170
title : ClassifiedGeneratedTextStreamResult
171
+ Error :
172
+ type : object
173
+ properties :
174
+ code :
175
+ type : string
176
+ details :
177
+ type : string
178
+ required :
179
+ - code
180
+ - details
159
181
ExponentialDecayLengthPenalty :
160
182
properties :
161
183
start_index :
@@ -299,15 +321,6 @@ components:
299
321
additionalProperties : false
300
322
type : object
301
323
title : GuardrailsTextGenerationParameters
302
- HTTPValidationError :
303
- properties :
304
- detail :
305
- items :
306
- $ref : ' #/components/schemas/ValidationError'
307
- type : array
308
- title : Detail
309
- type : object
310
- title : HTTPValidationError
311
324
InputWarning :
312
325
properties :
313
326
id :
@@ -368,24 +381,3 @@ components:
368
381
required : ["start", "end", "word", "entity", "entity_group", "score"]
369
382
type : object
370
383
title : TokenClassificationResult
371
- ValidationError :
372
- properties :
373
- loc :
374
- items :
375
- anyOf :
376
- - type : string
377
- - type : integer
378
- type : array
379
- title : Location
380
- msg :
381
- type : string
382
- title : Message
383
- type :
384
- type : string
385
- title : Error Type
386
- type : object
387
- required :
388
- - loc
389
- - msg
390
- - type
391
- title : ValidationError
0 commit comments