ragaai-catalyst 2.2.4b4__py3-none-any.whl → 2.2.4b5__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/utils/trace_json_converter.py +2 -2
- {ragaai_catalyst-2.2.4b4.dist-info → ragaai_catalyst-2.2.4b5.dist-info}/METADATA +1 -1
- {ragaai_catalyst-2.2.4b4.dist-info → ragaai_catalyst-2.2.4b5.dist-info}/RECORD +6 -6
- {ragaai_catalyst-2.2.4b4.dist-info → ragaai_catalyst-2.2.4b5.dist-info}/WHEEL +0 -0
- {ragaai_catalyst-2.2.4b4.dist-info → ragaai_catalyst-2.2.4b5.dist-info}/licenses/LICENSE +0 -0
- {ragaai_catalyst-2.2.4b4.dist-info → ragaai_catalyst-2.2.4b5.dist-info}/top_level.txt +0 -0
@@ -156,14 +156,14 @@ def convert_json_format(
|
|
156
156
|
|
157
157
|
# If prompt tokens or/and completion tokens are not present, will calculate it using tiktoken
|
158
158
|
try:
|
159
|
-
if prompt_tokens == 0:
|
159
|
+
if prompt_tokens == 0 and span["attributes"].get("openinference.span.kind") == "LLM" and span["status"].get("status_code") != "ERROR":
|
160
160
|
prompt_value = span["attributes"].get("input.value")
|
161
161
|
if prompt_value:
|
162
162
|
prompt_tokens = count_tokens(prompt_value)
|
163
163
|
logger.debug(
|
164
164
|
f"Prompt tokens not present, calculated it: {prompt_tokens}"
|
165
165
|
)
|
166
|
-
if completion_tokens == 0:
|
166
|
+
if completion_tokens == 0 and span["attributes"].get("openinference.span.kind") == "LLM" and span["status"].get("status_code") != "ERROR" :
|
167
167
|
completion_value = span["attributes"].get("output.value")
|
168
168
|
if completion_value:
|
169
169
|
completion_tokens = count_tokens(completion_value)
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: ragaai_catalyst
|
3
|
-
Version: 2.2.
|
3
|
+
Version: 2.2.4b5
|
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>, Tushar Kumar <tushar.kumar@raga.ai>, Rishabh Pandey <rishabh.pandey@raga.ai>, Jyotsana C G <jyotsana@raga.ai>
|
6
6
|
Requires-Python: <=3.13.2,>=3.10
|
@@ -86,10 +86,10 @@ ragaai_catalyst/tracers/utils/langchain_tracer_extraction_logic.py,sha256=XS2_x2
|
|
86
86
|
ragaai_catalyst/tracers/utils/model_prices_and_context_window_backup.json,sha256=WlZCZeOQ54aMVjYS8BAeka2uaFC3ftBTMZ8zzzA8TAI,495947
|
87
87
|
ragaai_catalyst/tracers/utils/rag_extraction_logic_final.py,sha256=3ygkRT__lLDRflRttjzPu28tIA8cTCiGQVMQjqMItqQ,11309
|
88
88
|
ragaai_catalyst/tracers/utils/rag_trace_json_converter.py,sha256=54IEZO-YRjUAahV5nw8KClXqTF1LhfDry_TsZ4KGow4,20467
|
89
|
-
ragaai_catalyst/tracers/utils/trace_json_converter.py,sha256
|
89
|
+
ragaai_catalyst/tracers/utils/trace_json_converter.py,sha256=-HZVmijeUFLO7e9OAvi1RJdWVTxPRUHPd1MkKQlCD54,11785
|
90
90
|
ragaai_catalyst/tracers/utils/utils.py,sha256=o-p9n2ZuophdrV0wrixu-BqRHCkovup_klc3mS8mU8g,2374
|
91
|
-
ragaai_catalyst-2.2.
|
92
|
-
ragaai_catalyst-2.2.
|
93
|
-
ragaai_catalyst-2.2.
|
94
|
-
ragaai_catalyst-2.2.
|
95
|
-
ragaai_catalyst-2.2.
|
91
|
+
ragaai_catalyst-2.2.4b5.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
92
|
+
ragaai_catalyst-2.2.4b5.dist-info/METADATA,sha256=Q7PtQXhDh171npPl7svseoiSvBfEcNevud0mDWqHx0g,17679
|
93
|
+
ragaai_catalyst-2.2.4b5.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
94
|
+
ragaai_catalyst-2.2.4b5.dist-info/top_level.txt,sha256=HpgsdRgEJMk8nqrU6qdCYk3di7MJkDL0B19lkc7dLfM,16
|
95
|
+
ragaai_catalyst-2.2.4b5.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|