cost-katana 2.0.1 → 2.0.2
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.
- package/README.md +26 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -50,6 +50,32 @@ await session.send('Tell me a joke');
|
|
|
50
50
|
console.log(`Total cost: $${session.totalCost}`);
|
|
51
51
|
```
|
|
52
52
|
|
|
53
|
+
---
|
|
54
|
+
|
|
55
|
+
## 📚 **More Examples**
|
|
56
|
+
|
|
57
|
+
**Looking for more comprehensive examples?** Check out our complete examples repository
|
|
58
|
+
|
|
59
|
+
**🔗 [github.com/Hypothesize-Tech/costkatana-examples](https://github.com/Hypothesize-Tech/costkatana-examples)**
|
|
60
|
+
|
|
61
|
+
**What's included:**
|
|
62
|
+
- ✅ 44 feature sections covering every Cost Katana capability
|
|
63
|
+
- ✅ HTTP REST API examples (`.http` files)
|
|
64
|
+
- ✅ TypeScript/Node.js examples
|
|
65
|
+
- ✅ Python SDK examples
|
|
66
|
+
- ✅ Framework integrations (Express, Next.js, Fastify, NestJS, FastAPI)
|
|
67
|
+
- ✅ Real-world use cases with best practices
|
|
68
|
+
- ✅ Production-ready code with full error handling
|
|
69
|
+
|
|
70
|
+
**Popular examples:**
|
|
71
|
+
- [Cost Tracking](https://github.com/Hypothesize-Tech/costkatana-examples/tree/main/1-cost-tracking) - Track costs across all providers
|
|
72
|
+
- [Webhooks](https://github.com/Hypothesize-Tech/costkatana-examples/tree/main/10-webhooks) - Real-time notifications
|
|
73
|
+
- [Workflows](https://github.com/Hypothesize-Tech/costkatana-examples/tree/main/13-workflows) - Multi-step AI orchestration
|
|
74
|
+
- [Semantic Caching](https://github.com/Hypothesize-Tech/costkatana-examples/tree/main/14-cache) - 30-40% cost reduction
|
|
75
|
+
- [OpenTelemetry](https://github.com/Hypothesize-Tech/costkatana-examples/tree/main/11-observability) - Distributed tracing
|
|
76
|
+
|
|
77
|
+
---
|
|
78
|
+
|
|
53
79
|
### Compare Models
|
|
54
80
|
|
|
55
81
|
```typescript
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cost-katana",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.2",
|
|
4
4
|
"description": "The simplest way to use AI with automatic cost tracking and optimization. Works with OpenAI, Anthropic, Google, AWS Bedrock, and more.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|