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
All checks were successful
Lint and Syntax Check / build (push) Successful in 12s
Reviewed-on: #7
This commit was merged in pull request #7.
This commit is contained in:
@@ -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. |
|
||||
|
||||
3
main.py
3
main.py
@@ -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,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user