ragaai-catalyst 2.1.5b16__py3-none-any.whl → 2.1.5b17__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- ragaai_catalyst/tracers/agentic_tracing/tracers/llm_tracer.py +4 -2
- {ragaai_catalyst-2.1.5b16.dist-info → ragaai_catalyst-2.1.5b17.dist-info}/METADATA +1 -1
- {ragaai_catalyst-2.1.5b16.dist-info → ragaai_catalyst-2.1.5b17.dist-info}/RECORD +6 -6
- {ragaai_catalyst-2.1.5b16.dist-info → ragaai_catalyst-2.1.5b17.dist-info}/LICENSE +0 -0
- {ragaai_catalyst-2.1.5b16.dist-info → ragaai_catalyst-2.1.5b17.dist-info}/WHEEL +0 -0
- {ragaai_catalyst-2.1.5b16.dist-info → ragaai_catalyst-2.1.5b17.dist-info}/top_level.txt +0 -0
@@ -45,7 +45,6 @@ class LLMTracerMixin:
|
|
45
45
|
self.model_costs = load_model_costs()
|
46
46
|
except Exception as e:
|
47
47
|
self.model_costs = {
|
48
|
-
# TODO: Default cost handling needs to be improved
|
49
48
|
"default": {"input_cost_per_token": 0.0, "output_cost_per_token": 0.0}
|
50
49
|
}
|
51
50
|
self.MAX_PARAMETERS_TO_DISPLAY = 10
|
@@ -59,7 +58,6 @@ class LLMTracerMixin:
|
|
59
58
|
self.total_cost = 0.0
|
60
59
|
self.llm_data = {}
|
61
60
|
|
62
|
-
# Add auto_instrument options
|
63
61
|
self.auto_instrument_llm = False
|
64
62
|
self.auto_instrument_user_interaction = False
|
65
63
|
self.auto_instrument_file_io = False
|
@@ -258,6 +256,10 @@ class LLMTracerMixin:
|
|
258
256
|
self.wrap_method(chat_class, "acomplete")
|
259
257
|
|
260
258
|
def wrap_openai_client_methods(self, client_class):
|
259
|
+
# Skip if OpenAI is not being used (no API key set)
|
260
|
+
if not os.getenv("OPENAI_API_KEY"):
|
261
|
+
return
|
262
|
+
|
261
263
|
original_init = client_class.__init__
|
262
264
|
|
263
265
|
@functools.wraps(original_init)
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.2
|
2
2
|
Name: ragaai_catalyst
|
3
|
-
Version: 2.1.
|
3
|
+
Version: 2.1.5b17
|
4
4
|
Summary: RAGA AI CATALYST
|
5
5
|
Author-email: Kiran Scaria <kiran.scaria@raga.ai>, Kedar Gaikwad <kedar.gaikwad@raga.ai>, Dushyant Mahajan <dushyant.mahajan@raga.ai>, Siddhartha Kosti <siddhartha.kosti@raga.ai>, Ritika Goel <ritika.goel@raga.ai>, Vijay Chaurasia <vijay.chaurasia@raga.ai>
|
6
6
|
Requires-Python: <3.13,>=3.9
|
@@ -32,7 +32,7 @@ ragaai_catalyst/tracers/agentic_tracing/tracers/agent_tracer.py,sha256=8d6YovuWi
|
|
32
32
|
ragaai_catalyst/tracers/agentic_tracing/tracers/base.py,sha256=88rX7OkOGEyVNECUrc4bYqODyulXve_-99d9ku5hBeQ,37373
|
33
33
|
ragaai_catalyst/tracers/agentic_tracing/tracers/custom_tracer.py,sha256=OHet_Cphyrsq2CP4WiooTsWSgg3Rc1n8QsOl1s2vqdY,13480
|
34
34
|
ragaai_catalyst/tracers/agentic_tracing/tracers/langgraph_tracer.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
35
|
-
ragaai_catalyst/tracers/agentic_tracing/tracers/llm_tracer.py,sha256=
|
35
|
+
ragaai_catalyst/tracers/agentic_tracing/tracers/llm_tracer.py,sha256=ySoUbj7NPveV1g-G4E4D8uOH_4Ad93qVu9Z2aAZHH1o,34518
|
36
36
|
ragaai_catalyst/tracers/agentic_tracing/tracers/main_tracer.py,sha256=JEwvFV6KdYcg8zt2qUTKmmPvrkEft0YNAyUYK6FWF7c,18335
|
37
37
|
ragaai_catalyst/tracers/agentic_tracing/tracers/network_tracer.py,sha256=m8CxYkl7iMiFya_lNwN1ykBc3Pmo-2pR_2HmpptwHWQ,10352
|
38
38
|
ragaai_catalyst/tracers/agentic_tracing/tracers/tool_tracer.py,sha256=nmgkE3jRlTpq_uk6FYw0hTv2VgT8ejxvvBRL7gso39I,21037
|
@@ -66,8 +66,8 @@ ragaai_catalyst/tracers/utils/__init__.py,sha256=KeMaZtYaTojilpLv65qH08QmpYclfpa
|
|
66
66
|
ragaai_catalyst/tracers/utils/convert_langchain_callbacks_output.py,sha256=ofrNrxf2b1hpjDh_zeaxiYq86azn1MF3kW8-ViYPEg0,1641
|
67
67
|
ragaai_catalyst/tracers/utils/langchain_tracer_extraction_logic.py,sha256=qK67fdUBz5Xr99ajqXbYf1ueKS1V3a3_XR0zCcN4iGI,3061
|
68
68
|
ragaai_catalyst/tracers/utils/utils.py,sha256=ViygfJ7vZ7U0CTSA1lbxVloHp4NSlmfDzBRNCJuMhis,2374
|
69
|
-
ragaai_catalyst-2.1.
|
70
|
-
ragaai_catalyst-2.1.
|
71
|
-
ragaai_catalyst-2.1.
|
72
|
-
ragaai_catalyst-2.1.
|
73
|
-
ragaai_catalyst-2.1.
|
69
|
+
ragaai_catalyst-2.1.5b17.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
70
|
+
ragaai_catalyst-2.1.5b17.dist-info/METADATA,sha256=ZAT6uQwGxjeBf-2Nzdd5qgi0obRJTSad3fOlmbs_iGE,12796
|
71
|
+
ragaai_catalyst-2.1.5b17.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
72
|
+
ragaai_catalyst-2.1.5b17.dist-info/top_level.txt,sha256=HpgsdRgEJMk8nqrU6qdCYk3di7MJkDL0B19lkc7dLfM,16
|
73
|
+
ragaai_catalyst-2.1.5b17.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|