simple.yaml

  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: 205
 10    host: ""
 11    body: '{"max_output_tokens":4000,"store":false,"input":[{"content":"You are a helpful assistant","role":"system"},{"content":[{"text":"Say hi in Portuguese","type":"input_text"}],"role":"user"}],"model":"gpt-4o"}'
 12    headers:
 13      Accept:
 14      - application/json
 15      Content-Type:
 16      - application/json
 17      User-Agent:
 18      - OpenAI/Go 2.3.0
 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_07891da4b653e1470168f237de167081909c53deff29e333b8",
 30        "object": "response",
 31        "created_at": 1760704478,
 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_07891da4b653e1470168f237deab0c8190be2fd9591e3d9afa",
 46            "type": "message",
 47            "status": "completed",
 48            "content": [
 49              {
 50                "type": "output_text",
 51                "annotations": [],
 52                "logprobs": [],
 53                "text": "Ol\u00e1!"
 54              }
 55            ],
 56            "role": "assistant"
 57          }
 58        ],
 59        "parallel_tool_calls": true,
 60        "previous_response_id": null,
 61        "prompt_cache_key": null,
 62        "reasoning": {
 63          "effort": null,
 64          "summary": null
 65        },
 66        "safety_identifier": null,
 67        "service_tier": "default",
 68        "store": false,
 69        "temperature": 1.0,
 70        "text": {
 71          "format": {
 72            "type": "text"
 73          },
 74          "verbosity": "medium"
 75        },
 76        "tool_choice": "auto",
 77        "tools": [],
 78        "top_logprobs": 0,
 79        "top_p": 1.0,
 80        "truncation": "disabled",
 81        "usage": {
 82          "input_tokens": 20,
 83          "input_tokens_details": {
 84            "cached_tokens": 0
 85          },
 86          "output_tokens": 3,
 87          "output_tokens_details": {
 88            "reasoning_tokens": 0
 89          },
 90          "total_tokens": 23
 91        },
 92        "user": null,
 93        "metadata": {}
 94      }
 95    headers:
 96      Content-Type:
 97      - application/json
 98    status: 200 OK
 99    code: 200
100    duration: 941.245125ms