I think everything that's OpenAI-specific is inside modelProviders at this point, so we can get started adding more providers.
2 lines
80 B
TypeScript
2 lines
80 B
TypeScript
export const truthyFilter = <T>(x: T | null | undefined): x is T => Boolean(x);
|