@@ -9073,8 +9073,9 @@ components:
90739073 - 'title'
90749074 type: 'object'
90759075 GenerationContentData:
9076- description: 'Stored prompt and completion content'
9076+ description: 'Stored prompt and completion content, plus the failure error when one was stored '
90779077 example:
9078+ error: null
90789079 input:
90799080 messages:
90809081 - content: 'What is the meaning of life?'
@@ -9083,6 +9084,8 @@ components:
90839084 completion: 'The meaning of life is a philosophical question...'
90849085 reasoning: null
90859086 properties:
9087+ error:
9088+ $ref: '#/components/schemas/GenerationContentError'
90869089 input:
90879090 anyOf:
90889091 - properties:
@@ -9125,11 +9128,98 @@ components:
91259128 required:
91269129 - 'input'
91279130 - 'output'
9131+ - 'error'
9132+ type: 'object'
9133+ GenerationContentError:
9134+ description: 'The stored failure for this generation, or null when it succeeded'
9135+ example:
9136+ message: 'Timed out waiting for the provider'
9137+ previous_errors:
9138+ - code: 429
9139+ message: 'Provider returned error'
9140+ provider_name: 'Google'
9141+ raw: '{"error":{"code":429,"message":"Resource exhausted"}}'
9142+ provider_name: 'Vertex'
9143+ raw: '{"error":{"code":504,"message":"Deadline exceeded"}}'
9144+ status: 504
9145+ properties:
9146+ message:
9147+ description: 'Error message returned to the client'
9148+ example: 'Timed out waiting for the provider'
9149+ type:
9150+ - 'string'
9151+ - 'null'
9152+ previous_errors:
9153+ description: 'Every upstream attempt that failed before the returned error, in attempt order'
9154+ items:
9155+ $ref: '#/components/schemas/GenerationContentErrorAttempt'
9156+ type: 'array'
9157+ provider_name:
9158+ description: 'Provider whose error was returned to the client, when known'
9159+ example: 'Vertex'
9160+ type:
9161+ - 'string'
9162+ - 'null'
9163+ raw:
9164+ description: 'Raw error body behind the returned error, when stored'
9165+ example: '{"error":{"code":504,"message":"Deadline exceeded"}}'
9166+ type:
9167+ - 'string'
9168+ - 'null'
9169+ status:
9170+ description: 'HTTP status returned to the client'
9171+ example: 504
9172+ type:
9173+ - 'integer'
9174+ - 'null'
9175+ required:
9176+ - 'status'
9177+ - 'message'
9178+ - 'provider_name'
9179+ - 'raw'
9180+ - 'previous_errors'
9181+ type:
9182+ - 'object'
9183+ - 'null'
9184+ GenerationContentErrorAttempt:
9185+ description: 'A single failed upstream attempt recorded for the generation'
9186+ example:
9187+ code: 429
9188+ message: 'Provider returned error'
9189+ provider_name: 'Google'
9190+ raw: '{"error":{"code":429,"message":"Resource exhausted"}}'
9191+ properties:
9192+ code:
9193+ description: 'HTTP status returned by this attempt'
9194+ example: 429
9195+ type: 'integer'
9196+ message:
9197+ description: 'Error message returned by this attempt'
9198+ example: 'Provider returned error'
9199+ type: 'string'
9200+ provider_name:
9201+ description: 'Provider that served this attempt, when known'
9202+ example: 'Google'
9203+ type:
9204+ - 'string'
9205+ - 'null'
9206+ raw:
9207+ description: 'Raw error body returned by the provider, when stored'
9208+ example: '{"error":{"code":429,"message":"Resource exhausted"}}'
9209+ type:
9210+ - 'string'
9211+ - 'null'
9212+ required:
9213+ - 'code'
9214+ - 'message'
9215+ - 'provider_name'
9216+ - 'raw'
91289217 type: 'object'
91299218 GenerationContentResponse:
91309219 description: 'Stored prompt and completion content for a generation'
91319220 example:
91329221 data:
9222+ error: null
91339223 input:
91349224 messages:
91359225 - content: 'What is the meaning of life?'
@@ -30110,16 +30200,26 @@ paths:
3011030200 application/json:
3011130201 example:
3011230202 data:
30203+ error:
30204+ message: 'Timed out waiting for the provider'
30205+ previous_errors:
30206+ - code: 429
30207+ message: 'Provider returned error'
30208+ provider_name: 'Google'
30209+ raw: '{"error":{"code":429,"message":"Resource exhausted"}}'
30210+ provider_name: 'Vertex'
30211+ raw: '{"error":{"code":504,"message":"Deadline exceeded"}}'
30212+ status: 504
3011330213 input:
3011430214 messages:
3011530215 - content: 'What is the meaning of life?'
3011630216 role: 'user'
3011730217 output:
30118- completion: 'The meaning of life is a philosophical question...'
30218+ completion: null
3011930219 reasoning: null
3012030220 schema:
3012130221 $ref: '#/components/schemas/GenerationContentResponse'
30122- description: 'Returns the stored prompt and completion content'
30222+ description: 'Returns the stored prompt and completion content, plus the failure error when the generation failed '
3012330223 '401':
3012430224 content:
3012530225 application/json:
@@ -30200,7 +30300,7 @@ paths:
3020030300 schema:
3020130301 $ref: '#/components/schemas/ProviderOverloadedResponse'
3020230302 description: 'Provider Overloaded - Provider is temporarily overloaded'
30203- summary: 'Get stored prompt and completion content for a generation'
30303+ summary: 'Get stored prompt, completion, and error content for a generation'
3020430304 tags:
3020530305 - 'Generations'
3020630306 /generation/feedback:
0 commit comments