Skip to content

Commit 2f5d5e7

Browse files
committed
relative imports, build fix
1 parent 260f739 commit 2f5d5e7

File tree

8 files changed

+58
-22
lines changed

8 files changed

+58
-22
lines changed

apps/sim/app/(landing)/models/[provider]/[model]/opengraph-image.tsx

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,18 @@
11
import { notFound } from 'next/navigation'
2-
import { contentType, createModelsOgImage, runtime, size } from '../../og-utils'
3-
import { formatPrice, formatTokenCount, getModelBySlug, getProviderBySlug } from '../../utils'
2+
import { createModelsOgImage } from '@/app/(landing)/models/og-utils'
3+
import {
4+
formatPrice,
5+
formatTokenCount,
6+
getModelBySlug,
7+
getProviderBySlug,
8+
} from '@/app/(landing)/models/utils'
49

5-
export { contentType, runtime, size }
10+
export const runtime = 'edge'
11+
export const contentType = 'image/png'
12+
export const size = {
13+
width: 1200,
14+
height: 630,
15+
}
616

717
export default async function Image({
818
params,

apps/sim/app/(landing)/models/[provider]/[model]/page.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import {
1010
ModelCard,
1111
ProviderIcon,
1212
StatCard,
13-
} from '../../components/model-primitives'
13+
} from '@/app/(landing)/models/components/model-primitives'
1414
import {
1515
ALL_CATALOG_MODELS,
1616
buildModelCapabilityFacts,
@@ -22,7 +22,7 @@ import {
2222
getPricingBounds,
2323
getProviderBySlug,
2424
getRelatedModels,
25-
} from '../../utils'
25+
} from '@/app/(landing)/models/utils'
2626

2727
const baseUrl = getBaseUrl()
2828

apps/sim/app/(landing)/models/[provider]/opengraph-image.tsx

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,19 @@
11
import { notFound } from 'next/navigation'
2-
import { contentType, createModelsOgImage, runtime, size } from '../og-utils'
2+
import { createModelsOgImage } from '@/app/(landing)/models/og-utils'
33
import {
44
formatPrice,
55
formatTokenCount,
66
getCheapestProviderModel,
77
getLargestContextProviderModel,
88
getProviderBySlug,
9-
} from '../utils'
9+
} from '@/app/(landing)/models/utils'
1010

11-
export { contentType, runtime, size }
11+
export const runtime = 'edge'
12+
export const contentType = 'image/png'
13+
export const size = {
14+
width: 1200,
15+
height: 630,
16+
}
1217

1318
export default async function Image({ params }: { params: Promise<{ provider: string }> }) {
1419
const { provider: providerSlug } = await params

apps/sim/app/(landing)/models/[provider]/page.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ import {
99
ProviderCard,
1010
ProviderIcon,
1111
StatCard,
12-
} from '../components/model-primitives'
12+
} from '@/app/(landing)/models/components/model-primitives'
1313
import {
1414
buildProviderFaqs,
1515
getProviderBySlug,
1616
getProviderCapabilitySummary,
1717
MODEL_PROVIDERS_WITH_CATALOGS,
1818
TOP_MODEL_PROVIDERS,
19-
} from '../utils'
19+
} from '@/app/(landing)/models/utils'
2020

2121
const baseUrl = getBaseUrl()
2222

apps/sim/app/(landing)/models/components/model-directory.tsx

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,19 @@ import { useMemo, useState } from 'react'
44
import Link from 'next/link'
55
import { Input } from '@/components/emcn'
66
import { SearchIcon } from '@/components/icons'
7-
import type { CatalogProvider } from '../utils'
87
import {
8+
CapabilityTags,
9+
DetailItem,
10+
ModelCard,
11+
ProviderIcon,
12+
StatCard,
13+
} from '@/app/(landing)/models/components/model-primitives'
14+
import {
15+
type CatalogProvider,
916
MODEL_PROVIDERS_WITH_CATALOGS,
1017
MODEL_PROVIDERS_WITH_DYNAMIC_CATALOGS,
1118
TOTAL_MODELS,
12-
} from '../utils'
13-
import { CapabilityTags, DetailItem, ModelCard, ProviderIcon, StatCard } from './model-primitives'
19+
} from '@/app/(landing)/models/utils'
1420

1521
export function ModelDirectory() {
1622
const [query, setQuery] = useState('')

apps/sim/app/(landing)/models/components/model-primitives.tsx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
import Link from 'next/link'
22
import { Badge } from '@/components/emcn'
3-
import type { CatalogModel, CatalogProvider } from '../utils'
4-
import { formatPrice, formatTokenCount, formatUpdatedAt } from '../utils'
3+
import {
4+
type CatalogModel,
5+
type CatalogProvider,
6+
formatPrice,
7+
formatTokenCount,
8+
formatUpdatedAt,
9+
} from '@/app/(landing)/models/utils'
510

611
export function Breadcrumbs({ items }: { items: Array<{ label: string; href?: string }> }) {
712
return (

apps/sim/app/(landing)/models/opengraph-image.tsx

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,17 @@
1-
import { contentType, createModelsOgImage, runtime, size } from './og-utils'
2-
import { formatTokenCount, MAX_CONTEXT_WINDOW, TOTAL_MODEL_PROVIDERS, TOTAL_MODELS } from './utils'
1+
import { createModelsOgImage } from '@/app/(landing)/models/og-utils'
2+
import {
3+
formatTokenCount,
4+
MAX_CONTEXT_WINDOW,
5+
TOTAL_MODEL_PROVIDERS,
6+
TOTAL_MODELS,
7+
} from '@/app/(landing)/models/utils'
38

4-
export { contentType, runtime, size }
9+
export const runtime = 'edge'
10+
export const contentType = 'image/png'
11+
export const size = {
12+
width: 1200,
13+
height: 630,
14+
}
515

616
export default async function Image() {
717
return createModelsOgImage({

apps/sim/app/(landing)/models/page.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@ import type { Metadata } from 'next'
22
import Link from 'next/link'
33
import { getBaseUrl } from '@/lib/core/utils/urls'
44
import { LandingFAQ } from '@/app/(landing)/components/landing-faq'
5-
import { ModelDirectory } from './components/model-directory'
6-
import { ModelCard, ProviderCard } from './components/model-primitives'
5+
import { ModelDirectory } from '@/app/(landing)/models/components/model-directory'
6+
import { ModelCard, ProviderCard } from '@/app/(landing)/models/components/model-primitives'
77
import {
88
getPricingBounds,
99
MODEL_CATALOG_PROVIDERS,
1010
MODEL_PROVIDERS_WITH_CATALOGS,
1111
TOP_MODEL_PROVIDERS,
1212
TOTAL_MODEL_PROVIDERS,
1313
TOTAL_MODELS,
14-
} from './utils'
14+
} from '@/app/(landing)/models/utils'
1515

1616
const baseUrl = getBaseUrl()
1717

@@ -24,7 +24,7 @@ const faqItems = [
2424
{
2525
question: 'Can I compare models from multiple providers in one place?',
2626
answer:
27-
'Yes. This page organizes every tracked model by provider and lets you search across providers, model names, and capabilities. You can quickly compare OpenAI, Anthropic, Google, xAI, Mistral, Groq, Bedrock, and more from a single directory.',
27+
'Yes. This page organizes every tracked model by provider and lets you search across providers, model names, and capabilities. You can quickly compare OpenAI, Anthropic, Google, xAI, Mistral, Groq, Cerebras, Fireworks, Bedrock, and more from a single directory.',
2828
},
2929
{
3030
question: 'Are these model prices shown per million tokens?',

0 commit comments

Comments
 (0)