Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions lib/profileQueue.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.",
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -427,4 +427,5 @@ module.exports = {
queueProfileGeneration,
queueProfilesForTargets,
clearQueue
};

};