GaiZhenbiao / SynologyChatGPT

ChatGPT client for Synology Chat, written with Django
Apache License 2.0
78 stars 15 forks source link

hotfix: total_tokens while not totalTokens #16

Closed mujiannan closed 1 year ago

mujiannan commented 1 year ago

Sorry for make a mistake on total_tokens in ea0981a81ef283306ecc15b304ed5ba371f3010a I was misled by MBM's interface documentation The origin response of openai at https://api.openai.com/v1 is res['usage']['total_tokens']