Skip to content

armgit / laya

Public Imported from GitHub
0

Non-autoregressive System 1 decision engine. Typed choice, score and yes/no decisions over any text in a single forward pass, in 100+ languages, with a router that picks the right checkpoint per request.

refactor(sdk): drop the option-key guard the null check already covers

Aashishdd6990f83ca3
diff --git a/sdk/typescript/src/response.ts b/sdk/typescript/src/response.ts
index 68baf021..c501d8ab 100644
--- a/sdk/typescript/src/response.ts
+++ b/sdk/typescript/src/response.ts
@@ -58,9 +58,8 @@ export function validateUsage(value: unknown): void {
expect(isRecord(collapse), 'usage.options');
expect(count(collapse.total) && count(collapse.distinct) && collapse.distinct <= collapse.total,
'usage.options');
- expect(Object.hasOwn(collapse, 'tokens_per_option') &&
- (collapse.tokens_per_option === null || count(collapse.tokens_per_option)),
- 'usage.options.tokens_per_option');
+ expect(collapse.tokens_per_option === null || count(collapse.tokens_per_option),
+ 'usage.options.tokens_per_option');
}
}