---
version: 2
interactions:
- id: 0
  request:
    proto: HTTP/1.1
    proto_major: 1
    proto_minor: 1
    content_length: 523
    host: ""
    body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"What''s the weather in Florence, Italy?","role":"user"}],"model":"openai/gpt-oss-20b","reasoning_effort":"high","stream_options":{"include_usage":true},"tool_choice":"auto","tools":[{"function":{"name":"weather","strict":false,"description":"Get weather information for a location","parameters":{"properties":{"location":{"description":"the city","type":"string"}},"required":["location"],"type":"object"}},"type":"function"}],"stream":true}'
    headers:
      Accept:
      - application/json
      Content-Type:
      - application/json
      User-Agent:
      - OpenAI/Go 2.7.1
    url: http://localhost:8080/v1/chat/completions
    method: POST
  response:
    proto: HTTP/1.1
    proto_major: 1
    proto_minor: 1
    transfer_encoding:
    - chunked
    content_length: -1
    body: |+
      data: {"choices":[{"finish_reason":null,"index":0,"delta":{"role":"assistant","content":null}}],"created":1762855742,"id":"chatcmpl-dNaHXNvtiMumXqXykdu8VPuqCSZoLY4U","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"}

      data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":"We"}}],"created":1762855743,"id":"chatcmpl-dNaHXNvtiMumXqXykdu8VPuqCSZoLY4U","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"}

      data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" need"}}],"created":1762855743,"id":"chatcmpl-dNaHXNvtiMumXqXykdu8VPuqCSZoLY4U","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"}

      data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" to"}}],"created":1762855743,"id":"chatcmpl-dNaHXNvtiMumXqXykdu8VPuqCSZoLY4U","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"}

      data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" call"}}],"created":1762855743,"id":"chatcmpl-dNaHXNvtiMumXqXykdu8VPuqCSZoLY4U","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"}

      data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" function"}}],"created":1762855743,"id":"chatcmpl-dNaHXNvtiMumXqXykdu8VPuqCSZoLY4U","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"}

      data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" '"}}],"created":1762855743,"id":"chatcmpl-dNaHXNvtiMumXqXykdu8VPuqCSZoLY4U","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"}

      data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":"weather"}}],"created":1762855743,"id":"chatcmpl-dNaHXNvtiMumXqXykdu8VPuqCSZoLY4U","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"}

      data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":"'"}}],"created":1762855743,"id":"chatcmpl-dNaHXNvtiMumXqXykdu8VPuqCSZoLY4U","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"}

      data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" with"}}],"created":1762855743,"id":"chatcmpl-dNaHXNvtiMumXqXykdu8VPuqCSZoLY4U","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"}

      data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" location"}}],"created":1762855743,"id":"chatcmpl-dNaHXNvtiMumXqXykdu8VPuqCSZoLY4U","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"}

      data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" \""}}],"created":1762855743,"id":"chatcmpl-dNaHXNvtiMumXqXykdu8VPuqCSZoLY4U","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"}

      data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":"Flor"}}],"created":1762855743,"id":"chatcmpl-dNaHXNvtiMumXqXykdu8VPuqCSZoLY4U","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"}

      data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":"ence"}}],"created":1762855743,"id":"chatcmpl-dNaHXNvtiMumXqXykdu8VPuqCSZoLY4U","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"}

      data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":","}}],"created":1762855743,"id":"chatcmpl-dNaHXNvtiMumXqXykdu8VPuqCSZoLY4U","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"}

      data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" Italy"}}],"created":1762855743,"id":"chatcmpl-dNaHXNvtiMumXqXykdu8VPuqCSZoLY4U","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"}

      data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":"\"."}}],"created":1762855743,"id":"chatcmpl-dNaHXNvtiMumXqXykdu8VPuqCSZoLY4U","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"}

      data: {"choices":[{"finish_reason":null,"index":0,"delta":{"tool_calls":[{"index":0,"id":"1wNpqrejg1FCTjf6xq8JRCGKgWZO74AL","type":"function","function":{"name":"weather","arguments":"{\""}}]}}],"created":1762855743,"id":"chatcmpl-dNaHXNvtiMumXqXykdu8VPuqCSZoLY4U","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"}

      data: {"choices":[{"finish_reason":null,"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"location"}}]}}],"created":1762855743,"id":"chatcmpl-dNaHXNvtiMumXqXykdu8VPuqCSZoLY4U","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"}

      data: {"choices":[{"finish_reason":null,"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"\":\""}}]}}],"created":1762855743,"id":"chatcmpl-dNaHXNvtiMumXqXykdu8VPuqCSZoLY4U","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"}

      data: {"choices":[{"finish_reason":null,"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"Flor"}}]}}],"created":1762855743,"id":"chatcmpl-dNaHXNvtiMumXqXykdu8VPuqCSZoLY4U","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"}

      data: {"choices":[{"finish_reason":null,"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"ence"}}]}}],"created":1762855743,"id":"chatcmpl-dNaHXNvtiMumXqXykdu8VPuqCSZoLY4U","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"}

      data: {"choices":[{"finish_reason":null,"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":","}}]}}],"created":1762855743,"id":"chatcmpl-dNaHXNvtiMumXqXykdu8VPuqCSZoLY4U","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"}

      data: {"choices":[{"finish_reason":null,"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":" Italy"}}]}}],"created":1762855743,"id":"chatcmpl-dNaHXNvtiMumXqXykdu8VPuqCSZoLY4U","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"}

      data: {"choices":[{"finish_reason":null,"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"\"}"}}]}}],"created":1762855743,"id":"chatcmpl-dNaHXNvtiMumXqXykdu8VPuqCSZoLY4U","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"}

      data: {"choices":[{"finish_reason":"tool_calls","index":0,"delta":{}}],"created":1762855743,"id":"chatcmpl-dNaHXNvtiMumXqXykdu8VPuqCSZoLY4U","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"}

      data: {"choices":[],"created":1762855743,"id":"chatcmpl-dNaHXNvtiMumXqXykdu8VPuqCSZoLY4U","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk","usage":{"completion_tokens":42,"prompt_tokens":139,"total_tokens":181},"timings":{"cache_n":138,"prompt_n":1,"prompt_ms":9.198,"prompt_per_token_ms":9.198,"prompt_per_second":108.71928680147857,"predicted_n":42,"predicted_ms":344.633,"predicted_per_token_ms":8.205547619047618,"predicted_per_second":121.86877054721981}}

      data: [DONE]

    headers:
      Content-Type:
      - text/event-stream
    status: 200 OK
    code: 200
    duration: 980.667µs
