mirror of
https://github.com/microcron/pink.git
synced 2026-04-27 18:22:13 +00:00
16 lines
667 B
Plaintext
16 lines
667 B
Plaintext
pink is going to be a cron workflow which notifies the user via ntfy (NTFY_URL secret includes topic) whenever there is fresh updates/news regarding their list of topics in the /? dir.
|
|
|
|
OPENROUTER_KEY secret is provided.
|
|
|
|
Foundation:
|
|
The filenames in the ? dir are our queries for SEARCH_MODEL (excluding the .json extension).
|
|
Everytime the workflow runs, we query SEARCH_MODEL for each filename, and add the latest response inside.
|
|
We cut off the tail if longer than JSON_ROLLING_WINDOW.
|
|
|
|
JSON Makeup (1 window):
|
|
User: filename query
|
|
Assistant: Date followed by SEARCH_MODEL response.
|
|
User: REASON_MODEL_QUERY
|
|
Assistant: REASON_MODEL response (ntfy call)
|
|
... REPEAT
|