Files
OpenPipe-llm/src/utils/utils.ts
Kyle Corbitt 332a2101c0 More work on modelProviders
I think everything that's OpenAI-specific is inside modelProviders at this point, so we can get started adding more providers.
2023-07-20 18:54:26 -07:00

2 lines
80 B
TypeScript

export const truthyFilter = <T>(x: T | null | undefined): x is T => Boolean(x);