@llmops/app 0.5.0-beta.2 → 0.5.0-beta.3

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/dist/index.cjs CHANGED
@@ -18182,6 +18182,10 @@ function createCostTrackingMiddleware(config$1 = {}) {
18182
18182
  return;
18183
18183
  }
18184
18184
  const db = c.get("db");
18185
+ if (!db) {
18186
+ log(`Skipping cost tracking - no database configured`);
18187
+ return;
18188
+ }
18185
18189
  const batchWriter = getGlobalBatchWriter({ batchInsertRequests: (requests) => db.batchInsertRequests(requests) }, {
18186
18190
  flushIntervalMs,
18187
18191
  debug
package/dist/index.mjs CHANGED
@@ -18153,6 +18153,10 @@ function createCostTrackingMiddleware(config$1 = {}) {
18153
18153
  return;
18154
18154
  }
18155
18155
  const db = c.get("db");
18156
+ if (!db) {
18157
+ log(`Skipping cost tracking - no database configured`);
18158
+ return;
18159
+ }
18156
18160
  const batchWriter = getGlobalBatchWriter({ batchInsertRequests: (requests) => db.batchInsertRequests(requests) }, {
18157
18161
  flushIntervalMs,
18158
18162
  debug
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@llmops/app",
3
- "version": "0.5.0-beta.2",
3
+ "version": "0.5.0-beta.3",
4
4
  "description": "LLMOps application with server and client",
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",
@@ -76,8 +76,8 @@
76
76
  "react-hook-form": "^7.68.0",
77
77
  "recharts": "^3.6.0",
78
78
  "uuid": "^13.0.0",
79
- "@llmops/core": "^0.5.0-beta.2",
80
- "@llmops/gateway": "^0.5.0-beta.2"
79
+ "@llmops/gateway": "^0.5.0-beta.3",
80
+ "@llmops/core": "^0.5.0-beta.3"
81
81
  },
82
82
  "peerDependencies": {
83
83
  "react": "^19.2.1",