Tony
33996701af
refactor: fix first() and undefined fallback abuse
2026-04-14 08:26:28 +08:00
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
Donie Leigh
9ae9d53d2e
fix(route/openai): fix chatgpt release notes extraction ( #20971 )
...
* fix(route/openai): fix chatgpt release notes extraction
- Use Puppeteer to bypass Cloudflare protection
- Extract content from rendered HTML instead of React Router data
- Use .html() to preserve formatting, links and styles in descriptions
- Support h2-h6, ul/ol, p, and other HTML elements
* refactor(route/openai): use ofetch instead of puppeteer for chatgpt release notes
- Use ofetch to fetch page content
- Simplify description extraction with prop('outerHTML')
- Use map() instead of each() + push()
- Use config.cache.routeExpire for cache duration
* fix: use first h2 as title, fallback to h1 date if h2 missing
2026-01-30 00:27:18 +08:00
Donie Leigh
3feaff89fd
feat(route): Add ChatGPT Atlas release notes route ( #20969 )
...
* Add ChatGPT Atlas release notes route
- Add route: /openai/chatgpt-atlas/release-notes
- Parse release notes from OpenAI help center
- Use Puppeteer to bypass Cloudflare protection
- Extract build version, date, and content sections
- Cache results for 24 hours
- Proper resource cleanup (browser.close())
* Add ChatGPT Atlas release notes route
- Add route: /openai/chatgpt-atlas/release-notes
- Parse release notes from OpenAI help center
- Use Puppeteer to bypass Cloudflare protection
- Extract build version, date, and content sections
- Cache results for 24 hours
- Proper resource cleanup (browser.close())
2026-01-27 01:48:26 +08:00
DIYgod
cf4e772de8
refactor: replace art template with jsx ( #20777 )
...
* refactor: replace art template with jsx
* fix: tsx files
* fix: renderToString import
* fix: hono html raw import
* feat: remove art
2025-12-29 12:27:32 +08:00
github-actions[bot]
a28890a135
style: auto format
2025-11-27 02:55:46 +00:00
blank
9a2d8e7fff
fix(route/openai): tweak openai cookbook class css selector ( #19711 )
2025-07-29 14:25:30 +08:00
Tony
03969f3867
refactor: fix lint issue ( #18963 )
...
* fix: unicorn/no-empty-file
* fix: unicorn/prefer-node-protocol
* fix: unicorn/prefer-number-properties
* fix: unicorn/consistent-destructuring
* fix: unicorn/no-array-callback-reference
* fix: unicorn/new-for-builtins
* fix: set checkNaN to false in unicorn/prefer-number-properties
* fix: unicorn/prefer-string-slice
* fix: update eslint ignore
2025-04-29 03:00:16 +08:00
Goestav
e543a92ee6
fix(route/openai): fetch OpenAI blog articles through RSS feed ( #18952 )
...
* fix(route/openai): fetch news through RSS feed
* refactor: rename blog route to news
* refactor(route/openai): ensure limit parameter works as expected
* refactor(route/openai): use user agent from configuration
* refactor(route/openai): cache data items
* refactor(route/openai): cache individual data items
* refactor: read query string parameter instead of path parameter
2025-04-28 03:23:19 +08:00
DIYgod
83e701b592
feat: compile ts through tsdown ( #18908 )
...
* feat: build ts via tsdown
* feat: exec tsdown
* fix
* fix
* fix
* feat: use tsdown shims
* chore: run rolldown lifecycle script
* fix: use shims
---------
2025-04-22 22:29:11 +08:00
Tony
4fa33716c1
docs: remove indent ( #18247 )
...
* docs: remove indent
* docs: remove more indent
* docs: remove h5 indent
* docs: remove h4 indent
* docs: remove details indent
2025-01-31 22:17:58 +08:00
pseudoyu
0a42f88de7
feat(route): add lang field in route namespace
2024-11-01 22:09:31 +07:00
liyaozhong
c72446556f
feat(route/cookbook): Add OpenAICookbook ( #17196 )
...
* feat(route/cookbook): Add OpenAICookbook
fix(route/cookbook): add missing example & follow the guidelines
fix(route/cookbook): use ofetch
fix(route/cookbook): delete duplicated namespace.ts
fix(route/cookbook): lint issues
* fix: use namespace `openai`
---------
2024-10-30 12:18:54 +08:00
github-actions[bot]
9af421ae2f
style: auto format
2024-05-10 14:46:15 +00:00
Tony
0893debb07
style(eslint): lint tsx ( #15098 )
2024-04-04 20:28:45 +08:00
DIYgod
d83c85a349
feat: remove radar.ts maintainer.ts router.ts
2024-03-09 18:31:48 +08:00
DIYgod
33e2f17055
fix: wrong categories
2024-03-09 15:08:34 +08:00
DIYgod
76e7e8296b
fix: add routes
2024-03-09 03:24:53 +08:00
DIYgod
45f9ea21fb
feat: add routes
2024-03-09 03:06:53 +08:00
DIYgod
f8b141ee6e
feat: add namespace.ts
2024-03-09 01:53:22 +08:00
DIYgod
44c9853541
feat: replace require with import 7/n
2024-03-07 01:17:21 +08:00
DIYgod
156b58d780
feat: replace require with import 1/n
2024-03-06 23:39:15 +08:00
Yufan You
130b11224e
chore: remove @ts-nocheck ( #14669 )
2024-03-05 21:06:03 +08:00
DIYgod
d93a301d97
feat: build-radar.ts
2024-03-04 01:52:04 +08:00
DIYgod
2c7d7f9205
feat: build-maintainer.ts
2024-03-04 01:38:38 +08:00
DIYgod
a10bafb263
fix: __dirname
2024-03-04 00:46:26 +08:00
DIYgod
8065ededf5
feat: rename routes .js to .ts
2024-03-04 00:35:37 +08:00
DIYgod
df57bb5d50
feat: esm standard for routes
2024-03-02 03:25:26 +08:00
DIYgod
6f57c02538
feat: rename routes dir - 2/2
2024-03-01 01:24:49 +08:00
StevenRCE0 and github-actions[bot]
9b6594bbad
feat(route): Update route OpenAI ( #12113 )
...
* Updated route OpenAI
* style: auto format
* Improved route OpenAI
* Use cheerio to remove comments
* style: auto format
* Update lib/v2/openai/radar.js
---------
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2023-03-16 17:39:08 +08:00
Sukka
6e3b58ed1d
refactor: avoid promise overhead ( #8028 )
2021-08-16 11:45:53 -07:00
Ethan Shen
bf62cc9e38
feat: add openai blog ( #6301 )
2020-12-01 11:38:54 +00:00