agsamantha/node_modules/openai/_vendor/zod-to-json-schema/util.mjs

11 lines
272 B
JavaScript
Raw Normal View History

2024-10-02 20:15:21 +00:00
export const zodDef = (zodSchema) => {
return '_def' in zodSchema ? zodSchema._def : zodSchema;
};
export function isEmptyObj(obj) {
if (!obj)
return true;
for (const _k in obj)
return false;
return true;
}
//# sourceMappingURL=util.mjs.map