Skip to content

Update gemini response transform: calculate completion_tokens as the sum of candidatesTokenCount and thoughtsTokenCount to match OpenAI API expectations#1462

Open
eulervoid wants to merge 1 commit intoPortkey-AI:mainfrom
pollinations:fix/gemini-completion-tokens-should-include-reasoning-tokens
Open

Update gemini response transform: calculate completion_tokens as the sum of candidatesTokenCount and thoughtsTokenCount to match OpenAI API expectations#1462
eulervoid wants to merge 1 commit intoPortkey-AI:mainfrom
pollinations:fix/gemini-completion-tokens-should-include-reasoning-tokens