diff --git a/swagger/docs.go b/swagger/docs.go index 815bb3602d30..f08163989968 100644 --- a/swagger/docs.go +++ b/swagger/docs.go @@ -2617,6 +2617,73 @@ const docTemplate = `{ } } }, + "schema.ORAnnotation": { + "type": "object", + "properties": { + "end_index": { + "type": "integer" + }, + "start_index": { + "type": "integer" + }, + "title": { + "type": "string" + }, + "type": { + "description": "url_citation", + "type": "string" + }, + "url": { + "type": "string" + } + } + }, + "schema.ORContentPart": { + "type": "object", + "properties": { + "annotations": { + "description": "REQUIRED for output_text - must always be present (use [])", + "type": "array", + "items": { + "$ref": "#/definitions/schema.ORAnnotation" + } + }, + "detail": { + "description": "low|high|auto for images", + "type": "string" + }, + "file_data": { + "type": "string" + }, + "file_url": { + "type": "string" + }, + "filename": { + "type": "string" + }, + "image_url": { + "type": "string" + }, + "logprobs": { + "description": "REQUIRED for output_text - must always be present (use [])", + "type": "array", + "items": { + "$ref": "#/definitions/schema.ORLogProb" + } + }, + "refusal": { + "type": "string" + }, + "text": { + "description": "REQUIRED for output_text - must always be present (even if empty)", + "type": "string" + }, + "type": { + "description": "input_text|input_image|input_file|output_text|refusal", + "type": "string" + } + } + }, "schema.ORError": { "type": "object", "properties": { @@ -2688,6 +2755,10 @@ const docTemplate = `{ "content": { "description": "string or []ORContentPart for messages" }, + "encrypted_content": { + "description": "Provider-specific encrypted content", + "type": "string" + }, "id": { "description": "Present for all output items", "type": "string" @@ -2706,12 +2777,42 @@ const docTemplate = `{ "description": "in_progress|completed|incomplete", "type": "string" }, + "summary": { + "description": "Reasoning fields (for type == \"reasoning\")", + "type": "array", + "items": { + "$ref": "#/definitions/schema.ORContentPart" + } + }, "type": { "description": "message|function_call|function_call_output|reasoning|item_reference", "type": "string" } } }, + "schema.ORLogProb": { + "type": "object", + "properties": { + "bytes": { + "type": "array", + "items": { + "type": "integer" + } + }, + "logprob": { + "type": "number" + }, + "token": { + "type": "string" + }, + "top_logprobs": { + "type": "array", + "items": { + "$ref": "#/definitions/schema.ORTopLogProb" + } + } + } + }, "schema.OROutputTokensDetails": { "type": "object", "properties": { @@ -2903,6 +3004,23 @@ const docTemplate = `{ } } }, + "schema.ORTopLogProb": { + "type": "object", + "properties": { + "bytes": { + "type": "array", + "items": { + "type": "integer" + } + }, + "logprob": { + "type": "number" + }, + "token": { + "type": "string" + } + } + }, "schema.ORUsage": { "type": "object", "properties": { diff --git a/swagger/swagger.json b/swagger/swagger.json index 676edfe617e2..853d7227d08c 100644 --- a/swagger/swagger.json +++ b/swagger/swagger.json @@ -2610,6 +2610,73 @@ } } }, + "schema.ORAnnotation": { + "type": "object", + "properties": { + "end_index": { + "type": "integer" + }, + "start_index": { + "type": "integer" + }, + "title": { + "type": "string" + }, + "type": { + "description": "url_citation", + "type": "string" + }, + "url": { + "type": "string" + } + } + }, + "schema.ORContentPart": { + "type": "object", + "properties": { + "annotations": { + "description": "REQUIRED for output_text - must always be present (use [])", + "type": "array", + "items": { + "$ref": "#/definitions/schema.ORAnnotation" + } + }, + "detail": { + "description": "low|high|auto for images", + "type": "string" + }, + "file_data": { + "type": "string" + }, + "file_url": { + "type": "string" + }, + "filename": { + "type": "string" + }, + "image_url": { + "type": "string" + }, + "logprobs": { + "description": "REQUIRED for output_text - must always be present (use [])", + "type": "array", + "items": { + "$ref": "#/definitions/schema.ORLogProb" + } + }, + "refusal": { + "type": "string" + }, + "text": { + "description": "REQUIRED for output_text - must always be present (even if empty)", + "type": "string" + }, + "type": { + "description": "input_text|input_image|input_file|output_text|refusal", + "type": "string" + } + } + }, "schema.ORError": { "type": "object", "properties": { @@ -2681,6 +2748,10 @@ "content": { "description": "string or []ORContentPart for messages" }, + "encrypted_content": { + "description": "Provider-specific encrypted content", + "type": "string" + }, "id": { "description": "Present for all output items", "type": "string" @@ -2699,12 +2770,42 @@ "description": "in_progress|completed|incomplete", "type": "string" }, + "summary": { + "description": "Reasoning fields (for type == \"reasoning\")", + "type": "array", + "items": { + "$ref": "#/definitions/schema.ORContentPart" + } + }, "type": { "description": "message|function_call|function_call_output|reasoning|item_reference", "type": "string" } } }, + "schema.ORLogProb": { + "type": "object", + "properties": { + "bytes": { + "type": "array", + "items": { + "type": "integer" + } + }, + "logprob": { + "type": "number" + }, + "token": { + "type": "string" + }, + "top_logprobs": { + "type": "array", + "items": { + "$ref": "#/definitions/schema.ORTopLogProb" + } + } + } + }, "schema.OROutputTokensDetails": { "type": "object", "properties": { @@ -2896,6 +2997,23 @@ } } }, + "schema.ORTopLogProb": { + "type": "object", + "properties": { + "bytes": { + "type": "array", + "items": { + "type": "integer" + } + }, + "logprob": { + "type": "number" + }, + "token": { + "type": "string" + } + } + }, "schema.ORUsage": { "type": "object", "properties": { diff --git a/swagger/swagger.yaml b/swagger/swagger.yaml index cba2fc218ff5..7c5ce5e6b9c5 100644 --- a/swagger/swagger.yaml +++ b/swagger/swagger.yaml @@ -742,6 +742,52 @@ definitions: tunnelAddress: type: string type: object + schema.ORAnnotation: + properties: + end_index: + type: integer + start_index: + type: integer + title: + type: string + type: + description: url_citation + type: string + url: + type: string + type: object + schema.ORContentPart: + properties: + annotations: + description: REQUIRED for output_text - must always be present (use []) + items: + $ref: '#/definitions/schema.ORAnnotation' + type: array + detail: + description: low|high|auto for images + type: string + file_data: + type: string + file_url: + type: string + filename: + type: string + image_url: + type: string + logprobs: + description: REQUIRED for output_text - must always be present (use []) + items: + $ref: '#/definitions/schema.ORLogProb' + type: array + refusal: + type: string + text: + description: REQUIRED for output_text - must always be present (even if empty) + type: string + type: + description: input_text|input_image|input_file|output_text|refusal + type: string + type: object schema.ORError: properties: code: @@ -790,6 +836,9 @@ definitions: type: string content: description: string or []ORContentPart for messages + encrypted_content: + description: Provider-specific encrypted content + type: string id: description: Present for all output items type: string @@ -803,10 +852,30 @@ definitions: status: description: in_progress|completed|incomplete type: string + summary: + description: Reasoning fields (for type == "reasoning") + items: + $ref: '#/definitions/schema.ORContentPart' + type: array type: description: message|function_call|function_call_output|reasoning|item_reference type: string type: object + schema.ORLogProb: + properties: + bytes: + items: + type: integer + type: array + logprob: + type: number + token: + type: string + top_logprobs: + items: + $ref: '#/definitions/schema.ORTopLogProb' + type: array + type: object schema.OROutputTokensDetails: properties: reasoning_tokens: @@ -931,6 +1000,17 @@ definitions: description: '"text" or "json_schema"' type: string type: object + schema.ORTopLogProb: + properties: + bytes: + items: + type: integer + type: array + logprob: + type: number + token: + type: string + type: object schema.ORUsage: properties: input_tokens: