Skip to content

Commit

Permalink
fix: typo
Browse files Browse the repository at this point in the history
  • Loading branch information
AndlerRL committed May 21, 2024
1 parent fd782c8 commit 2d9b072
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions apps/masterbots.ai/app/og/route.tsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import { ImageResponse } from '@vercel/og'
import { NextRequest } from 'next/server'
import '@/app/globals.css'
import { getThread } from '@/app/actions'
import '@/app/globals.css'
import OgImage from '@/components/og-image'
import { ImageResponse } from '@vercel/og'
import { NextRequest } from 'next/server'
export const runtime = 'edge'

export async function GET(req: NextRequest) {
try {
const { searchParams } = req.nextUrl
const threadId = searchParams.get('threadId');
const thread = await getThread({ threadId },)
const thread = await getThread({ threadId })
const question = thread.firstMessage.content
const answer = thread.firstAnswer.content
const username = thread.account?.username
Expand Down
6 changes: 3 additions & 3 deletions apps/masterbots.ai/lib/threads.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type * as AI from 'ai'
import { extractBetweenMarkers } from '@/lib/utils'
import { MB } from '@repo/supabase'
import type * as AI from 'ai'
import { toSlug } from './url-params'
import { extractBetweenMarkers } from '@/lib/utils'

export function createMessagePairs(messages: AI.Message[]): MB.MessagePair[] {
const messagePairs: MB.MessagePair[] = []
Expand Down Expand Up @@ -49,7 +49,7 @@ export interface MessagePair {

export function convertMessage(message: MB.Message) {
return {
id: message.messageId,
id: message.id,
content: message.content,
createAt: message.createdAt,
role: message.role
Expand Down

0 comments on commit 2d9b072

Please sign in to comment.