@juspay/neurolink
Version:
The pipe layer of an AI nervous system: one interface connecting provider neurons to your application, across three inference types — generate, stream and decide. `decide` returns typed, calibrated judgements from a non-generative model (~400ms, ~$0.00002
10 lines (9 loc) • 355 B
JavaScript
import { getProviderRules } from "./registry.js";
/** A provider's thinking limits; throws when its rules file has none. */
export function getThinkingLimits(id) {
const limits = getProviderRules(id).thinkingLimits;
if (!limits) {
throw new Error(`Provider rules file "${id}.json" has no thinkingLimits block`);
}
return limits;
}