Add miniflux webhook processing with KV store, change prompt.
Also updated README detailing the changes and setup required.
This commit is contained in:
@@ -1,6 +1,10 @@
|
||||
name = "miniflux-ai"
|
||||
main = "build/worker/shim.mjs"
|
||||
compatibility_date = "2024-08-06"
|
||||
compatibility_date = "2024-09-06"
|
||||
|
||||
[[kv_namespaces]]
|
||||
binding = "entries"
|
||||
id = "<insert-your-namespace-id>"
|
||||
|
||||
[build]
|
||||
command = "cargo install -q worker-build && worker-build --release"
|
||||
@@ -9,10 +13,4 @@ command = "cargo install -q worker-build && worker-build --release"
|
||||
crons = ["*/5 * * * *"]
|
||||
|
||||
[vars]
|
||||
MINIFLUX_URL = "your miniflux url"
|
||||
MINIFLUX_USERNAME = "your miniflux username"
|
||||
MINIFLUX_PASSWORD = "your miniflux password"
|
||||
OPENAI_URL = "https://api.cloudflare.com/client/v4/accounts/{your cloudflare account}/ai"
|
||||
OPENAI_TOKEN = "your cloudflare workers AI token"
|
||||
OPENAI_MODEL = "@cf/qwen/qwen1.5-14b-chat-awq"
|
||||
WHITELIST_URL = "https://www.zaobao.com/news/china,https://t.me/s/theinitium_rss,https://cn.nytimes.com,https://www.latepost.com/news/get-news-data,https://t.me/s/wsj_rss,http://www.zhihu.com,https://new.qq.com/omn/author/5157372,https://www.huxiu.com"
|
||||
Reference in New Issue
Block a user