We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2751c7f commit a24f59bCopy full SHA for a24f59b
web/utils/providerUtils.ts
@@ -1,7 +1,5 @@
1
import { Provider, SortOption } from "@/types/provider";
2
3
-const HELICONE_ORG_ID = process.env.NEXT_PUBLIC_HELICONE_ORG_ID;
4
-
5
/**
6
* Get provider name by ID
7
*/
@@ -18,11 +16,9 @@ export const filterPubliclyVisibleProviders = (
18
16
orgId?: string,
19
17
): Provider[] => {
20
return providers.filter((provider) => {
21
- // Helicone org can see all providers
22
- if (orgId === HELICONE_ORG_ID) {
+ if (orgId === process.env.NEXT_PUBLIC_HELICONE_ORG_ID) {
23
return true;
24
}
25
- // Default to true if not specified (backward compatible)
26
return provider.publiclyVisible !== false;
27
});
28
};
0 commit comments