Files
crewAI/lib/crewai/tests/cassettes/test_gemini_models[gemini-gemini-2.0-flash-001].yaml
Greyson LaLonde bdafe0fac7
Some checks failed
Build uv cache / build-cache (3.10) (push) Has been cancelled
Build uv cache / build-cache (3.11) (push) Has been cancelled
Build uv cache / build-cache (3.12) (push) Has been cancelled
CodeQL Advanced / Analyze (actions) (push) Has been cancelled
CodeQL Advanced / Analyze (python) (push) Has been cancelled
Notify Downstream / notify-downstream (push) Has been cancelled
Check Documentation Broken Links / Check broken links (push) Has been cancelled
Build uv cache / build-cache (3.13) (push) Has been cancelled
fix: ensure token usage recording, validate response model on stream
2025-12-10 20:32:10 -05:00

63 lines
2.1 KiB
YAML

interactions:
- request:
body: '{"contents": [{"parts": [{"text": "What is the capital of France?"}], "role":
"user"}], "generationConfig": {}}'
headers:
Accept:
- '*/*'
Accept-Encoding:
- gzip, deflate, zstd
Connection:
- keep-alive
Content-Length:
- '111'
Content-Type:
- application/json
user-agent:
- google-genai-sdk/1.2.0 gl-python/3.12.9
x-goog-api-client:
- google-genai-sdk/1.2.0 gl-python/3.12.9
x-goog-api-key:
- X-GOOG-API-KEY-XXX
method: POST
uri: https://generativelanguage.googleapis.com/v1beta/models/gemini-2.0-flash-001:generateContent
response:
body:
string: "{\n \"candidates\": [\n {\n \"content\": {\n \"parts\":
[\n {\n \"text\": \"The capital of France is **Paris**.\\n\"\n
\ }\n ],\n \"role\": \"model\"\n },\n \"finishReason\":
\"STOP\",\n \"avgLogprobs\": -0.021610861023267109\n }\n ],\n \"usageMetadata\":
{\n \"promptTokenCount\": 7,\n \"candidatesTokenCount\": 9,\n \"totalTokenCount\":
16,\n \"promptTokensDetails\": [\n {\n \"modality\": \"TEXT\",\n
\ \"tokenCount\": 7\n }\n ],\n \"candidatesTokensDetails\":
[\n {\n \"modality\": \"TEXT\",\n \"tokenCount\": 9\n }\n
\ ]\n },\n \"modelVersion\": \"gemini-2.0-flash-001\",\n \"responseId\":
\"wVIradyDDo_h_uMPlNSt4Qw\"\n}\n"
headers:
Alt-Svc:
- h3=":443"; ma=2592000,h3-29=":443"; ma=2592000
Content-Type:
- application/json; charset=UTF-8
Date:
- Sat, 29 Nov 2025 20:08:33 GMT
Server:
- scaffolding on HTTPServer2
Server-Timing:
- gfet4t7; dur=337
Transfer-Encoding:
- chunked
Vary:
- Origin
- X-Origin
- Referer
X-Content-Type-Options:
- X-CONTENT-TYPE-XXX
X-Frame-Options:
- X-FRAME-OPTIONS-XXX
X-XSS-Protection:
- '0'
status:
code: 200
message: OK
version: 1