1---
2version: 2
3interactions:
4- id: 0
5 request:
6 proto: HTTP/1.1
7 proto_major: 1
8 proto_minor: 1
9 content_length: 910
10 host: ""
11 body: '{"max_output_tokens":4000,"store":false,"input":[{"content":[{"text":"Generate information about ''The Lord of the Rings'' book by J.R.R. Tolkien, including genres like fantasy and adventure, and its publication year (1954).","type":"input_text"}],"role":"user"}],"model":"gpt-4o","text":{"format":{"name":"Book","schema":{"additionalProperties":false,"properties":{"author":{"additionalProperties":false,"properties":{"name":{"description":"Author''s name","type":"string"},"nationality":{"description":"Author''s nationality","type":"string"}},"required":["name","nationality"],"type":"object"},"genres":{"description":"List of genres","items":{"type":"string"},"type":"array"},"published_year":{"description":"Year the book was published","type":"integer"},"title":{"description":"The book title","type":"string"}},"required":["title","author","genres","published_year"],"type":"object"},"type":"json_schema"}}}'
12 headers:
13 Accept:
14 - application/json
15 Content-Type:
16 - application/json
17 User-Agent:
18 - OpenAI/Go 2.7.1
19 url: https://api.openai.com/v1/responses
20 method: POST
21 response:
22 proto: HTTP/2.0
23 proto_major: 2
24 proto_minor: 0
25 content_length: -1
26 uncompressed: true
27 body: |-
28 {
29 "id": "resp_00fee2bcbce77a6b01690fb5e194848191a77c3f9796902417",
30 "object": "response",
31 "created_at": 1762637281,
32 "status": "completed",
33 "background": false,
34 "billing": {
35 "payer": "developer"
36 },
37 "error": null,
38 "incomplete_details": null,
39 "instructions": null,
40 "max_output_tokens": 4000,
41 "max_tool_calls": null,
42 "model": "gpt-4o-2024-08-06",
43 "output": [
44 {
45 "id": "msg_00fee2bcbce77a6b01690fb5e25dfc8191b275e2c92a87865a",
46 "type": "message",
47 "status": "completed",
48 "content": [
49 {
50 "type": "output_text",
51 "annotations": [],
52 "logprobs": [],
53 "text": "{\"author\":{\"name\":\"J.R.R. Tolkien\",\"nationality\":\"British\"},\"genres\":[\"Fantasy\",\"Adventure\"],\"published_year\":1954,\"title\":\"The Lord of the Rings\"}"
54 }
55 ],
56 "role": "assistant"
57 }
58 ],
59 "parallel_tool_calls": true,
60 "previous_response_id": null,
61 "prompt_cache_key": null,
62 "prompt_cache_retention": null,
63 "reasoning": {
64 "effort": null,
65 "summary": null
66 },
67 "safety_identifier": null,
68 "service_tier": "default",
69 "store": false,
70 "temperature": 1.0,
71 "text": {
72 "format": {
73 "type": "json_schema",
74 "description": null,
75 "name": "Book",
76 "schema": {
77 "additionalProperties": false,
78 "properties": {
79 "author": {
80 "additionalProperties": false,
81 "properties": {
82 "name": {
83 "description": "Author's name",
84 "type": "string"
85 },
86 "nationality": {
87 "description": "Author's nationality",
88 "type": "string"
89 }
90 },
91 "required": [
92 "name",
93 "nationality"
94 ],
95 "type": "object"
96 },
97 "genres": {
98 "description": "List of genres",
99 "items": {
100 "type": "string"
101 },
102 "type": "array"
103 },
104 "published_year": {
105 "description": "Year the book was published",
106 "type": "integer"
107 },
108 "title": {
109 "description": "The book title",
110 "type": "string"
111 }
112 },
113 "required": [
114 "title",
115 "author",
116 "genres",
117 "published_year"
118 ],
119 "type": "object"
120 },
121 "strict": true
122 },
123 "verbosity": "medium"
124 },
125 "tool_choice": "auto",
126 "tools": [],
127 "top_logprobs": 0,
128 "top_p": 1.0,
129 "truncation": "disabled",
130 "usage": {
131 "input_tokens": 140,
132 "input_tokens_details": {
133 "cached_tokens": 0
134 },
135 "output_tokens": 39,
136 "output_tokens_details": {
137 "reasoning_tokens": 0
138 },
139 "total_tokens": 179
140 },
141 "user": null,
142 "metadata": {}
143 }
144 headers:
145 Content-Type:
146 - application/json
147 status: 200 OK
148 code: 200
149 duration: 1.348413375s