Build fixes: offline-safe fonts, Next.js API route type updates, TS strict errors resolved, MUI import cleanup, chat markdown wrapper, Azure OpenAI typing, caching key + chapter API id types, and misc error-logging typings.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { NextRequest, NextResponse } from 'next/server'
|
||||
import { NextResponse } from 'next/server'
|
||||
import { AzureOpenAI } from 'openai'
|
||||
|
||||
export const runtime = 'nodejs'
|
||||
@@ -11,7 +11,7 @@ const client = new AzureOpenAI({
|
||||
deployment: 'gpt-4o' // Using GPT-4 for better quality prayers
|
||||
})
|
||||
|
||||
export async function POST(request: NextRequest) {
|
||||
export async function POST(request: Request) {
|
||||
try {
|
||||
const { prompt, category, locale } = await request.json()
|
||||
|
||||
@@ -120,4 +120,4 @@ export async function POST(request: NextRequest) {
|
||||
{ status: 500 }
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user