Skip to content

Url resolver article classifiers#3

Draft
MrOrz wants to merge 4 commits intomainfrom
url-resolver-article-classifiers
Draft

Url resolver article classifiers#3
MrOrz wants to merge 4 commits intomainfrom
url-resolver-article-classifiers

Conversation

@MrOrz
Copy link
Copy Markdown
Member

@MrOrz MrOrz commented Nov 25, 2025

Both scripts work.

╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
✦ 測試完成!兩項 Workflow 運作均正常,以下是詳細的測試結果:


  1. 網址解析測試 (url-resolver)
   - 輸入:https://about.google/
   - 狀態:complete (成功)
   - 解析內容:
     - 標題:About Google - Our products, technology and company information
     - 摘要:Google's mission is to organize the world's information and make it universally accessible and useful. ...
     - 縮圖:https://about.google/static/data/social.png
     - Canonical URL:https://about.google/


  2. 文章分類測試 (article-classifier)
   - 輸入:Cofacts 文章 ID zzzmlantdps6 (內容為:https://health.tvbs.com.tw/nutrition/350472)
   - 狀態:complete (成功)
   - 分類結果 (使用 dryRun: true):
     - 建議標籤 ID:["oD2o7nEBrIRcahlYFgpm"]
     - AI 判斷理由
       (reasoning):提供的訊息內容僅包含一個網址,沒有其他文字描述或補充資訊,符合「只有網址其他資訊不足」的標籤定義。
     - 訊息:Classification completed but skipped saving due to dryRun=true

Comment thread src/index.ts Outdated
MrOrz and others added 2 commits February 11, 2026 03:36
- Replace OpenAI with @google/genai for both workflows
- URL Resolver: Use Gemini with Google Search tool + Puppeteer fallback
- Article Classifier: Add dryRun option for experimentation
- Remove manual authentication (rely on Cloudflare Access for production)
- Add browser binding for Cloudflare Browser Rendering
- Update environment variables and type definitions

Co-authored-by: Google Gemini <noreply@google.com>
- Add responseSchema to both workflows for structured output
- Add nodejs_compat flag for @cloudflare/puppeteer support
- Ensure proper JSON structure from Gemini API responses
@MrOrz MrOrz self-assigned this Mar 10, 2026
@MrOrz
Copy link
Copy Markdown
Member Author

MrOrz commented Apr 21, 2026

URL resolver 優先處理。
由於 agentic browsing 做在 beta-ai 比較好,因此改到 beta-ai 做實驗 cofacts/beta-ai#17

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant