Update litellm/llms/openai/responses/count_tokens/transformation.py

Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
This commit is contained in:
Cesar Garcia 2026-03-04 19:46:10 -03:00 committed by GitHub
parent 28a20c180f
commit 91928d9d67
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -102,7 +102,7 @@ class OpenAICountTokensConfig:
for msg in messages:
role = msg.get("role", "")
content = msg.get("content", "")
content = msg.get("content") or ""
if role in ("system", "developer"):
# Extract system/developer messages as instructions