style(gemini): format count_tokens request body per ruff format

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
Devin AI 2026-09-23 13:02:01 +00:00
parent 4e25825b91
commit 3bc391c16e

View file

@ -141,10 +141,20 @@ class GoogleAIStudioTokenCounter:
"generateContentRequest": { # mutable-ok: httpx json body takes a plain dict
"model": f"models/{model}",
"contents": cleaned_contents,
**( # mutable-ok: httpx json body takes a plain dict
{"systemInstruction": system_instruction} if system_instruction is not None else {}
**(
{ # mutable-ok: httpx json body takes a plain dict
"systemInstruction": system_instruction,
}
if system_instruction is not None
else {} # mutable-ok: httpx json body takes a plain dict
),
**(
{ # mutable-ok: httpx json body takes a plain dict
"tools": tools,
}
if tools is not None
else {} # mutable-ok: httpx json body takes a plain dict
),
**({"tools": tools} if tools is not None else {}), # mutable-ok: httpx json body takes a plain dict
}
}
)