diff --git a/lib/profileQueue.js b/lib/profileQueue.js index 6ed7909..7065d8e 100644 --- a/lib/profileQueue.js +++ b/lib/profileQueue.js @@ -225,7 +225,7 @@ async function generateProfile(target, sources, io) { } const directResponse = await anthropicClient.messages.create({ - model: "claude-3-opus-20240229", + model: "claude-sonnet-4-20250514", max_tokens: 4000, temperature: 0.2, system: "You are generating a professional profile for an individual based on the source data provided. Create a structured profile with name, email, professional roles, education, skills, and connections. Add [Source: URL] after each claim. Provide ONLY the final profile, no explanation of your process or thinking.", @@ -291,7 +291,7 @@ If the sources don't contain enough information for a complete profile, create a // Send request to Claude API const response = await anthropicClient.messages.create({ - model: "claude-3-opus-20240229", + model: "claude-sonnet-4-20250514", system: systemPrompt, messages: messages, tools: tools, @@ -384,7 +384,7 @@ If the sources don't contain enough information for a complete profile, create a // If we've reached max iterations without getting a profile, try one last direct approach try { const finalAttempt = await anthropicClient.messages.create({ - model: "claude-3-opus-20240229", + model: "claude-sonnet-4-20250514", messages: [ { role: "user", @@ -427,4 +427,5 @@ module.exports = { queueProfileGeneration, queueProfilesForTargets, clearQueue -}; \ No newline at end of file + +};