You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -25,62 +27,40 @@ export async function generateTitleForPostGroup(postGroup: PostGroup): Promise<s
25
27
returnawaitgenerateTitleForPost(combinedContent);
26
28
}
27
29
28
-
//One group with several posts
29
-
constpostGroups: PostGroup[]=[
30
-
{
31
-
id: "group1",
32
-
posts: [
33
-
{
34
-
id: "post1",
35
-
content: `Empery Digital\n@EMPD_BTC\n·\n11m\nBitcoin Firsts that changed everything:\n- $4B Pizza\n- A nation bets on BTC\n- Wall Street embraces it\n- The Trillion-Dollar Club\nFrom a pizza order to reshaping global finance.\n#Bitcoin #BTC #Blockchain #EmperyDigital`,
content: `Empery Digital\n@EMPD_BTC\n·\n11m\nSome notable events in Bitcoin's history include:\n- The purchase of pizza with Bitcoin\n- A country adopting BTC\n- Increased interest from Wall Street\n- Joining the Trillion-Dollar Club\nThese milestones reflect Bitcoin's evolving role in finance.\n#Bitcoin #BTC #Blockchain #EmperyDigital`,
content: `Empery Digital\n@EMPD_BTC\n·\n11m\nRecent events in Bitcoin's history have raised concerns:\n- The infamous $4B pizza purchase\n- A nation risking its economy on BTC\n- Wall Street's speculative involvement\n- Entering the Trillion-Dollar Club amid volatility\nFrom a simple transaction to ongoing financial uncertainty.\n#Bitcoin #BTC #Blockchain #EmperyDigital`,
58
-
sentiment: "BEARISH",
59
-
source: "TWITTER",
60
-
categories: ["Cryptocurrency","Market Analysis"],
61
-
subcategories: ["Bitcoin","Milestones","Risks"],
62
-
link: undefined,
63
-
createdAt: newDate().toISOString(),
64
-
updatedAt: newDate().toISOString(),
65
-
}
66
-
]
67
-
}
68
-
];
69
30
31
+
// Fetch all PostGroups from Redis (expects a key 'PostGroup' with a JSON array, or adapt as needed)
"content": "Empery Digital\n@EMPD_BTC\n·\n11m\nBitcoin Firsts that changed everything:\n- $4B Pizza\n- A nation bets on BTC\n- Wall Street embraces it\n- The Trillion-Dollar Club\nFrom a pizza order to reshaping global finance.\n#Bitcoin #BTC #Blockchain #EmperyDigital",
10
+
"sentiment": "BULLISH",
11
+
"source": "TWITTER",
12
+
"categories": [
13
+
"Cryptocurrency",
14
+
"Market Analysis"
15
+
],
16
+
"subcategories": [
17
+
"Bitcoin",
18
+
"Milestones",
19
+
"Adoption"
20
+
],
21
+
"createdAt": "2025-09-16T12:00:00.000Z",
22
+
"updatedAt": "2025-09-16T12:00:00.000Z"
23
+
},
24
+
{
25
+
"id": "post2",
26
+
"content": "Empery Digital\n@EMPD_BTC\n·\n11m\nSome notable events in Bitcoin's history include:\n- The purchase of pizza with Bitcoin\n- A country adopting BTC\n- Increased interest from Wall Street\n- Joining the Trillion-Dollar Club\nThese milestones reflect Bitcoin's evolving role in finance.\n#Bitcoin #BTC #Blockchain #EmperyDigital",
27
+
"sentiment": "NEUTRAL",
28
+
"source": "TWITTER",
29
+
"categories": [
30
+
"Cryptocurrency",
31
+
"Market Analysis"
32
+
],
33
+
"subcategories": [
34
+
"Bitcoin",
35
+
"Milestones",
36
+
"Adoption"
37
+
],
38
+
"createdAt": "2025-09-16T12:00:00.000Z",
39
+
"updatedAt": "2025-09-16T12:00:00.000Z"
40
+
},
41
+
{
42
+
"id": "post3",
43
+
"content": "Empery Digital\n@EMPD_BTC\n·\n11m\nRecent events in Bitcoin's history have raised concerns:\n- The infamous $4B pizza purchase\n- A nation risking its economy on BTC\n- Wall Street's speculative involvement\n- Entering the Trillion-Dollar Club amid volatility\nFrom a simple transaction to ongoing financial uncertainty.\n#Bitcoin #BTC #Blockchain #EmperyDigital",
0 commit comments