diff options
| author | Dhravya Shah <[email protected]> | 2025-01-27 21:02:43 -0700 |
|---|---|---|
| committer | Dhravya Shah <[email protected]> | 2025-01-27 21:02:43 -0700 |
| commit | d2bf8d6623368f9ee1abb7d9add237fe6d003f1c (patch) | |
| tree | 8f98c0793c62c177a45e6ad156b2bad872d6e474 /apps/backend/src/utils | |
| parent | change embedding model (diff) | |
| download | supermemory-d2bf8d6623368f9ee1abb7d9add237fe6d003f1c.tar.xz supermemory-d2bf8d6623368f9ee1abb7d9add237fe6d003f1c.zip | |
change embedding model
Diffstat (limited to 'apps/backend/src/utils')
| -rw-r--r-- | apps/backend/src/utils/fetchers.ts | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/apps/backend/src/utils/fetchers.ts b/apps/backend/src/utils/fetchers.ts index fbca3d4b..2329f48a 100644 --- a/apps/backend/src/utils/fetchers.ts +++ b/apps/backend/src/utils/fetchers.ts @@ -35,11 +35,6 @@ export const fetchContent = async ( tweetUrl.search = ""; // Remove all search params const tweetId = tweetUrl.pathname.split("/").pop(); - const unrolledTweetContent = await step.do( - "get unrolled tweet content", - async () => await unrollTweets(tweetUrl.toString()) - ); - const rawBaseTweetContent = await step.do( "extract tweet content", async () => { @@ -72,8 +67,10 @@ export const fetchContent = async ( }; raw: string; }; - - if (!unrolledTweetContent || isErr(unrolledTweetContent)) { + const unrolledTweetContent = { + value: [rawBaseTweetContent], + }; + if (true) { console.error("Can't get thread, reverting back to single tweet"); tweetContent = { text: rawBaseTweetContent.text, |