interactions:
- request:
    body: |-
      {
        "contents": [
          {
            "parts": [
              {
                "text": "Create a poem about Open Telemetry."
              }
            ],
            "role": "user"
          }
        ]
      }
    headers:
      Accept:
      - '*/*'
      Accept-Encoding:
      - gzip, deflate
      Connection:
      - keep-alive
      Content-Length:
      - '92'
      Content-Type:
      - application/json
      user-agent:
      - google-genai-sdk/1.0.0 gl-python/3.12.8
      x-goog-api-client:
      - <REDACTED>
      x-goog-user-project:
      - <REDACTED>
    method: POST
    uri: https://test-location-aiplatform.googleapis.com/v1beta1/projects/test-project/locations/test-location/publishers/google/models/gemini-1.5-flash-002:streamGenerateContent?alt=sse
  response:
    body:
      string: "data: {\"candidates\": [{\"content\": {\"role\": \"model\",\"parts\"\
        : [{\"text\": \"No\"}]}}],\"usageMetadata\": {},\"modelVersion\": \"gemini-1.5-flash-002\"\
        ,\"createTime\": \"2025-03-07T22:19:29.293930Z\",\"responseId\": \"8XDLZ6r4Efa1-O4PwIHamQ4\"\
        }\r\n\r\ndata: {\"candidates\": [{\"content\": {\"role\": \"model\",\"parts\"\
        : [{\"text\": \" longer dark, the tracing's light,\\nOpen Telemetry, shining\
        \ bright\"}]}}],\"modelVersion\": \"gemini-1.5-flash-002\",\"createTime\"\
        : \"2025-03-07T22:19:29.293930Z\",\"responseId\": \"8XDLZ6r4Efa1-O4PwIHamQ4\"\
        }\r\n\r\ndata: {\"candidates\": [{\"content\": {\"role\": \"model\",\"parts\"\
        : [{\"text\": \".\\nA beacon in the coding night,\\nRevealing paths, both\
        \ dark\"}]}}],\"modelVersion\": \"gemini-1.5-flash-002\",\"createTime\": \"\
        2025-03-07T22:19:29.293930Z\",\"responseId\": \"8XDLZ6r4Efa1-O4PwIHamQ4\"\
        }\r\n\r\ndata: {\"candidates\": [{\"content\": {\"role\": \"model\",\"parts\"\
        : [{\"text\": \" and bright.\\n\\nFrom microservice to sprawling beast,\\\
        nIts watchful eye, a silent priest.\\nObserving calls, both small and vast,\\\
        nPerformance\"}]}}],\"modelVersion\": \"gemini-1.5-flash-002\",\"createTime\"\
        : \"2025-03-07T22:19:29.293930Z\",\"responseId\": \"8XDLZ6r4Efa1-O4PwIHamQ4\"\
        }\r\n\r\ndata: {\"candidates\": [{\"content\": {\"role\": \"model\",\"parts\"\
        : [{\"text\": \" flaws, revealed at last.\\n\\nWith metrics gleaned and logs\
        \ aligned,\\nA clearer picture, you will find.\\nOf latency, and errors dire,\\\
        n\"}]}}],\"modelVersion\": \"gemini-1.5-flash-002\",\"createTime\": \"2025-03-07T22:19:29.293930Z\"\
        ,\"responseId\": \"8XDLZ6r4Efa1-O4PwIHamQ4\"}\r\n\r\ndata: {\"candidates\"\
        : [{\"content\": {\"role\": \"model\",\"parts\": [{\"text\": \"And bottlenecks\
        \ that set afire.\\n\\nIt spans the clouds, a network wide,\\nWhere data streams,\
        \ a surging tide.\\nCollecting traces, rich and deep,\\nWhile slumbering apps\
        \ their secrets keep.\\n\\nJaeger, Zip\"}]}}],\"modelVersion\": \"gemini-1.5-flash-002\"\
        ,\"createTime\": \"2025-03-07T22:19:29.293930Z\",\"responseId\": \"8XDLZ6r4Efa1-O4PwIHamQ4\"\
        }\r\n\r\ndata: {\"candidates\": [{\"content\": {\"role\": \"model\",\"parts\"\
        : [{\"text\": \"kin, the tools it holds,\\nA tapestry of stories told.\\nOf\
        \ requests flowing, swift and free,\\nOr tangled knots, for all to see.\\\
        n\\nSo embrace the power, understand,\\nThe vital role, across the\"}]}}],\"\
        modelVersion\": \"gemini-1.5-flash-002\",\"createTime\": \"2025-03-07T22:19:29.293930Z\"\
        ,\"responseId\": \"8XDLZ6r4Efa1-O4PwIHamQ4\"}\r\n\r\ndata: {\"candidates\"\
        : [{\"content\": {\"role\": \"model\",\"parts\": [{\"text\": \" land.\\nOpen\
        \ Telemetry, a guiding star,\\nTo navigate the digital afar.\\n\"}]},\"finishReason\"\
        : \"STOP\"}],\"usageMetadata\": {\"promptTokenCount\": 8,\"candidatesTokenCount\"\
        : 212,\"totalTokenCount\": 220,\"promptTokensDetails\": [{\"modality\": \"\
        TEXT\",\"tokenCount\": 8}],\"candidatesTokensDetails\": [{\"modality\": \"\
        TEXT\",\"tokenCount\": 212}]},\"modelVersion\": \"gemini-1.5-flash-002\",\"\
        createTime\": \"2025-03-07T22:19:29.293930Z\",\"responseId\": \"8XDLZ6r4Efa1-O4PwIHamQ4\"\
        }\r\n\r\n"
    headers:
      Content-Disposition:
      - attachment
      Content-Type:
      - text/event-stream
      Transfer-Encoding:
      - chunked
      Vary:
      - Origin
      - X-Origin
      - Referer
      X-Content-Type-Options:
      - nosniff
      X-Frame-Options:
      - SAMEORIGIN
      X-XSS-Protection:
      - '0'
    status:
      code: 200
      message: OK
version: 1
