Skip to content

Commit f6e882c

Browse files
committed
fix(models): remove dead og-utils exports, fix formatTokenCount null guard
1 parent 46641ec commit f6e882c

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

apps/sim/app/(landing)/models/og-utils.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
import { ImageResponse } from 'next/og'
22

3-
export const runtime = 'edge'
4-
export const contentType = 'image/png'
5-
export const size = {
3+
const size = {
64
width: 1200,
75
height: 630,
86
}

apps/sim/app/(landing)/models/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ export interface CatalogProvider {
135135
}
136136

137137
export function formatTokenCount(value?: number | null): string {
138-
if (!value) {
138+
if (value == null) {
139139
return 'Unknown'
140140
}
141141

0 commit comments

Comments
 (0)