- id: 1
  request:
    proto: HTTP/1.1
    proto_major: 1
    proto_minor: 1
    content_length: 873
    host: ""
    body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"What''s the weather in Florence, Italy?","role":"user"},{"tool_calls":[{"id":"1wNpqrejg1FCTjf6xq8JRCGKgWZO74AL","function":{"arguments":"{\"location\":\"Florence, Italy\"}","name":"weather"},"type":"function"}],"role":"assistant","reasoning_content":"We need to call function ''weather'' with location \"Florence, Italy\"."},{"content":"40 C","tool_call_id":"1wNpqrejg1FCTjf6xq8JRCGKgWZO74AL","role":"tool"}],"model":"openai/gpt-oss-20b","reasoning_effort":"high","stream_options":{"include_usage":true},"tool_choice":"auto","tools":[{"function":{"name":"weather","strict":false,"description":"Get weather information for a location","parameters":{"properties":{"location":{"description":"the city","type":"string"}},"required":["location"],"type":"object"}},"type":"function"}],"stream":true}'
    headers:
      Accept:
      - application/json
      Content-Type:
      - application/json
      User-Agent:
      - OpenAI/Go 2.7.1
    url: http://localhost:8080/v1/chat/completions
    method: POST
  response:
    proto: HTTP/1.1
    proto_major: 1
    proto_minor: 1
    transfer_encoding:
    - chunked
    content_length: -1
    body: |+
      data: {"choices":[{"finish_reason":null,"index":0,"delta":{"role":"assistant","content":null}}],"created":1762855743,"id":"chatcmpl-KbAer6ddvMjzAfTSDzyLr2XLW1rjunAq","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"}

      data: {"choices":[{"finish_reason":null,"index":0,"delta":{"content":"The"}}],"created":1762855743,"id":"chatcmpl-KbAer6ddvMjzAfTSDzyLr2XLW1rjunAq","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"}

      data: {"choices":[{"finish_reason":null,"index":0,"delta":{"content":" current"}}],"created":1762855743,"id":"chatcmpl-KbAer6ddvMjzAfTSDzyLr2XLW1rjunAq","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"}

      data: {"choices":[{"finish_reason":null,"index":0,"delta":{"content":" weather"}}],"created":1762855743,"id":"chatcmpl-KbAer6ddvMjzAfTSDzyLr2XLW1rjunAq","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"}

      data: {"choices":[{"finish_reason":null,"index":0,"delta":{"content":" in"}}],"created":1762855743,"id":"chatcmpl-KbAer6ddvMjzAfTSDzyLr2XLW1rjunAq","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"}

      data: {"choices":[{"finish_reason":null,"index":0,"delta":{"content":" Florence"}}],"created":1762855743,"id":"chatcmpl-KbAer6ddvMjzAfTSDzyLr2XLW1rjunAq","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"}

      data: {"choices":[{"finish_reason":null,"index":0,"delta":{"content":","}}],"created":1762855743,"id":"chatcmpl-KbAer6ddvMjzAfTSDzyLr2XLW1rjunAq","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"}

      data: {"choices":[{"finish_reason":null,"index":0,"delta":{"content":" Italy"}}],"created":1762855743,"id":"chatcmpl-KbAer6ddvMjzAfTSDzyLr2XLW1rjunAq","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"}

      data: {"choices":[{"finish_reason":null,"index":0,"delta":{"content":" is"}}],"created":1762855743,"id":"chatcmpl-KbAer6ddvMjzAfTSDzyLr2XLW1rjunAq","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"}

      data: {"choices":[{"finish_reason":null,"index":0,"delta":{"content":" **"}}],"created":1762855743,"id":"chatcmpl-KbAer6ddvMjzAfTSDzyLr2XLW1rjunAq","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"}

      data: {"choices":[{"finish_reason":null,"index":0,"delta":{"content":"40"}}],"created":1762855743,"id":"chatcmpl-KbAer6ddvMjzAfTSDzyLr2XLW1rjunAq","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"}

      data: {"choices":[{"finish_reason":null,"index":0,"delta":{"content":" "}}],"created":1762855743,"id":"chatcmpl-KbAer6ddvMjzAfTSDzyLr2XLW1rjunAq","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"}

      data: {"choices":[{"finish_reason":null,"index":0,"delta":{"content":"°C"}}],"created":1762855743,"id":"chatcmpl-KbAer6ddvMjzAfTSDzyLr2XLW1rjunAq","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"}

      data: {"choices":[{"finish_reason":null,"index":0,"delta":{"content":"**"}}],"created":1762855743,"id":"chatcmpl-KbAer6ddvMjzAfTSDzyLr2XLW1rjunAq","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"}

      data: {"choices":[{"finish_reason":null,"index":0,"delta":{"content":"."}}],"created":1762855743,"id":"chatcmpl-KbAer6ddvMjzAfTSDzyLr2XLW1rjunAq","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"}

      data: {"choices":[{"finish_reason":"stop","index":0,"delta":{}}],"created":1762855743,"id":"chatcmpl-KbAer6ddvMjzAfTSDzyLr2XLW1rjunAq","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"}

      data: {"choices":[],"created":1762855743,"id":"chatcmpl-KbAer6ddvMjzAfTSDzyLr2XLW1rjunAq","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk","usage":{"completion_tokens":18,"prompt_tokens":197,"total_tokens":215},"timings":{"cache_n":161,"prompt_n":36,"prompt_ms":79.751,"prompt_per_token_ms":2.2153055555555556,"prompt_per_second":451.40499805645067,"predicted_n":18,"predicted_ms":139.164,"predicted_per_token_ms":7.731333333333333,"predicted_per_second":129.34379580926102}}

      data: [DONE]

    headers:
      Content-Type:
      - text/event-stream
    status: 200 OK
    code: 200
    duration: 2.833375ms
