refactor: align source-first schema surfaces
This commit is contained in:
@@ -85,7 +85,7 @@ export async function POST(
|
||||
// Generate new description using the description service
|
||||
const newDescription = await generateDescription({
|
||||
title: node.title,
|
||||
notes: node.source || node.description || undefined,
|
||||
source: node.source || node.description || undefined,
|
||||
link: node.link || undefined,
|
||||
metadata: enrichedMetadata,
|
||||
|
||||
|
||||
@@ -108,7 +108,7 @@ export async function POST(request: NextRequest) {
|
||||
try {
|
||||
nodeDescription = await generateDescription({
|
||||
title: body.title,
|
||||
notes: rawSource?.slice(0, 2000) || undefined,
|
||||
source: rawSource?.slice(0, 2000) || undefined,
|
||||
link: body.link || undefined,
|
||||
metadata: body.metadata,
|
||||
dimensions: trimmedProvidedDimensions
|
||||
|
||||
Reference in New Issue
Block a user