| httprr trace v1 |
| 858 3622 |
| POST https://generativelanguage.googleapis.com/v1beta/models/gemini-1.0-pro:generateContent?%24alt=json%3Benum-encoding%3Dint HTTP/1.1
|
| Host: generativelanguage.googleapis.com
|
| User-Agent: Go-http-client/1.1
|
| Content-Length: 540
|
| Content-Type: application/json
|
| x-goog-request-params: model=models%2Fgemini-1.0-pro
|
|
|
| {"model":"models/gemini-1.0-pro","contents":[{"parts":[{"text":"CanonicalHeaderKey returns the canonical format of the header key s. The canonicalization converts the first letter and any letter following a hyphen to upper case; the rest are converted to lowercase. For example, the canonical key for 'accept-encoding' is 'Accept-Encoding'. If s contains a space or invalid header field bytes, it is returned without modifications."},{"text":"When should I use CanonicalHeaderKey?"}],"role":"user"}],"generationConfig":{"candidateCount":1}}HTTP/2.0 200 OK
|
| Alt-Svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000
|
| Cache-Control: private
|
| Content-Type: application/json; charset=UTF-8
|
| Date: Thu, 24 Oct 2024 15:16:59 GMT
|
| Server: scaffolding on HTTPServer2
|
| Server-Timing: gfet4t7; dur=2345
|
| Vary: Origin
|
| Vary: X-Origin
|
| Vary: Referer
|
| X-Content-Type-Options: nosniff
|
| X-Frame-Options: SAMEORIGIN
|
| X-Google-Backends: unix:/tmp/esfbackend.1729722122.514958.2643309,/bns/ma/borg/ma/bns/genai-api/prod.genai-api/7,/bns/lclgaa/borg/lclgaa/bns/blue-layer1-gfe-prod-edge/prod.blue-layer1-gfe.lga34s38/40
|
| X-Google-Dos-Service-Trace: main:genai-api-api-prod,main:GLOBAL_all_non_cloud
|
| X-Google-Esf-Cloud-Client-Params: backend_service_name: "generativelanguage.googleapis.com" backend_fully_qualified_method: "google.ai.generativelanguage.v1beta.GenerativeService.GenerateContent"
|
| X-Google-Gfe-Handshake-Trace: GFE: /bns/lclgaa/borg/lclgaa/bns/blue-layer1-gfe-prod-edge/prod.blue-layer1-gfe.lga34s38/40,Mentat oracle: [2002:a05:6692:824:b0:89:f617:8002]:9801
|
| X-Google-Gfe-Request-Trace: aclgaff4:443,/bns/ma/borg/ma/bns/genai-api/prod.genai-api/7,aclgaff4:443
|
| X-Google-Gfe-Response-Body-Transformations: chunked
|
| X-Google-Gfe-Response-Code-Details-Trace: response_code_set_by_backend
|
| X-Google-Gfe-Service-Trace: genai-api-api-prod/gfespec_googleapis-generativelanguage_generativelanguage-url-map-global_generativelanguage-genai-api-api-prod
|
| X-Google-Gfe-Version: 2.900.2
|
| X-Google-Netmon-Label: /bns/ma/borg/ma/bns/genai-api/prod.genai-api/7
|
| X-Google-Security-Signals: FRAMEWORK=ONE_PLATFORM,ENV=borg,ENV_DEBUG=borg_user:genai-api;borg_job:prod.genai-api
|
| X-Google-Security-Signals: FRAMEWORK=HTTPSERVER2,BUILD=GOOGLE3,BUILD_DEBUG=cl:688683199,ENV=borg,ENV_DEBUG=borg_user:genai-api;borg_job:prod.genai-api
|
| X-Google-Service: genai-api-api-prod/gfespec_googleapis-generativelanguage_generativelanguage-url-map-global_generativelanguage-genai-api-api-prod
|
| X-Google-Session-Info: GgQYECgLIAE6IxIhZ2VuZXJhdGl2ZWxhbmd1YWdlLmdvb2dsZWFwaXMuY29t
|
| X-Google-Shellfish-Status: CA0gBEBG
|
| X-Xss-Protection: 0
|
|
|
| { |
| "candidates": [ |
| { |
| "content": { |
| "parts": [ |
| { |
| "text": "Use CanonicalHeaderKey when you need to canonicalize the header key s according to HTTP/2 requirements. Canonicalizing a header key means converting the first letter and any letter following a hyphen to upper case; the rest are converted to lowercase. For example, the canonical key for 'accept-encoding' is 'Accept-Encoding'. This function is useful in the context of HTTP/2, where header names are case-insensitive and must be canonicalized before being sent over the wire. By using CanonicalHeaderKey, you can ensure that header keys are properly formatted and can be easily compared and manipulated." |
| } |
| ], |
| "role": "model" |
| }, |
| "finishReason": 1, |
| "index": 0, |
| "safetyRatings": [ |
| { |
| "category": 9, |
| "probability": 1 |
| }, |
| { |
| "category": 8, |
| "probability": 1 |
| }, |
| { |
| "category": 7, |
| "probability": 1 |
| }, |
| { |
| "category": 10, |
| "probability": 1 |
| } |
| ], |
| "citationMetadata": { |
| "citationSources": [ |
| { |
| "startIndex": 149, |
| "endIndex": 319, |
| "uri": "https://tachingchen.com/blog/pitfall-of-golang-header-operation/", |
| "license": "" |
| } |
| ] |
| } |
| } |
| ], |
| "usageMetadata": { |
| "promptTokenCount": 81, |
| "candidatesTokenCount": 120, |
| "totalTokenCount": 201 |
| }, |
| "modelVersion": "gemini-1.0-pro" |
| } |