aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/config.toml12
-rw-r--r--examples/tools/calc.toml1
-rw-r--r--examples/tools/now.toml1
-rw-r--r--examples/tools/search.toml1
-rw-r--r--examples/tools/weather.toml1
5 files changed, 16 insertions, 0 deletions
diff --git a/examples/config.toml b/examples/config.toml
index 85fd846..bf3e3e4 100644
--- a/examples/config.toml
+++ b/examples/config.toml
@@ -15,3 +15,15 @@
# SEARXNG_URL = "http://searxng.example.org"
# WEATHER_ENV = "/home/you/.config/udt/weather.env"
# CALENDAR_DIR = "/home/you/.local/share/calendars"
+
+# Cloud models, picked per chat in the canvas header, never a fallback.
+# One table per provider with an OpenAI-compatible API. key_cmd prints the
+# API key and runs without a shell, once at startup: the key is never
+# stored here. models are the ids the canvas offers; the settings page
+# fetches the list with `assistant.py --cloud-models <name>`. A cloud chat
+# is offered only the tools whose file says cloud = true.
+# [[cloud]]
+# name = "openrouter"
+# url = "https://openrouter.ai/api/v1"
+# key_cmd = "pass show llm/openrouter"
+# models = ["mistralai/mistral-large"]
diff --git a/examples/tools/calc.toml b/examples/tools/calc.toml
index c97ef04..afac35c 100644
--- a/examples/tools/calc.toml
+++ b/examples/tools/calc.toml
@@ -1,5 +1,6 @@
description = "Calculator: arithmetic, percentages, unit and currency conversion, date math (days between dates). Use it instead of computing yourself."
command = ["qalc", "-t", "{expression}"]
+cloud = true
timeout = 10
[params.expression]
diff --git a/examples/tools/now.toml b/examples/tools/now.toml
index c52a4fe..3ef1f87 100644
--- a/examples/tools/now.toml
+++ b/examples/tools/now.toml
@@ -1,2 +1,3 @@
description = "Current local date and time."
command = ["date", "+%A %d %B %Y, %H:%M"]
+cloud = true
diff --git a/examples/tools/search.toml b/examples/tools/search.toml
index 7443658..23247f7 100644
--- a/examples/tools/search.toml
+++ b/examples/tools/search.toml
@@ -1,5 +1,6 @@
description = "Search the web. Use it for facts, news, distances, prices, anything you are not sure about, instead of guessing."
command = ["search.sh", "{query}"]
+cloud = true
timeout = 10
[params.query]
diff --git a/examples/tools/weather.toml b/examples/tools/weather.toml
index d9a2e8c..f1e0895 100644
--- a/examples/tools/weather.toml
+++ b/examples/tools/weather.toml
@@ -1,5 +1,6 @@
description = "Weather now, or the forecast for today or tomorrow. Leave place empty for the user's home."
command = ["weather.sh", "{place}", "{when}"]
+cloud = true
timeout = 12
[params.place]