mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-03 02:22:24 +00:00
style(lint): format tokenizer call
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
parent
8ddec7249b
commit
1045219255
1 changed files with 1 additions and 3 deletions
|
|
@ -277,9 +277,7 @@ def completion(
|
|||
|
||||
## CALCULATING USAGE - baseten charges on time, not tokens - have some mapping of cost here.
|
||||
prompt_tokens: Final = len(encoding.encode(prompt))
|
||||
completion_tokens: Final = len(
|
||||
encoding.encode(model_response["choices"][0]["message"]["content"])
|
||||
)
|
||||
completion_tokens: Final = len(encoding.encode(model_response["choices"][0]["message"]["content"]))
|
||||
|
||||
model_response.created = int(time.time())
|
||||
model_response.model = model
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue