touchy upy
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user