We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bd04693 commit 81984fdCopy full SHA for 81984fd
agentneo/tracing/llm_utils.py
@@ -13,10 +13,14 @@
13
with open("agentneo/configs/model_costs.json", "r") as file:
14
config = json.load(file)
15
except FileNotFoundError:
16
- with resources.open_text("agentneo", "configs/model_costs.json") as file:
+ # with resources.open_text("agentneo", "configs/model_costs.json") as file:
17
+ # config = json.load(file)
18
+ from importlib.resources import files
19
+ with (files("agentneo.configs") / "model_costs.json").open("r") as file:
20
21
22
23
+
24
def extract_llm_output(result):
25
26
# import pdb
0 commit comments