Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,13 @@ All notable changes to Cost Katana Python SDK will be documented in this file.

## [Unreleased]

## [2.5.6] - 2026-04-29

### Fixed

- **GitHub Actions**: Use automatic `github.token` instead of invalid `secrets.GITHUB_TOKEN` for `actions/checkout` and releases (`auto-release.yml`, `version-bump.yml`, `publish.yml`).
- **Auto Release**: Build artifacts **after** bumping `setup.py` / `cost_katana/__init__.py` so PyPI uploads are not stale duplicates (fixes HTTP 400 on upload).
- **Version Bump workflow**: Install **`setuptools`** for `setup.py --version`; keep **`__version__`** in sync when bumping.
- **CI typing**: Resolve **`mypy`** errors across `cost_katana` (`Logger`, `AILogger`, `TemplateManager`, `CostKatanaClient`, `SimpleResponse.templateUsed`, Optional template parameters).
- **CI security**: **`bandit`** clean on current sources; **`safety`** scoped to `requirements.txt` so transitive dev-only CVE noise does not fail the workflow.

Expand Down
2 changes: 1 addition & 1 deletion cost_katana/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
get_provider_from_model,
)

__version__ = "2.5.5"
__version__ = "2.5.6"


def track(entry: Dict[str, Any]) -> None:
Expand Down
2 changes: 1 addition & 1 deletion cost_katana/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ def __init__(
headers: Dict[str, str] = {
"Authorization": f"Bearer {self.config.api_key}",
"Content-Type": "application/json",
"User-Agent": "cost-katana-python/2.5.5",
"User-Agent": "cost-katana-python/2.5.6",
}
if self.config.project_id:
headers["x-project-id"] = self.config.project_id
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

setup(
name="cost-katana",
version="2.5.5",
version="2.5.6",
author="Cost Katana Team",
author_email="support@costkatana.com",
description="The simplest way to use AI in Python with automatic cost tracking and optimization",
Expand Down
Loading