forked from khoj-ai/khoj
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cost = chunk.usage.model_extra.get("estimated_cost", 0) if hasattr(ch…
…unk, "usage") and chunk.usage else 0 # Estimated costs returned by DeepInfra API fix AttributeError: 'NoneType' object has no attribute 'model_extra' khoj-ai#1019
- Loading branch information
1 parent
555d3df
commit daff2ab
Showing
1 changed file
with
1 addition
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters