---
version: 2
interactions:
- id: 0
  request:
    proto: HTTP/1.1
    proto_major: 1
    proto_minor: 1
    content_length: 539
    host: ""
    body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"What''s the weather in Florence,Italy?","role":"user"}],"model":"x-ai/grok-4.1-fast","max_tokens":4000,"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"}],"usage":{"include":true},"stream":true}'
    headers:
      Accept:
      - application/json
      Content-Type:
      - application/json
      User-Agent:
      - Charm-Fantasy/0.21.0 (https://charm.land/fantasy)
    url: https://openrouter.ai/api/v1/chat/completions
    method: POST
  response:
    proto: HTTP/2.0
    proto_major: 2
    proto_minor: 0
    content_length: -1
    body: |+
      : OPENROUTER PROCESSING

      : OPENROUTER PROCESSING

      : OPENROUTER PROCESSING

      data: {"id":"gen-1777319845-fb1gRveeS1juYkq93kho","object":"chat.completion.chunk","created":1777319845,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"The","reasoning_details":[{"type":"reasoning.summary","summary":"The","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]}

      data: {"id":"gen-1777319845-fb1gRveeS1juYkq93kho","object":"chat.completion.chunk","created":1777319845,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" user","reasoning_details":[{"type":"reasoning.summary","summary":" user","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]}

      data: {"id":"gen-1777319845-fb1gRveeS1juYkq93kho","object":"chat.completion.chunk","created":1777319845,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" asked","reasoning_details":[{"type":"reasoning.summary","summary":" asked","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]}

      data: {"id":"gen-1777319845-fb1gRveeS1juYkq93kho","object":"chat.completion.chunk","created":1777319845,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":":","reasoning_details":[{"type":"reasoning.summary","summary":":","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]}

      data: {"id":"gen-1777319845-fb1gRveeS1juYkq93kho","object":"chat.completion.chunk","created":1777319845,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" \"","reasoning_details":[{"type":"reasoning.summary","summary":" \"","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]}

      data: {"id":"gen-1777319845-fb1gRveeS1juYkq93kho","object":"chat.completion.chunk","created":1777319845,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"What's","reasoning_details":[{"type":"reasoning.summary","summary":"What's","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]}

      data: {"id":"gen-1777319845-fb1gRveeS1juYkq93kho","object":"chat.completion.chunk","created":1777319845,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" the","reasoning_details":[{"type":"reasoning.summary","summary":" the","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]}

      data: {"id":"gen-1777319845-fb1gRveeS1juYkq93kho","object":"chat.completion.chunk","created":1777319845,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" weather","reasoning_details":[{"type":"reasoning.summary","summary":" weather","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]}

      data: {"id":"gen-1777319845-fb1gRveeS1juYkq93kho","object":"chat.completion.chunk","created":1777319845,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" in","reasoning_details":[{"type":"reasoning.summary","summary":" in","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]}

      data: {"id":"gen-1777319845-fb1gRveeS1juYkq93kho","object":"chat.completion.chunk","created":1777319845,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" Florence","reasoning_details":[{"type":"reasoning.summary","summary":" Florence","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]}

      data: {"id":"gen-1777319845-fb1gRveeS1juYkq93kho","object":"chat.completion.chunk","created":1777319845,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":",","reasoning_details":[{"type":"reasoning.summary","summary":",","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]}

      data: {"id":"gen-1777319845-fb1gRveeS1juYkq93kho","object":"chat.completion.chunk","created":1777319845,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" Italy","reasoning_details":[{"type":"reasoning.summary","summary":" Italy","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]}

      data: {"id":"gen-1777319845-fb1gRveeS1juYkq93kho","object":"chat.completion.chunk","created":1777319845,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"?\"","reasoning_details":[{"type":"reasoning.summary","summary":"?\"","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]}

      data: {"id":"gen-1777319845-fb1gRveeS1juYkq93kho","object":"chat.completion.chunk","created":1777319845,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" I","reasoning_details":[{"type":"reasoning.summary","summary":" I","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]}

      data: {"id":"gen-1777319845-fb1gRveeS1juYkq93kho","object":"chat.completion.chunk","created":1777319845,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" have","reasoning_details":[{"type":"reasoning.summary","summary":" have","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]}

      data: {"id":"gen-1777319845-fb1gRveeS1juYkq93kho","object":"chat.completion.chunk","created":1777319845,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" a","reasoning_details":[{"type":"reasoning.summary","summary":" a","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]}

      data: {"id":"gen-1777319845-fb1gRveeS1juYkq93kho","object":"chat.completion.chunk","created":1777319845,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" tool","reasoning_details":[{"type":"reasoning.summary","summary":" tool","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]}

      data: {"id":"gen-1777319845-fb1gRveeS1juYkq93kho","object":"chat.completion.chunk","created":1777319845,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" called","reasoning_details":[{"type":"reasoning.summary","summary":" called","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]}

      data: {"id":"gen-1777319845-fb1gRveeS1juYkq93kho","object":"chat.completion.chunk","created":1777319845,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" \"","reasoning_details":[{"type":"reasoning.summary","summary":" \"","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]}

      data: {"id":"gen-1777319845-fb1gRveeS1juYkq93kho","object":"chat.completion.chunk","created":1777319845,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"weather","reasoning_details":[{"type":"reasoning.summary","summary":"weather","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]}

      data: {"id":"gen-1777319845-fb1gRveeS1juYkq93kho","object":"chat.completion.chunk","created":1777319845,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"\"","reasoning_details":[{"type":"reasoning.summary","summary":"\"","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]}

      data: {"id":"gen-1777319845-fb1gRveeS1juYkq93kho","object":"chat.completion.chunk","created":1777319845,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" that","reasoning_details":[{"type":"reasoning.summary","summary":" that","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]}

      data: {"id":"gen-1777319845-fb1gRveeS1juYkq93kho","object":"chat.completion.chunk","created":1777319845,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" gets","reasoning_details":[{"type":"reasoning.summary","summary":" gets","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]}

      data: {"id":"gen-1777319845-fb1gRveeS1juYkq93kho","object":"chat.completion.chunk","created":1777319845,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" weather","reasoning_details":[{"type":"reasoning.summary","summary":" weather","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]}

      data: {"id":"gen-1777319845-fb1gRveeS1juYkq93kho","object":"chat.completion.chunk","created":1777319845,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" information","reasoning_details":[{"type":"reasoning.summary","summary":" information","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]}

      data: {"id":"gen-1777319845-fb1gRveeS1juYkq93kho","object":"chat.completion.chunk","created":1777319845,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" for","reasoning_details":[{"type":"reasoning.summary","summary":" for","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]}

      data: {"id":"gen-1777319845-fb1gRveeS1juYkq93kho","object":"chat.completion.chunk","created":1777319845,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" a","reasoning_details":[{"type":"reasoning.summary","summary":" a","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]}

      data: {"id":"gen-1777319845-fb1gRveeS1juYkq93kho","object":"chat.completion.chunk","created":1777319845,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" location","reasoning_details":[{"type":"reasoning.summary","summary":" location","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]}

      data: {"id":"gen-1777319845-fb1gRveeS1juYkq93kho","object":"chat.completion.chunk","created":1777319845,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":".","reasoning_details":[{"type":"reasoning.summary","summary":".","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]}

      data: {"id":"gen-1777319845-fb1gRveeS1juYkq93kho","object":"chat.completion.chunk","created":1777319845,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" The","reasoning_details":[{"type":"reasoning.summary","summary":" The","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]}

      data: {"id":"gen-1777319845-fb1gRveeS1juYkq93kho","object":"chat.completion.chunk","created":1777319845,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" parameter","reasoning_details":[{"type":"reasoning.summary","summary":" parameter","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]}

      data: {"id":"gen-1777319845-fb1gRveeS1juYkq93kho","object":"chat.completion.chunk","created":1777319845,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" is","reasoning_details":[{"type":"reasoning.summary","summary":" is","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]}

      data: {"id":"gen-1777319845-fb1gRveeS1juYkq93kho","object":"chat.completion.chunk","created":1777319845,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" \"","reasoning_details":[{"type":"reasoning.summary","summary":" \"","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]}

      data: {"id":"gen-1777319845-fb1gRveeS1juYkq93kho","object":"chat.completion.chunk","created":1777319845,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"location","reasoning_details":[{"type":"reasoning.summary","summary":"location","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]}

      data: {"id":"gen-1777319845-fb1gRveeS1juYkq93kho","object":"chat.completion.chunk","created":1777319845,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"\",","reasoning_details":[{"type":"reasoning.summary","summary":"\",","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]}

      data: {"id":"gen-1777319845-fb1gRveeS1juYkq93kho","object":"chat.completion.chunk","created":1777319845,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" which","reasoning_details":[{"type":"reasoning.summary","summary":" which","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]}

      data: {"id":"gen-1777319845-fb1gRveeS1juYkq93kho","object":"chat.completion.chunk","created":1777319845,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" is","reasoning_details":[{"type":"reasoning.summary","summary":" is","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]}

      data: {"id":"gen-1777319845-fb1gRveeS1juYkq93kho","object":"chat.completion.chunk","created":1777319845,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" the","reasoning_details":[{"type":"reasoning.summary","summary":" the","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]}

      data: {"id":"gen-1777319845-fb1gRveeS1juYkq93kho","object":"chat.completion.chunk","created":1777319845,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" city","reasoning_details":[{"type":"reasoning.summary","summary":" city","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]}

      data: {"id":"gen-1777319845-fb1gRveeS1juYkq93kho","object":"chat.completion.chunk","created":1777319845,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":".\n","reasoning_details":[{"type":"reasoning.summary","summary":".\n","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]}

      : OPENROUTER PROCESSING

      : OPENROUTER PROCESSING

      data: {"id":"gen-1777319845-fb1gRveeS1juYkq93kho","object":"chat.completion.chunk","created":1777319845,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":null,"reasoning_details":[{"type":"reasoning.encrypted","data":"xtqOzzobQxuQwf0gkR6GjXXcuE0PDswutFF66xawFkpZ44ikgr2ohkmIilDl5sm4Mz775dN8sBR6zp25Zw8hgykyzQFqBYzmFdhnWAXcG9koU+WVetRL9/juCF2TM++QaYs4hLtsap9HwRd2OZvKbRxuy0f66+ocvythg3yQxSNnOZvhrH2grD/mZbS3CAFWcvz/4RlhPvXiWrh0FchzGZu4TNnmnYJconszRW941AqCFnqyabK/vuZZGtt/Xnp+aHr2gEPDKhnsZcp7WMF/xwRLf6cg1Mqs4TocmOAwpyC5FmeglsiDLLRR3LuGYY/3uuUGE18Ys09TH52mTbFyDFQjWEqIZT80HT23tNFlVySqRfyYwWrlKOHi0wjVa2pwlWQYa5E67sQZ3+dQHi+sPVsmf5AKiknRT9PScTcrRydyU37TXZHX8CYd8HqonNQNdLLAjmHzRu0YxG5Yxq1BT0Jtwlc2uT86R2mnTaxPaPzPVG7l4kHcGdgztboDpCIrMM+hkkd3cxuvNlZK1Nu2fVPF5jgodzCY4DPffVu5BItlBi7xAWozzZPXrGiWLe98EFvBomvpR9pjYhZDDa7CPUiCmZsw+1FhD0V/oULz+oop/miA2hadfRyReUsu7TjfkisC4ikmL1RQ3ZzUGiEsf8gRAggC5uzhqrqJCljiJrQEXbe7sVc2Q3yAYJ0SQ1WZw258Xy5pEUbvqjOq6cAY6n6Nyhpp6czm9aXAdx6LcTRFaZAunekALNg9K60cA4Y94gxfK8AsVIsb1053XWnFLNtUd8HpDd7d4LnTzvSUmxds","format":"xai-responses-v1","id":"rs_f4d7eb38-3078-6003-f459-ba491f4b7bb4","index":0}]},"finish_reason":null,"native_finish_reason":null}]}

      data: {"id":"gen-1777319845-fb1gRveeS1juYkq93kho","object":"chat.completion.chunk","created":1777319845,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"id":"call_51659697","type":"function","function":{"name":"weather","arguments":""}}]},"finish_reason":null,"native_finish_reason":null}]}

      data: {"id":"gen-1777319845-fb1gRveeS1juYkq93kho","object":"chat.completion.chunk","created":1777319845,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null,"native_finish_reason":null}]}

      data: {"id":"gen-1777319845-fb1gRveeS1juYkq93kho","object":"chat.completion.chunk","created":1777319845,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"{\"location\":\"Florence, Italy\"}"}}]},"finish_reason":null,"native_finish_reason":null}]}

      data: {"id":"gen-1777319845-fb1gRveeS1juYkq93kho","object":"chat.completion.chunk","created":1777319845,"model":"x-ai/grok-4.1-fast","provider":"xAI","service_tier":"default","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":null},"finish_reason":"tool_calls","native_finish_reason":"completed"}]}

      data: {"id":"gen-1777319845-fb1gRveeS1juYkq93kho","object":"chat.completion.chunk","created":1777319845,"model":"x-ai/grok-4.1-fast","provider":"xAI","service_tier":"default","choices":[{"index":0,"delta":{"content":"","role":"assistant"},"finish_reason":"tool_calls","native_finish_reason":"completed"}],"usage":{"prompt_tokens":366,"completion_tokens":155,"total_tokens":521,"cost":0.00009595,"is_byok":false,"prompt_tokens_details":{"cached_tokens":365,"cache_write_tokens":0,"audio_tokens":0,"video_tokens":0},"cost_details":{"upstream_inference_cost":0.00009595,"upstream_inference_prompt_cost":0.00001845,"upstream_inference_completions_cost":0.0000775},"completion_tokens_details":{"reasoning_tokens":129,"image_tokens":0,"audio_tokens":0}}}

      data: [DONE]

    headers:
      Content-Type:
      - text/event-stream
    status: 200 OK
    code: 200
    duration: 1.476046083s
- id: 1
  request:
    proto: HTTP/1.1
    proto_major: 1
    proto_minor: 1
    content_length: 1035
    host: ""
    body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"What''s the weather in Florence,Italy?","role":"user"},{"tool_calls":[{"id":"call_51659697","function":{"arguments":"{\"location\":\"Florence, Italy\"}","name":"weather"},"type":"function"}],"role":"assistant","reasoning_details":[{"format":"unknown","index":0,"text":"The user asked: \"What''s the weather in Florence, Italy?\" I have a tool called \"weather\" that gets weather information for a location. The parameter is \"location\", which is the city.\n","type":"reasoning.text"}]},{"content":"40 C","tool_call_id":"call_51659697","role":"tool"}],"model":"x-ai/grok-4.1-fast","max_tokens":4000,"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"}],"usage":{"include":true},"stream":true}'
    headers:
      Accept:
      - application/json
      Content-Type:
      - application/json
      User-Agent:
      - Charm-Fantasy/0.21.0 (https://charm.land/fantasy)
    url: https://openrouter.ai/api/v1/chat/completions
    method: POST
  response:
    proto: HTTP/2.0
    proto_major: 2
    proto_minor: 0
    content_length: -1
    body: |+
      : OPENROUTER PROCESSING

      : OPENROUTER PROCESSING

      : OPENROUTER PROCESSING

      data: {"id":"gen-1777319848-SFQmKd8YTKr8xmSXFhpp","object":"chat.completion.chunk","created":1777319848,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"First","reasoning_details":[{"type":"reasoning.summary","summary":"First","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]}

      data: {"id":"gen-1777319848-SFQmKd8YTKr8xmSXFhpp","object":"chat.completion.chunk","created":1777319848,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":",","reasoning_details":[{"type":"reasoning.summary","summary":",","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]}

      data: {"id":"gen-1777319848-SFQmKd8YTKr8xmSXFhpp","object":"chat.completion.chunk","created":1777319848,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" the","reasoning_details":[{"type":"reasoning.summary","summary":" the","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]}

      data: {"id":"gen-1777319848-SFQmKd8YTKr8xmSXFhpp","object":"chat.completion.chunk","created":1777319848,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" user","reasoning_details":[{"type":"reasoning.summary","summary":" user","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]}

      data: {"id":"gen-1777319848-SFQmKd8YTKr8xmSXFhpp","object":"chat.completion.chunk","created":1777319848,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" asked","reasoning_details":[{"type":"reasoning.summary","summary":" asked","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]}

      data: {"id":"gen-1777319848-SFQmKd8YTKr8xmSXFhpp","object":"chat.completion.chunk","created":1777319848,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":":","reasoning_details":[{"type":"reasoning.summary","summary":":","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]}

      data: {"id":"gen-1777319848-SFQmKd8YTKr8xmSXFhpp","object":"chat.completion.chunk","created":1777319848,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" \"","reasoning_details":[{"type":"reasoning.summary","summary":" \"","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]}

      data: {"id":"gen-1777319848-SFQmKd8YTKr8xmSXFhpp","object":"chat.completion.chunk","created":1777319848,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"What's","reasoning_details":[{"type":"reasoning.summary","summary":"What's","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]}

      data: {"id":"gen-1777319848-SFQmKd8YTKr8xmSXFhpp","object":"chat.completion.chunk","created":1777319848,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" the","reasoning_details":[{"type":"reasoning.summary","summary":" the","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]}

      data: {"id":"gen-1777319848-SFQmKd8YTKr8xmSXFhpp","object":"chat.completion.chunk","created":1777319848,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" weather","reasoning_details":[{"type":"reasoning.summary","summary":" weather","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]}

      data: {"id":"gen-1777319848-SFQmKd8YTKr8xmSXFhpp","object":"chat.completion.chunk","created":1777319848,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" in","reasoning_details":[{"type":"reasoning.summary","summary":" in","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]}

      data: {"id":"gen-1777319848-SFQmKd8YTKr8xmSXFhpp","object":"chat.completion.chunk","created":1777319848,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" Florence","reasoning_details":[{"type":"reasoning.summary","summary":" Florence","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]}

      data: {"id":"gen-1777319848-SFQmKd8YTKr8xmSXFhpp","object":"chat.completion.chunk","created":1777319848,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":",","reasoning_details":[{"type":"reasoning.summary","summary":",","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]}

      data: {"id":"gen-1777319848-SFQmKd8YTKr8xmSXFhpp","object":"chat.completion.chunk","created":1777319848,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" Italy","reasoning_details":[{"type":"reasoning.summary","summary":" Italy","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]}

      data: {"id":"gen-1777319848-SFQmKd8YTKr8xmSXFhpp","object":"chat.completion.chunk","created":1777319848,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"?\"\n","reasoning_details":[{"type":"reasoning.summary","summary":"?\"\n","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]}

      : OPENROUTER PROCESSING

      data: {"id":"gen-1777319848-SFQmKd8YTKr8xmSXFhpp","object":"chat.completion.chunk","created":1777319848,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":null,"reasoning_details":[{"type":"reasoning.encrypted","data":"5hfPv6Rt/Qwout8tG3xxONWaJ5xHS+1OGQhs7hW7LDx7zdD3LTFQLJ5F+eS2vhePHc7Mo+21GG+P+Kp3jccN+gO2t8IhwA78p+zyuGflokqV1XK6d5ucFDvv9HNmtYQR78p0snQgbPGyOq/lQgOYB+Rjbg/PikAlosEjcQsIS5eWCsbUjIng3joM2WBboC2iyZIAvvS+vgJW3ijpkPSvLsoOL4zdKuPOs7GFigcDDqs0TZHk1x1hkoYM3C6se6Jn5cqnSTIbRzy7PSuKiNB/ms2qJcmEma3Ro4whAsnKj5GpwSFboAkkLLTksYJUg21wL/6lXPb165yqIYk8/yKbHfNaza9ETuaSk7epSwOGSZ6/o6yJ/4vTEmLn0Hn1+2CPGB88SSL6vCd5YYAYjBszle85yPa5B2RrCtBCfcQEz5YAEmr1ZrD0l9zj4+tdwCfCueb9hyPyLZuVCu0Y+352bb5tiVm2mjOcVW3JkB4AiBoUwnFCTN3RWCZWf4tWwkke9bxiu25X6Wu/8n5IqLvcszmGDK/ArPRSSGmAC47wOahZNu1oB/c4/vo5ZFpeem6tL1MUYFUR5TUpMRJM+4Kk","format":"xai-responses-v1","id":"rs_7dd9800b-267a-99bc-b265-8368ecd93de4","index":0}]},"finish_reason":null,"native_finish_reason":null}]}

      data: {"id":"gen-1777319848-SFQmKd8YTKr8xmSXFhpp","object":"chat.completion.chunk","created":1777319848,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":"It's","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}

      data: {"id":"gen-1777319848-SFQmKd8YTKr8xmSXFhpp","object":"chat.completion.chunk","created":1777319848,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":" currently","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}

      data: {"id":"gen-1777319848-SFQmKd8YTKr8xmSXFhpp","object":"chat.completion.chunk","created":1777319848,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":" ","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}

      data: {"id":"gen-1777319848-SFQmKd8YTKr8xmSXFhpp","object":"chat.completion.chunk","created":1777319848,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":"40","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}

      data: {"id":"gen-1777319848-SFQmKd8YTKr8xmSXFhpp","object":"chat.completion.chunk","created":1777319848,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":"°C","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}

      data: {"id":"gen-1777319848-SFQmKd8YTKr8xmSXFhpp","object":"chat.completion.chunk","created":1777319848,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":" in","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}

      data: {"id":"gen-1777319848-SFQmKd8YTKr8xmSXFhpp","object":"chat.completion.chunk","created":1777319848,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":" Florence","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}

      data: {"id":"gen-1777319848-SFQmKd8YTKr8xmSXFhpp","object":"chat.completion.chunk","created":1777319848,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":",","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}

      data: {"id":"gen-1777319848-SFQmKd8YTKr8xmSXFhpp","object":"chat.completion.chunk","created":1777319848,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":" Italy","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}

      data: {"id":"gen-1777319848-SFQmKd8YTKr8xmSXFhpp","object":"chat.completion.chunk","created":1777319848,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":".","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}

      data: {"id":"gen-1777319848-SFQmKd8YTKr8xmSXFhpp","object":"chat.completion.chunk","created":1777319848,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":" That's","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}

      data: {"id":"gen-1777319848-SFQmKd8YTKr8xmSXFhpp","object":"chat.completion.chunk","created":1777319848,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":" pretty","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}

      data: {"id":"gen-1777319848-SFQmKd8YTKr8xmSXFhpp","object":"chat.completion.chunk","created":1777319848,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":" hot","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}

      data: {"id":"gen-1777319848-SFQmKd8YTKr8xmSXFhpp","object":"chat.completion.chunk","created":1777319848,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":"—","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}

      data: {"id":"gen-1777319848-SFQmKd8YTKr8xmSXFhpp","object":"chat.completion.chunk","created":1777319848,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":"stay","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}

      data: {"id":"gen-1777319848-SFQmKd8YTKr8xmSXFhpp","object":"chat.completion.chunk","created":1777319848,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":" hydrated","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}

      data: {"id":"gen-1777319848-SFQmKd8YTKr8xmSXFhpp","object":"chat.completion.chunk","created":1777319848,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":"!","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}

      data: {"id":"gen-1777319848-SFQmKd8YTKr8xmSXFhpp","object":"chat.completion.chunk","created":1777319848,"model":"x-ai/grok-4.1-fast","provider":"xAI","service_tier":"default","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":null},"finish_reason":"stop","native_finish_reason":"completed"}]}

      data: {"id":"gen-1777319848-SFQmKd8YTKr8xmSXFhpp","object":"chat.completion.chunk","created":1777319848,"model":"x-ai/grok-4.1-fast","provider":"xAI","service_tier":"default","choices":[{"index":0,"delta":{"content":"","role":"assistant"},"finish_reason":"stop","native_finish_reason":"completed"}],"usage":{"prompt_tokens":404,"completion_tokens":111,"total_tokens":515,"cost":0.00007585,"is_byok":false,"prompt_tokens_details":{"cached_tokens":403,"cache_write_tokens":0,"audio_tokens":0,"video_tokens":0},"cost_details":{"upstream_inference_cost":0.00007585,"upstream_inference_prompt_cost":0.00002035,"upstream_inference_completions_cost":0.0000555},"completion_tokens_details":{"reasoning_tokens":94,"image_tokens":0,"audio_tokens":0}}}

      data: [DONE]

    headers:
      Content-Type:
      - text/event-stream
    status: 200 OK
    code: 200
    duration: 1.850464875s
