mirror of
https://github.com/discourse/discourse.git
synced 2026-03-04 01:15:08 +08:00
Reddit removed OpenGraph meta tags from their HTML responses, so oneboxing fails silently. This switches to fetching from Reddit's `.json` API endpoint instead. - Fetches post data from `.json` endpoint (appended to post URL) - Supports image, video, and self/text posts - Adds `matches_path` to restrict to actual post URLs - Adds `old.reddit.com`, `np.reddit.com`, `new.reddit.com` support - Flex-based layout for video post thumbnails (avoids legacy float issues) <img width="949" height="1434" alt="image" src="https://github.com/user-attachments/assets/40b3f4fa-ace5-4dd1-97a9-45d9497037e4" />
31 lines
957 B
Text
31 lines
957 B
Text
[
|
|
{
|
|
"kind": "Listing",
|
|
"data": {
|
|
"children": [
|
|
{
|
|
"kind": "t3",
|
|
"data": {
|
|
"title": "What are some underrated local LLMs?",
|
|
"author": "llm_enthusiast",
|
|
"subreddit_name_prefixed": "r/LocalLLaMA",
|
|
"score": 256,
|
|
"num_comments": 89,
|
|
"selftext": "I've been experimenting with various local models and wanted to hear what hidden gems people have found. Specifically looking for models under 13B parameters that punch above their weight.",
|
|
"is_self": true,
|
|
"is_video": false,
|
|
"over_18": false,
|
|
"url": "https://www.reddit.com/r/LocalLLaMA/comments/xyz789/what_are_some_underrated_local_llms/",
|
|
"permalink": "/r/LocalLLaMA/comments/xyz789/what_are_some_underrated_local_llms/"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"kind": "Listing",
|
|
"data": {
|
|
"children": []
|
|
}
|
|
}
|
|
]
|