87 lines
2.0 KiB
YAML
87 lines
2.0 KiB
YAML
interactions:
|
|
- request:
|
|
body: |-
|
|
{
|
|
"contents": [
|
|
{
|
|
"role": "user",
|
|
"parts": [
|
|
{
|
|
"text": "Say this is a test"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
headers:
|
|
Accept:
|
|
- '*/*'
|
|
Accept-Encoding:
|
|
- gzip, deflate
|
|
Connection:
|
|
- keep-alive
|
|
Content-Length:
|
|
- '141'
|
|
Content-Type:
|
|
- application/json
|
|
User-Agent:
|
|
- python-requests/2.32.3
|
|
method: POST
|
|
uri: https://us-central1-aiplatform.googleapis.com/v1/projects/fake-project/locations/us-central1/publishers/google/models/gemini-2.5-pro:generateContent?%24alt=json%3Benum-encoding%3Dint
|
|
response:
|
|
body:
|
|
string: |-
|
|
{
|
|
"candidates": [
|
|
{
|
|
"content": {
|
|
"role": "model",
|
|
"parts": [
|
|
{
|
|
"text": "This is a test."
|
|
}
|
|
]
|
|
},
|
|
"finishReason": 1,
|
|
"avgLogprobs": -12.052484893798828
|
|
}
|
|
],
|
|
"usageMetadata": {
|
|
"promptTokenCount": 5,
|
|
"candidatesTokenCount": 5,
|
|
"totalTokenCount": 304,
|
|
"trafficType": 1,
|
|
"promptTokensDetails": [
|
|
{
|
|
"modality": 1,
|
|
"tokenCount": 5
|
|
}
|
|
],
|
|
"candidatesTokensDetails": [
|
|
{
|
|
"modality": 1,
|
|
"tokenCount": 5
|
|
}
|
|
],
|
|
"thoughtsTokenCount": 294
|
|
},
|
|
"modelVersion": "gemini-2.5-pro",
|
|
"createTime": "2025-08-19T15:20:47.464265Z",
|
|
"responseId": "T5akaImrHM2Dm9IPlu_Z0QI"
|
|
}
|
|
headers:
|
|
Content-Type:
|
|
- application/json; charset=UTF-8
|
|
Transfer-Encoding:
|
|
- chunked
|
|
Vary:
|
|
- Origin
|
|
- X-Origin
|
|
- Referer
|
|
content-length:
|
|
- '740'
|
|
status:
|
|
code: 200
|
|
message: OK
|
|
version: 1
|