@@ -55,7 +55,10 @@ export async function POST(request: Request) {
5555 systemMessage: systemMessage[0],
5656 });
5757 } catch (err) {
58- debug(`[Threads API] Error creating thread:`, err instanceof Error ? err.message : "Unknown error");
58+ debug(
59+ `[Threads API] Error creating thread:`,
60+ err instanceof Error ? err.message : "Unknown error"
61+ );
5962 return NextResponse.json({ error: "Failed to create thread" }, { status: 500 });
6063 }
6164 }
@@ -79,7 +82,10 @@ export async function GET(request: Request) {
7982
8083 return NextResponse.json({ threads: threadsList, hasMore, totalCount });
8184 } catch (err) {
82- debug(`[Threads API] Error fetching threads:`, err instanceof Error ? err.message : "Unknown error");
85+ debug(
86+ `[Threads API] Error fetching threads:`,
87+ err instanceof Error ? err.message : "Unknown error"
88+ );
8389 return NextResponse.json({ error: "Failed to get threads" }, { status: 500 });
8490 }
8591 }