ai-functions
Version:
A powerful TypeScript library for building AI-powered applications with template literals and structured outputs
12 lines • 526 B
JavaScript
export function validateListOptions(options) {
if (options.seed !== undefined && !Number.isInteger(options.seed)) {
throw new Error('List options seed must be an integer');
}
if (options.model !== undefined && typeof options.model !== 'string') {
throw new Error('List options model must be a string');
}
if (options.system !== undefined && typeof options.system !== 'string') {
throw new Error('List options system must be a string');
}
}
//# sourceMappingURL=validation.js.map