Compare commits

..

2 Commits

Author SHA1 Message Date
54840def97 Merge pull request 'feat: Custom Thinking effort' (#7) from feat/custom-thinking-effort into main
All checks were successful
Lint and Syntax Check / build (push) Successful in 12s
Reviewed-on: #7
2026-04-04 16:57:48 +02:00
5d679421de feat: add support for custom thinking effort (resolves #6)
All checks were successful
Lint and Syntax Check / build (pull_request) Successful in 1m45s
2026-04-04 16:27:45 +02:00
2 changed files with 3 additions and 1 deletions

View File

@@ -19,6 +19,7 @@ The following environment variables are required for the service to function:
| `OPENCLAW_URL` | The endpoint URL for the OpenClaw API. (with hook path) |
| `OPENCLAW_TOKEN` | The authentication token for OpenClaw. (from hooks, not gateway ui) |
| `OPENCLAW_PROXY_AUTH` | (Optional) Proxy credentials in `username:password` format. |
| `OPENCLAW_THINKING` | (Optional) The thinking effort for the agent (e.g., `low`, `medium`, `high`). Defaults to `low`. |
| `DATABASE_STORAGE_NAME` | The name of the database storage to use. |
| `AGENT_USERNAME` | The Gitea username of the AI agent (e.g., `whateveryouragentisnamed`). |
| `AGENT_PROMPT_FILE` | (Optional) Path to a custom Markdown template for notifications. If not provided, a default template will be used. |

View File

@@ -7,6 +7,7 @@ OPENCLAW_URL = os.getenv("OPENCLAW_URL")
OPENCLAW_TOKEN = os.getenv("OPENCLAW_TOKEN")
OPENCLAW_PROXY_AUTH = os.getenv("OPENCLAW_PROXY_AUTH")
OPENCLAW_MODEL = os.getenv("OPENCLAW_MODEL")
OPENCLAW_THINKING = os.getenv("OPENCLAW_THINKING", "low")
DATABASE_STORAGE = os.getenv("DATABASE_STORAGE_NAME")
AGENT_USERNAME = os.getenv("AGENT_USERNAME")
AGENT_PROMPT_FILE = os.getenv("AGENT_PROMPT_FILE")
@@ -166,7 +167,7 @@ def sendToAgent(event_object):
headers=headers,
json={
"message": message,
"thinking": "low",
"thinking": OPENCLAW_THINKING,
"model": OPENCLAW_MODEL,
"deliver": False,
},