Repository navigation
Replies: 1 comment
|
would love this to start a thread like openclaw or hermes from telegram and such |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Before submitting
Area
apps/server (
scheduledTasks: webhook route,ScheduledTaskService), packages/contracts, scheduled-task editor on web and mobile.Problem or use case
A webhook task is set to a single model when you create it. The incoming request can shape the prompt through
{{…}}placeholders, but it can't change which provider/model, reasoning level or other options the run uses. Often the sender knows better than the task what a delivery needs:review:deep→ Opus, default → Sonnet).delegate_tasklets an agent choose one.Today you need one webhook task per model, each with its own URL, secret and prompt, and the sender has to pick the right URL. This gets messy quickly.
Proposed solution
An opt-in "Let the request choose the model" toggle on webhook tasks. It's off by default, and when it's off nothing changes.
When it's on:
{{body.model}},{{query.model}}or{{headers.x-t3-model}}.requested/default/rejected: not allowed). A bad value never fails the delivery, so senders like GitHub don't keep retrying.The allowed list matters because anyone with the URL could otherwise run any model the environment has credentials for. That could mean expensive models, or providers the user never meant to expose to automation. Restricting choices to a list on the task keeps the "token in the URL" security model as it is.
Smallest useful scope
Provider + model only, picked from the allowed list with
{{query.model}}/{{body.model}}/ a header. Reasoning, fast mode and permissions come from that allowed entry's saved options, and the request can never set them. Permission mode especially should stay tied to the task. Web editor first; mobile can show the toggle as read-only like it does for signatures.Current workaround
Duplicate the task for each model and have the sender pick the URL.
Related
I'm happy to implement this if the direction and scope are approved.
All reactions