Skip to content

Commit 91c500d

Browse files
committed
chore: Remove PUBLISHING.md and update documentation for cost tracking
- Deleted PUBLISHING.md as it is no longer needed. - Updated README.md and other files to clarify that usage and cost tracking is always on and cannot be disabled. - Bumped version to 2.2.6 in setup.py and __init__.py to reflect these changes.
1 parent 763d512 commit 91c500d

6 files changed

Lines changed: 18 additions & 7 deletions

File tree

PUBLISHING.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ print(response.cost) # 0.0012
2626
print(response.tokens) # 47
2727
```
2828

29-
**That's it.** No configuration. No complexity. Just results.
29+
**That's it.** No configuration. No complexity. Just results. Usage and cost tracking is always on—there is no option to disable it (required for usage attribution and cost visibility).
3030

3131
---
3232

@@ -148,7 +148,7 @@ gpt-3.5-turbo $0.000080
148148

149149
### Cost Tracking
150150

151-
Every response includes cost information:
151+
Usage and cost tracking is always on; no option to disable. Every response includes cost information:
152152

153153
```python
154154
response = ck.ai('gpt-4', 'Write a story')

cost_katana/__init__.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
"""
22
Cost Katana - The Simplest AI SDK for Python
33
4+
Usage and cost tracking is always on; there is no option to disable it
5+
(required for usage attribution and cost visibility).
6+
47
Example:
58
import cost_katana as ck
69
@@ -40,7 +43,7 @@
4043
get_provider_from_model,
4144
)
4245

43-
__version__ = "2.2.5"
46+
__version__ = "2.2.6"
4447

4548
# Import configure function from client
4649
from .client import configure
@@ -99,7 +102,7 @@ def __repr__(self):
99102

100103

101104
class SimpleChat:
102-
"""Simple chat session with automatic cost tracking."""
105+
"""Simple chat session with automatic cost tracking (always on; no option to disable)."""
103106

104107
def __init__(
105108
self, model: str, system_message: Optional[str] = None, **options: Any
@@ -165,6 +168,8 @@ def ai(
165168
"""
166169
The simplest way to use AI in Python.
167170
171+
Usage and cost tracking is always on; no configuration required.
172+
168173
Args:
169174
model: AI model name or constant (e.g., openai.gpt_4, 'gpt-4')
170175
prompt: Your prompt text

cost_katana/client.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ def configure(
3030
"""
3131
Configure Cost Katana client globally.
3232
33+
Usage and cost tracking is always on; no option to disable.
34+
3335
Args:
3436
api_key: Your Cost Katana API key (starts with 'dak_')
3537
base_url: Base URL for Cost Katana API (optional)

cost_katana/config.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,12 @@
1111

1212
@dataclass
1313
class Config:
14-
"""Configuration class for Cost Katana client"""
14+
"""
15+
Configuration class for Cost Katana client.
16+
17+
Usage and cost tracking is always on; there is no option to disable it
18+
(required for usage attribution and cost visibility).
19+
"""
1520

1621
api_key: Optional[str] = None
1722
base_url: str = "https://api.costkatana.com"

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
setup(
1616
name="cost-katana",
17-
version="2.2.5",
17+
version="2.2.6",
1818
author="Cost Katana Team",
1919
author_email="support@costkatana.com",
2020
description="The simplest way to use AI in Python with automatic cost tracking and optimization",

0 commit comments

Comments
 (0)