RSSHub/lib
chesha1 1c5e4b3702
fix(route/openai): 重构 research 路由,使用 RSS 源替代已失效的 TWILL API (#21309)
* fix(route/openai): 重构 research 路由,使用 RSS 源替代已失效的 TWILL API

- 移除旧的 getApiUrl 和 parseArticle 函数
- 为 fetchArticles 添加 category 过滤参数
- 提取文章作者信息
- 清理未使用的依赖(got, raw, renderToString)

* fix(route/openai): 使用 parseDate 解析 pubDate 日期字符串

* fix(route/openai): 使用重定向后的 URL 作为文章链接

使用 ofetch.raw() 获取响应,捕获重定向后的最终 URL,
避免输出中包含会被重定向的旧链接。

* fix(route/openai): 补全 URL 尾部斜杠以避免 301 重定向

在请求文章详情前为 URL 补上尾部斜杠,直接请求最终地址,
避免每篇文章都触发一次 301 重定向,减少不必要的 HTTP 请求。
2026-03-06 13:53:14 +08:00
..
api feat(api): add cache probing (#21300) 2026-03-05 02:36:53 +08:00
assets feat: deploy RSSHub to Cloudflare Workers (#20804) 2026-01-04 09:22:05 +08:00
errors
middleware style: update oxlint to use simple-import-sort 2026-03-04 03:13:57 +08:00
routes fix(route/openai): 重构 research 路由,使用 RSS 源替代已失效的 TWILL API (#21309) 2026-03-06 13:53:14 +08:00
routes-deprecated fix: quanta magazine (#21031) 2026-02-03 02:13:39 +08:00
shims style: migrate eslint to oxlint (#21224) 2026-02-28 21:23:11 +08:00
utils feat(api): add cache probing (#21300) 2026-03-05 02:36:53 +08:00
views
app-bootstrap.test.tsx
app-bootstrap.tsx
app.test.ts
app.ts
app.worker.tsx chore: replace postlight/parser with jocmp/mercury-parser (#21152) 2026-02-15 01:27:25 +08:00
config.remote-error.test.ts
config.test.ts
config.ts feat(route/youtube): Allow configuring custom embed url (#21248) 2026-03-01 00:28:45 +08:00
container.ts feat: add Cloudflare Containers deployment support (#20932) 2026-01-20 15:29:13 +08:00
entrypoints.test.ts
index.test.ts
index.ts
pkg.test.ts
pkg.ts
registry.dynamic.test.ts
registry.test.ts
registry.ts fix(lib/registry.ts): Allow hide debug info. (#20891) 2026-01-15 19:33:36 +08:00
route-paths.d.ts
router.js fix(route/javbus): remove avgle api usage (#20861) 2026-01-13 00:38:10 +08:00
routes.test.ts
server.ts
setup.test.ts style: migrate eslint to oxlint (#21224) 2026-02-28 21:23:11 +08:00
types.ts
worker.ts feat: deploy RSSHub to Cloudflare Workers (#20804) 2026-01-04 09:22:05 +08:00
worker.worker.test.ts test: double worker test timeout 2026-01-09 23:12:27 +08:00