kyber-runtime 0.1.3__tar.gz → 0.1.5__tar.gz

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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: kyber_runtime
3
- Version: 0.1.3
3
+ Version: 0.1.5
4
4
  Summary: Kyber Agent Runtime SDK for instrumented LLM calls
5
5
  Author: Your Team
6
6
  Requires-Python: >=3.9
@@ -0,0 +1,4 @@
1
+ from .llm import llm_call, LLMCallContext
2
+
3
+ __version__ = "0.1.5"
4
+ __all__ = ["llm_call", "LLMCallContext"]
@@ -20,9 +20,9 @@ class LLMCallContext(BaseModel):
20
20
  def _calculate_cost(model: str, prompt_tokens: int, completion_tokens: int) -> float:
21
21
  if model not in LLM_pricing:
22
22
  return 0.0
23
- princing = LLM_pricing[model]
24
- input_cost = (prompt_tokens / 1000) * princing["input"]
25
- output_cost = (completion_tokens / 1000) * princing["output"]
23
+ pricing = LLM_pricing[model]
24
+ input_cost = (prompt_tokens / 1000000) * pricing["input"]
25
+ output_cost = (completion_tokens / 1000000) * pricing["output"]
26
26
  return round(input_cost + output_cost, 6)
27
27
 
28
28
  def llm_call(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: kyber_runtime
3
- Version: 0.1.3
3
+ Version: 0.1.5
4
4
  Summary: Kyber Agent Runtime SDK for instrumented LLM calls
5
5
  Author: Your Team
6
6
  Requires-Python: >=3.9
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
2
2
 
3
3
  setup(
4
4
  name="kyber_runtime",
5
- version="0.1.3",
5
+ version="0.1.5",
6
6
  author="Your Team",
7
7
  description="Kyber Agent Runtime SDK for instrumented LLM calls",
8
8
  long_description_content_type="text/markdown",
@@ -1,4 +0,0 @@
1
- from .llm import call_llm, LLMCallContext
2
-
3
- __version__ = "0.1.3"
4
- __all__ = ["llm_call", "LLMCallContext"]
File without changes