mirror of
https://github.com/hwchase17/langchain.git
synced 2025-06-24 15:43:54 +00:00
groq: handle null queue_time (#20839)
This commit is contained in:
parent
30e48c9878
commit
3bcfbcc871
@ -469,7 +469,7 @@ class ChatGroq(BaseChatModel):
|
||||
token_usage = output["token_usage"]
|
||||
if token_usage is not None:
|
||||
for k, v in token_usage.items():
|
||||
if k in overall_token_usage:
|
||||
if k in overall_token_usage and v is not None:
|
||||
overall_token_usage[k] += v
|
||||
else:
|
||||
overall_token_usage[k] = v
|
||||
|
Loading…
Reference in New Issue
Block a user