interactions: - request: body: '{"messages": [{"role": "user", "content": "Write a 5 word story via print_story"}], "model": "gpt-4o-2024-08-06", "temperature": 0.1, "tool_choice": "required", "tools": [{"type": "function", "function": {"name": "print_story", "description": "Print a story.", "parameters": {"type": "object", "properties": {"story": {"description": "Story to print.", "title": "Story", "type": "string"}}, "required": ["story"]}}}, {"type": "function", "function": {"name": "cast_float", "description": "Cast the input argument x to a float.", "parameters": {"type": "object", "properties": {"x": {"title": "X", "type": "string"}}, "required": ["x"]}}}, {"type": "function", "function": {"name": "cast_int", "description": "Cast the input argument x to an integer.", "parameters": {"type": "object", "properties": {"x": {"title": "X", "type": "number"}}, "required": ["x"]}}}]}' headers: accept: - application/json accept-encoding: - gzip, deflate connection: - keep-alive content-length: - "862" content-type: - application/json host: - api.openai.com user-agent: - AsyncOpenAI/Python 1.44.1 x-stainless-arch: - arm64 x-stainless-async: - async:asyncio x-stainless-lang: - python x-stainless-os: - MacOS x-stainless-package-version: - 1.44.1 x-stainless-raw-response: - "true" x-stainless-runtime: - CPython x-stainless-runtime-version: - 3.12.5 method: POST uri: https://api.openai.com/v1/chat/completions response: body: string: !!binary | H4sIAAAAAAAAAwAAAP//bFLLbptAFN3zFaO7NhEQ5GB2abJIValJlVZtU1doGA8w8bw6c0mLLf97 xSM2scICje6Z8+Bc9gEhIDaQE2ANRaasDK+XD1ffl1RnP9SXP3efnm825f3t14fPP7v7eAuLnmHK Z87wlXXBjLKSozB6hJnjFHmvGl8lyyhbZat0AJTZcNnTaothasIkStIwysJoOREbIxj3kJNfASGE 7Id3H1Fv+D/ISbR4nSjuPa055MdLhIAzsp8A9V54pBphcQKZ0ch1n1q3Us4ANEYWjEp5Mh6f/ex8 6olKWWw/PFX+Yym76+VO7dqXp+7l7tvj7nbmN0p3dghUtZod+5nhx3l+ZkYIaKoGrnVCY+HRuO6M TghQV7eKa+yjw34Nw7U15Gt4bLXnSP42wlvuPPGcOY6eoCFa1A1erOEAb+QOwXvn37OmHK9aT+VU 4TQ/HHciTW2dKf1ZxVAJLXxTOE798Kl9Sjt69z6DA7Rv1gnWGWWxQLPluheM42TUg9PfNkOzCUSD VM7ml1EwJQTfeeSqqISuuRtKHTZjizi9LMssXSUMgkPwHwAA//8DAJjMFkUTAwAA headers: CF-Cache-Status: - DYNAMIC CF-RAY: - 8c1aba2d2d9e1601-SJC Connection: - keep-alive Content-Encoding: - gzip Content-Type: - application/json Date: - Wed, 11 Sep 2024 21:24:54 GMT Server: - cloudflare Transfer-Encoding: - chunked X-Content-Type-Options: - nosniff access-control-expose-headers: - X-Request-ID alt-svc: - h3=":443"; ma=86400 openai-organization: - future-house-xr4tdh openai-processing-ms: - "368" openai-version: - "2020-10-01" strict-transport-security: - max-age=15552000; includeSubDomains; preload x-ratelimit-limit-requests: - "10000" x-ratelimit-limit-tokens: - "30000000" x-ratelimit-remaining-requests: - "9999" x-ratelimit-remaining-tokens: - "29999973" x-ratelimit-reset-requests: - 6ms x-ratelimit-reset-tokens: - 0s x-request-id: - req_fa05087f5334c0d12f533106097751dd status: code: 200 message: OK version: 1