(fix) pydantic errors with response.time

This commit is contained in:
ishaan-jaff 2023-11-20 18:28:17 -08:00
parent 3f30f93516
commit 50f883a2fb
18 changed files with 22 additions and 22 deletions

View file

@ -224,7 +224,7 @@ class Huggingface(BaseLLM):
else:
completion_tokens = 0
model_response["created"] = time.time()
model_response["created"] = int(time.time())
model_response["model"] = model
usage = Usage(
prompt_tokens=prompt_tokens,