@blazingagents/sdk 0.9.1 → 0.9.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.
@@ -146,10 +146,10 @@ export const usageOverviewResponseSchema = z
146
146
  .superRefine((value, ctx) => {
147
147
  const remainderCount = value.byModel.filter(({ model, provider }) => model === null && provider === null).length;
148
148
  const normalCount = value.byModel.length - remainderCount;
149
- const hasIncompleteModel = value.byModel.some(({ model, provider }) => (model === null) !== (provider === null));
149
+ const hasProviderWithoutModel = value.byModel.some(({ model, provider }) => model === null && provider !== null);
150
150
  if (remainderCount > 1 ||
151
151
  normalCount > MAX_USAGE_OVERVIEW_TOP_N ||
152
- hasIncompleteModel) {
152
+ hasProviderWithoutModel) {
153
153
  ctx.addIssue({
154
154
  code: "custom",
155
155
  message: "Model usage must contain at most 20 models and one remainder.",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blazingagents/sdk",
3
- "version": "0.9.1",
3
+ "version": "0.9.2",
4
4
  "description": "TypeScript SDK for the Blazing Agents API",
5
5
  "homepage": "https://docs.blazingagents.com",
6
6
  "bugs": {