Skip to content

Commit

Permalink
resolved bugs in json loading
Browse files Browse the repository at this point in the history
  • Loading branch information
vijayc9 committed Oct 17, 2024
1 parent bd04693 commit 81984fd
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion agentneo/tracing/llm_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,14 @@
with open("agentneo/configs/model_costs.json", "r") as file:
config = json.load(file)
except FileNotFoundError:
with resources.open_text("agentneo", "configs/model_costs.json") as file:
# with resources.open_text("agentneo", "configs/model_costs.json") as file:
# config = json.load(file)
from importlib.resources import files
with (files("agentneo.configs") / "model_costs.json").open("r") as file:
config = json.load(file)



def extract_llm_output(result):

# import pdb
Expand Down

0 comments on commit 81984fd

Please sign in to comment.