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: 565
10 host: ""
11 body: '{"max_output_tokens":4000,"store":false,"input":[{"content":[{"text":"Generate information about a person named Alice who is 30 years old and lives in Paris.","type":"input_text"}],"role":"user"}],"model":"gpt-4o","text":{"format":{"name":"Person","schema":{"additionalProperties":false,"properties":{"age":{"description":"The person''s age","type":"integer"},"city":{"description":"The city where the person lives","type":"string"},"name":{"description":"The person''s name","type":"string"}},"required":["name","age","city"],"type":"object"},"type":"json_schema"}}}'
12 headers:
13 Accept:
14 - application/json
15 Content-Type:
16 - application/json
17 User-Agent:
18 - Charm-Fantasy/0.12.2 (https://charm.land/fantasy)
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_04b6957cb7b8f7600169b3198ed94481a08757c7617e8812e6",
30 "object": "response",
31 "created_at": 1773345166,
32 "status": "completed",
33 "background": false,
34 "billing": {
35 "payer": "developer"
36 },
37 "completed_at": 1773345167,
38 "error": null,
39 "frequency_penalty": 0.0,
40 "incomplete_details": null,
41 "instructions": null,
42 "max_output_tokens": 4000,
43 "max_tool_calls": null,
44 "model": "gpt-4o-2024-08-06",
45 "output": [
46 {
47 "id": "msg_04b6957cb7b8f7600169b3198f1dd881a0bc0ff95d58fb2270",
48 "type": "message",
49 "status": "completed",
50 "content": [
51 {
52 "type": "output_text",
53 "annotations": [],
54 "logprobs": [],
55 "text": "{\"age\":30,\"city\":\"Paris\",\"name\":\"Alice\"}"
56 }
57 ],
58 "role": "assistant"
59 }
60 ],
61 "parallel_tool_calls": true,
62 "presence_penalty": 0.0,
63 "previous_response_id": null,
64 "prompt_cache_key": null,
65 "prompt_cache_retention": null,
66 "reasoning": {
67 "effort": null,
68 "summary": null
69 },
70 "safety_identifier": null,
71 "service_tier": "default",
72 "store": false,
73 "temperature": 1.0,
74 "text": {
75 "format": {
76 "type": "json_schema",
77 "description": null,
78 "name": "Person",
79 "schema": {
80 "additionalProperties": false,
81 "properties": {
82 "age": {
83 "description": "The person's age",
84 "type": "integer"
85 },
86 "city": {
87 "description": "The city where the person lives",
88 "type": "string"
89 },
90 "name": {
91 "description": "The person's name",
92 "type": "string"
93 }
94 },
95 "required": [
96 "name",
97 "age",
98 "city"
99 ],
100 "type": "object"
101 },
102 "strict": true
103 },
104 "verbosity": "medium"
105 },
106 "tool_choice": "auto",
107 "tools": [],
108 "top_logprobs": 0,
109 "top_p": 1.0,
110 "truncation": "disabled",
111 "usage": {
112 "input_tokens": 82,
113 "input_tokens_details": {
114 "cached_tokens": 0
115 },
116 "output_tokens": 14,
117 "output_tokens_details": {
118 "reasoning_tokens": 0
119 },
120 "total_tokens": 96
121 },
122 "user": null,
123 "metadata": {}
124 }
125 headers:
126 Content-Type:
127 - application/json
128 status: 200 OK
129 code: 200
130 duration: 579.660458ms