mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-24 18:24:20 +00:00
(fix) pydantic errors with response.time
This commit is contained in:
parent
3f30f93516
commit
50f883a2fb
18 changed files with 22 additions and 22 deletions
|
@ -172,7 +172,7 @@ def completion(
|
|||
encoding.encode(model_response["choices"][0]["message"].get("content", ""))
|
||||
) ##[TODO] use the anthropic tokenizer here
|
||||
|
||||
model_response["created"] = time.time()
|
||||
model_response["created"] = int(time.time())
|
||||
model_response["model"] = model
|
||||
usage = Usage(
|
||||
prompt_tokens=prompt_tokens,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue