touchy upy

This commit is contained in:
KS Jannette
2026-02-12 06:20:29 -05:00
parent 814e008b21
commit 33f62522b7
5 changed files with 9 additions and 7 deletions

View File

@@ -27,6 +27,7 @@ router.get('/', async (req, res) => {
router.post('/cluster', async (req, res) => {
try {
const notes = await loadNotes();
console.log('notes returned from loadNotes', notes)
const clusters = await clusterNotes(notes);
res.json(clusters);
} catch (err) {

View File

@@ -34,11 +34,11 @@ ${notesJson}`;
export const clusterNotes = async (notes) => {
const response = await client.messages.create({
model: "claude-opus-4-6",
max_tokens: 4096,
messages: [
model: "claude-sonnet-4-20250514",
max_tokens: 4096,
messages: [
{ role: "user", content: buildPrompt(notes) },
],
],
});
const raw = response.content[0].text;